History API states persist between reloads
In Ruby, curly braces can be omitted from hashes not only when the hash is the last argument of a method, but also when it’s the last item in an array:
[1, 2, three: :four]. Neat!
Ruby's Array#inquiry, Rails' truncate with block
Run migrations after a deploy to Heroku. In
Procfile, add a
web: bin/rails server -p $PORT release: rails db:migrate
Learnt via Justin Searls’s The Selfish Programmer talk.
Didn’t strictly learn this today, but needed to note it down so I remember.
scroll-padding applies to scroll containers;
scroll-margin applies to scroll items.
play() on a media element is recommended when switching the
src. Hopefully this fixes the occasional
AbortErrors I’ve been seeing on iOS.