Code examples to accompany SPA 2014 talk