This is my notepad, so I can have notes for myself (and share them with others). I'm putting more interesting things together on my blog: http://datablog.roman-halliday.com/
One of many great lecturers I had was known to staff and students alike as “Boggle”, In one early lecture he told us “Boggles first rule of programming” which was “don't!”. This was a rather memorable way of pointing out that every conceivable line of code has already been written (possible better than you can write it yourself) and that most examples can be found either online or already in the code base you are working on, their-fore recycling isn't just for the eco-friendly. So, for my own reference (and future laziness), I'm putting handy code snippets/examples here.
There is also a fiddle for most things.