Random little code snippets done to satisfy my own curiosity