By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| app.directive('showFocus', function($timeout) { | |
| return function(scope, element, attrs) { | |
| scope.$watch(attrs.showFocus, | |
| function (newValue) { | |
| $timeout(function() { | |
| newValue && element.focus(); | |
| }); | |
| },true); | |
| }; | |
| }); |
| (ns maze.core | |
| (:use [enchilada :only [canvas ctx value-of canvas-size]] | |
| [monet.canvas :only [get-context stroke stroke-style stroke-cap begin-path close-path line-to move-to stroke-width]] | |
| [monet.core :only [animation-frame]] | |
| [jayq.core :only [$ document-ready data attr hide show]] | |
| [maze.util :only [coord->pos]] | |
| [maze.generator :only [create-maze]] | |
| [maze.solver :only [solve]])) | |
| (defn draw-path-segments [ctx snake start end] |
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |