random coding notes and snippets