Snippets

Nuggets of code to solve discrete problems which can be copied and pasted.