← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 21
  1. Node can run Typescript files now

    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.

  2. Javascript's Array.from is neat!

    Because it simply executes a function arg1.length times, one can do things like: const randomNumbers = Array.from({ length: 75 }, Math.random)

  3. Reading speed is 238 words per minute on average

    And speech time averages at 183 wpm.

  4. Sort list of strings in Javascript

    users.sort((a, b) => a.firstname.localeCompare(b.firstname)) or reversed order: users.sort((a, b) => a.firstname.localeCompare(b.firstname) * -1)

  5. Rob Pike's 5 Rules of Programming

    You can’t tell where a program is going to spend its time.

  6. Disallowed Focussed Tests and how it saved my day

    Today I was about to push a focussed test.

  7. Jest mocks are ...different

    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…

  8. pwdx command shows the working path of a process

    For example: % pwdx 1984 > 1984: /home/george/ttlctrl

  9. There is a file system for EFI vars now

    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…

  10. Adding aliases in vite with typescript needs the same alias in tsconfig

    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: {…

  11. E-Mail that isn't spam is called ham!

  12. git fetch repo_url remote_branch:new_local_branch

    git fetch $repo_url $remote_branch:$new_local_branch

  13. Bush refused offer to discuss Osama Bin Laden handover

  14. There is a HTML tag for "Word Break Opportunity"

    For example: Kauf<wbr/>haus.

  15. A store implementation from scratch using Vue3's Composition API

    This article is crossposted on dev.to.

  16. Freddy vs JSON: how to make a top-down shooter

    A couple of years ago (Oh it’s almost a decade!

  17. Use OpenBSDs Spleen bitmap font in Linux

    The font is called Spleen, as mentioned in this BSD Journal article.

  18. Running writefreely 0.7 on Arm

    This is a follow-up on The expected tutorial: How to install WriteFreely on a Raspberry pi 3 in 10 steps.

  19. Vuejs Reactivity From Scratch

    NOTE: This is a copy of the original article from Aug 17th, 2017.

  20. The Magic 0xC2

    When I uploaded image files, they somehow got mangled.

  21. The price to crack your password

    You can find the original article on github (in German).