Examples and Code snippets from the AngularJS O'Reilly book