Every day is a school day
This is a catalogue of notable things David Winterbottom has learnt (since July 2020).
There have been 194 TILs so far — recent topics include Vim, mypy, Python, Git, Chicken, Food and Github Copilot.
You can browse posts chronologically or by tag.
Recent learnings
- How to write Vimscript functions that operate on a visually selected area on
- Not to union Python list types on
-
How to show the history of a file with
git log --patch
on - A better technique for roasting chicken on
- How to automatically disable Github Copilot in Vim when editing large files on
-
How to format JSON into a table with
jq
andcolumn
on - How to make Homebrew-installed Bash your default shell on
-
That
hub
clashes withvim-polyglot
on -
Django’s JSON encoder rounds
datetime
s down to the nearest millisecond on - How to handle convenience imports with Mypy on
- You can use JQ to build JSON payloads on
-
How Django’s
override_settings
decorator causes flakey tests on -
How the
new
argument tomock.patch
is shared between parameterized tests on - That Postgres sequences aren’t restored after a transaction rollback on
- Mypy skips empty functions on
- How to use STDIN to populate Vim’s quickfix list on
- You can search Slack by emoji reactions on
-
Python tests using
moto
should be explicit about AWS regions on -
which
behaves diffferently in Zsh compared to Bash on - AWS target groups fail open when all instances are unhealthy on
Other TIL sites
Other people making public notes on what they are learning: