A good[ish] website
Web development blog, loads of UI and JavaScript topics
Here’s how to make hard disks stop after a period of idle time. Lately I’ve been dabbling around with Raspberry PIs, and I had a problem…
Here’s how to force a re-render on a function-style React component. Spoiler alert: it’s really simple. Why would you want to force a re…
There’s a new CSS property in town called content-visibility . It will defer the rendering of elements until they’re about to hit the…
You can tell Google or Bing about the changes that have happened in your site, by pinging them your changed sitemaps. "Pinging" in this case…
How to resize DOM elements supers easily with pure CSS, or in a more fancy way using React lib. You know how textareas can be resized easily…
This post looks how to render posts from your drafts directory in an MDX Gatsby setup. Locally only, so you don’t leak unfinished posts. I…
Any element’s content can be made editable same way form fields are, even divs, by using the contenteditable attribute. You can just edit…
How to make simple data plotting with pure CSS. The point I had here was not to mathematically verify anything, but just to map out the…
Stuff arbitrarily sized arrays with content. There are times when you need long winding arrays filled with monotonic content. Push into the…
Get a random item from a JavaScript array. Get a random int First we need to get a random number that is an int , and isn’t too large. This…