Jonathan Y. Chan
jonathanyc.bsky.social
Jonathan Y. Chan
@jonathanyc.bsky.social
🐩 Yeti fan, 🇺🇸 American, and 🐻 Californian, living in 🌁 San Francisco
Fetch is hard work! 🐶
January 17, 2024 at 2:29 AM
Elixir match failure messages are much nicer than in TypeScript/Swift/OCaml: https://blog.jonathanychan.com/2024/01/14/elixir-match-failure.html
January 15, 2024 at 1:07 AM
conda singlehandedly takes up 85% of my zsh startup time (170 ms out of 200 ms)!!! Used for i in $(seq 1 10); do time zsh -i -c exit; done to check. Switching to micromamba now…
January 14, 2024 at 7:02 PM
Just found Superkey by Ryan Hanson. I’d already been using Rectangle Pro by him for window management. Type text and it’ll find it & click it, in any open app in macOS. Going to see if it sticks but it’s an interesting concept executed well. Love how macOS has so many indie apps.
January 14, 2024 at 6:08 PM
Notes on using Burrito to build a command-line application with Elixir: https://blog.jonathanychan.com/2024/01/13/notes-on-using.html
January 14, 2024 at 5:41 AM
How to access an Ecto repo within a Mix Task: https://blog.jonathanychan.com/2024/01/12/how-to-access.html
January 13, 2024 at 1:22 AM
Hypothesis: as ∫prestige of institution dt → 1, P(grifter at institution) → 1. But p never reaches 1; grifters are clever enough to realize they need some non-grifters to launder their reputations. Thus always to the institutions of creative destruction—sic semper institutis!
January 11, 2024 at 10:07 AM
Waiting for the clock to hit 5pm… 🐶
January 11, 2024 at 2:32 AM
Hopefully my last Vim TIL for a while: embedded Lua in Vimscript in Neovim wasn’t working. nvim-treesitter + this in ~/.config/nvim/after/queries/vim/injections.scm works:
; extends
(lua_statement
(script
(body) @injection.content)
(#set! injection.language "lua"))
January 10, 2024 at 4:49 AM
Vim TIL:

:Inspect() tells you the highlighting group of the text under the cursor; useful for creating color schemes.
ZZ is the same as:x; writes & closes the current file/window.
:verbose set foo tells you who last set the variable foo; useful for debugging.
January 10, 2024 at 12:04 AM
Currently reading The Remains of the Day by Kazuo Ishiguro. Absolutely love it so far. 📚
January 8, 2024 at 8:34 AM
Serious dog. 🐶
January 8, 2024 at 2:13 AM
I’d definitely rather have a pretty car than an ugly one. But I’d never say “what a striking Mercedes SUV, let me make sure to get that in the background of my photo!”I suspect that to many people the fundamental goal here is to minimize ugliness, not to maximize prettiness.
January 6, 2024 at 8:10 PM
Finally looked up how to get Fastmail to automatically add (not accept) calendar invites. By default it only does this for contacts. Go to Settings > Calendars > Calendar options > Invitations then set “For messages from” to “Anyone.” Now if they could just fix their spam problem…
January 6, 2024 at 3:32 AM
Sad fire hydrant :'(
January 5, 2024 at 2:02 AM
Creative heated outdoor seating. In Incline Village, near Lake Tahoe.
January 4, 2024 at 9:50 AM
Reposted by Jonathan Y. Chan
January 3, 2024 at 9:28 PM
Isuien Garden in Nara uses these cute rocks to mark closed paths.
January 3, 2024 at 2:09 AM
Currently reading: A Hero Born by Jin Yong 📚
January 3, 2024 at 2:05 AM
selfie
January 3, 2024 at 2:02 AM