Code samples used on http://brosteins.com blog