various snippets from different languages/frameworks. see branch for details