Interesting C++ Code by Keith Schwarz (keithschwarz.com)