Trying to start a collection of code snippets for the languages I’m using. Nothing ground-breaking; most of it will probably be only useful to me.