Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
It’s possible since a while with --experimental-strip-types flag, but since Node v22.18 it is possible just like this under many circumstances.
-
Because it simply executes a function arg1.length times, one can do things like: const randomNumbers = Array.from({ length: 75 }, Math.random)
-
And speech time averages at 183 wpm.
-
users.sort((a, b) => a.firstname.localeCompare(b.firstname)) or reversed order: users.sort((a, b) => a.firstname.localeCompare(b.firstname) * -1)
-
You can’t tell where a program is going to spend its time.
-
Today I was about to push a focussed test.
-
If you want to mock an imported function in Jest in a way that allows you to check if it has been called, you can not do the seemingly straighforward: // mock prefix necessary btw const mockThatFunction = jest.fn(() => 'stuff') jest.mock('@/path/to/modul…
-
For example: % pwdx 1984 > 1984: /home/george/ttlctrl
-
On kernel updates I saw a recurring “EFI variables are not supported on this system”, so I investigated and learned that the new EFI variables are provided via a file system that needs to be mounted first: mount -t efivarfs efivarfs /sys/firmware/efi/efiv…
-
For example: The following vite.config.ts: import { fileURLToPath, URL } from "url" import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], resolve: {…
-
git fetch $repo_url $remote_branch:$new_local_branch
-
For example: Kauf<wbr/>haus.
-
This article is crossposted on dev.to.
-
A couple of years ago (Oh it’s almost a decade!
-
The font is called Spleen, as mentioned in this BSD Journal article.
-
This is a follow-up on The expected tutorial: How to install WriteFreely on a Raspberry pi 3 in 10 steps.
-
NOTE: This is a copy of the original article from Aug 17th, 2017.
-
When I uploaded image files, they somehow got mangled.
-
You can find the original article on github (in German).