Short snippets of useful javascript code