A collection of random bits of useful code that I'll probably come back to for reference one day