Random code snippets. Some useful. Some broken.