code snippets...soon to moved in to Gist