サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
iPhone 16
mmazzarolo.com
I love writing CLI scripts using JavaScript (mostly with deno, zx, or plain node.js). Here's something I add to almost all my scripts: a tiny copy-pasteable way to color the output of success and failure messages without adding external libraries. With a green ✔ and a red x character: console.success = (...args) => console.log("\x1b[32m✔\x1b[0m", ...args); console.failure = (...args) => console.er
TL;DR: How can you determine whether a JavaScript native function was overridden? You can't — or at least not reliably. There are ways to get close to it, but you can't fully trust them. Native functions in JavaScript In JavaScript, a "native function" is a function whose source code has been compiled into native machine code. Native functions can be found in JavaScript's standard built-in objects
Using JavaScript to fill localStorage to its maximum capacity Earlier this week, I had to test how one web app I work on behaves when it tries to store some data in an already full localStorage. To do so, I wanted to find a way to programmatically fill localStorage to its maximum capacity using JavaScript. Knowing that the only way to detect when the localStorage is full is catching the QuotaExcee
Hey! Here are a few random tips and tricks I learned through the years around service workers development and testing. Helpful service worker resources Introduction to Service Worker - Google's introduction to service workers. It's a great starting point if you know nothing about service workers. Now THAT’S What I Call Service Worker! - Jeremy Wagner breaks down the performance improvements obtain
Moving a macOS window by clicking anywhere on it (like on Linux) Today I learned that since macOS High Sierra onwards you can move a window by clicking on any part of it (just like on Linux): For some reason this behaviour is hidden behind a setting accessible only through CLI 🤷♂️ It can be enabled by running the following command:
TypeScript monorepos are a great way to organize medium-to-big size projects. TypeScript improves the developer experience by adding type-checking and a deep IDE integration. And using a monorepo helps in scaling your project(s). Compared to plain JavaScript, however, TypeScript adds an additional compilation layer to your project, which may slow down the developer experience. While the native Typ
このページを最初にブックマークしてみませんか?
『mmazzarolo.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く