This is the repository I'm storing code samples in for my Velocity 2012 talk.
Some of these examples require that you add $PWD/lib to your $RUYBLIB.
If you can't find the example here, then it's at:
https://github.com/puppetlabs/puppetlabs-stdlib/