| site | https://naiyerasif.com |
| github | https://github.com/naiyerasif |
| site | https://naiyerasif.com |
| github | https://github.com/naiyerasif |
"Closing a Browser", 2024
White ASCII on transparent canvas.
Fun fact: the code which took Apollo 11 to the moon is available on github https://github.com/chrislgarry/Apollo-11/blob/master/Luminary099/LUNAR_LANDING_GUIDANCE_EQUATIONS.agc#L179
And if you look through it you'll see that - joyfully - it also includes original comments.
My absolute favourite thing about the Moon Code is that it includes comments like this: "TEMPORARY - I HOPE HOPE HOPE"
Today I learned that you can load images specific to a color scheme using the `media` attribute of `<source>` element.
```
<picture>
<source media="(prefers-color-scheme: dark)" srcset="logo_dark.svg">
<img src="logo.svg" alt="logo">
</picture>
```
Similarly, you can load a smaller file when people are on metered connection, present a richer image if a display supports wider color gamut, and so on. Wait, we are doing conditionals with HTML. Does this make #HTML a programming language?
We've been adding support for text animations to hatch.one and I think I may have created a my favourite thing ever. 🍪
Update: Things turned out pretty well at the end. Apple Support accepted the display replacement under AppleCare+ so the machine was repaired without any cost. I did have to explain a bit about the usage pattern and why this was not supposed to be an accidental damage.