This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .factory('httpInterceptor', function($q, $injector, $rootScope){ | |
| var $http; | |
| function open(num){ | |
| $rootScope.$broadcast('httpOpen', num); | |
| } | |
| function close(num){ | |
| $rootScope.$broadcast('httpClose', num); | |
| } | |
| return function(promise){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'), | |
| http = require('http'), | |
| _ = require('underscore'), | |
| app = express(), | |
| server = http.createServer(app), | |
| io = require('socket.io').listen(server); | |
| // Sockets | |
| var pool = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fields = {}; | |
| var p1 = $http.get('/api/field/sizes').success(function(sizes){ | |
| fields.sizes = sizes; | |
| }); | |
| var p2 = $http.get('/api/field/colors').success(function(colors){ | |
| fields.colors = colors; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #404.jade | |
| extends layout | |
| append title | |
| | 404 | |
| block content | |
| h1 404 | |
| #layout.jade |
NewerOlder