Jeff Kreeftmeijer Profile picture
/kreɪft·maɪ·ər/ 🦞 Medium-distance hiker. Programmer on weekdays.
Jan 25, 2021 12 tweets 3 min read
Alright, I’m writing and another Vim micro plugin to automatically switch between `bg=light` and `bg=dark` based on macOS’s dark mode.

Follow along for some live-micro-blogging! 🧵

First things first. We need to know when to switch the background color. We’ll check `defaults read -g AppleInterfaceStyle`, which produces `Dark\n` when macOS’s dark mode is turned on.

In Vim, as a boolean:

:echom system("defaults read -g AppleInterfaceStyle") == "Dark\n"
Jan 12, 2021 7 tweets 2 min read
I loved Flash. To celebrate the #Flashpocalypse, please indulge me for trip down memory lane. 🧵

Over fifteen years ago, my first programming gig was an internship at a company that built websites with Flash. A project I remember was the website for a large Dutch fashion chain. The team of designers, animators and programmers worked together to make it a beautiful experience, while maintaining some form of accessibility and SEO.

To do that, the whole Flash app gracefully degraded to a separate pure-HTML version, essentially duplicating the project.