Miscellaneous code examples that can be used in most contexts.