Snippets are small pieces of Drupal code that others have found useful and shared with the community.
More snippets are available on the Dropbucket site.
Warning: No one formally checks the snippets found in the handbook. Do not apply a snippet to a production server without first testing in a development environment. Additionally, you should read the comments on a snippet's handbook page before applying code.