Some snippets hacked together for sublime text 2