Useful snippets for JavaScript or PHP (which don't really deserve their own repository).