サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
www.stefanjudis.com
Greetings! 👋 If you discovered this page, you're part of the few Firefox desktop users out there (market share is only 4% right now) and wondered how my blog posts' minimaps are made. If you're not using Firefox, this is how the minimap looks like. Firefox is the only browser that supports the fancy element() CSS function (with a vendor prefix, but hey 🤷♂️). The function allows you to display i
ES modules are still reasonably new in Node.js land (they're stable since Node 14). Modules come with a built-in module system, and features such as top-level await. I read an informative post on ES modules by Pawel Grzybek and learned that you can't import JSON files in ES modules today. /* Experimental JSON import in Node.js $ node index.mjs */ // An import assertion in a static import import in
This post is part of my Today I learned series in which I share all my web development learnings. When you use git on the command line you might have used the message flag (-m). It allows developers to define commit messages inline when calling git commit. git commit -m "my commit message" I'm not the biggest fan of this approach because I prefer to edit the commit message in vim (which I only use
This post is part of my Today I learned series in which I share all my web development learnings. I recently watched the talk "Making Things Better: Redefining the Technical Possibilities of CSS" by Rachel Andrews. The talk included one line of CSS that I haven't seen before. .something { display: flex; // what's that?👇 😲 align-items: safe center; } Rachel explains that when the CSS specs are wr
This post is part of my Today I learned series in which I share all my web development learnings. I came across this tweet by Jess Telford. He shared you can reference values defined in your package.json inside your npm/yarn script definitions. Let's have a look at an example. { "name": "my-package", "scripts": { "lint": "eslint ./src/*", "test": "jest ./src/*" } } Looking closely, there's a dupli
This post is part of my Today I learned series in which I share all my web development learnings. Today's learning surprised me! I was reading Twitter and came across a thread started by Sebastian McKenzie. In this thread, he shared a React snippet that would rely on the order of specific properties in an object. styles({ backgroundBlue: true, backgroundRed: true }); In the snippet above the backg
This post is part of my Today I learned series in which I share all my web development learnings. I was reading the source code of one of Sindre Sorhus' modules today. It was the module on-change which provides the functionality of watching changes performed on Objects or Arrays. The module doesn't include much code – as it's very often the case for Sindre's modules. They serve a single purpose an
このページを最初にブックマークしてみませんか?
『www.stefanjudis.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く