Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
So you run migrate in your dev environment, but it fails: some unknown migration add-foobar has already been applied from some other experimental branch, and the migration tool doesn’t know how to down-migrate it.
-
If you need a job queue in JS, you can do it in two lines: type Job = () => Promise<unknown>; let chain = Promise.resolve(); const enqueue = (job: Job) => chain = chain.then(job, job); For example, if your app makes API requests, you may need requests to…
-
The “snapping” feature in most drawing apps has a problem: you can’t place the object near snap lines, so for precise positioning, you have to disable snapping.
-
If you’re running Chrome with the window.ai API, here’s a UI to prompt an LLM running locally in your browser: Prompt Top K: Temperature: Run prompt Status: Output I wrote these TypeScript type definitions for the API: declare global { interface WindowO…
-
Below is an interactive Turing pattern.
-
Below is a Game of Life simulation.
-
To add JavaScript to a web page, we use a <script> tag like this: <script>console.log("Hello!")
-
What’s the average distance that someone can jump?
-
backdrop-filter: blur is a popular design for navbars.
-
We could estimate Bob’s lunch tomorrow by counting the previous lunches you’ve seen him eating in the cafeteria: Lunch Count Apple 2 Banana 3 Now we want to simulate Bob’s future lunches.