Snippets

Pieces of code I need on occasion, and frequently forget: