Access random element in an array, in a short and concise manner
Get a random item from a JavaScript array.
JavaScript iterators tutorial with examples | introduction to the iterable object
What’s an iterable object anyway? What does it meant to "implement the iterator protocol", and how to build a custom iterator.
Accessible and modern React icon component
A versatile React component that handles icons and icon links while meeting accessibility requirements.
How to handle icons React: as components
What are the best ways to handle SVG icons in a modern React project, and how to effortlessly minify large quantities of icons.
Remove a button’s default styles and make it look like text
Sometimes you need the semantics and behavior of a button without the browser’s default button appearance. Here’s how to remove those styles while keeping the button accessible.
Visually hidden text, only visible to screen readers
This article looks into content that is visually hidden, but visible to people using assistive technologies, like screen readers.
Alacritty, the nihilist terminal setup
Alacritty is a fast, GPU-accelerated terminal emulator written in Rust. It is deliberately simple, so this guide covers the few things worth configuring.
How to disable Gatsby telemetry
Telemetry is a clean sounding euphemism for tracking.
Doing more complex conditional logic, getting more than two different values
Here’s how to get stuff with JavaScript.
Position sticky in CSS, with examples
Before `position: sticky`, we had to finesse around with scroll listeners and bounding box measurements, ugh. But nowadays `position: sticky` has gained enough browser support to make it a viable option.