There are two main sources of code snippets.
The Code Snippets Database contains hundreds of useful Pascal routines, classes, types etc.
SWAG is clone of the old SourceWare Archive Group database. It's dated but still contains some useful information.