Just some general code snippets from random projects.