Pulled some old snippets of code together into a repo.