Code snippets, examples and miscellania