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
| /** | |
| * Run a function repeatedly on a specific interval | |
| * @param {function} fn callback to run | |
| * @param {number} interval time in ms between runs | |
| * @param {boolean} immediate | |
| * @param {...n} args | |
| * @returns {object} timer object. Call cancel() to stop timer | |
| */ | |
| later: function(fn, interval, immediate, args) { | |
| var cbArgs = _.toArray(arguments).slice(3); |
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
| /9j/4AAQSkZJRgABAQAAAQABAAD/4QFsRXhpZgAATU0AKgAAAAgABwEPAAIAAAAFAAAAYgEQAAIAAAAKAAAAZwEbAAUAAAABAAAAcQEyAAIAAAAUAAAAeQExAAIAAAAFAAAAjQEaAAUAAAABAAAAkodpAAQAAAABAAAAmgAAAABBcHBsZWlQb2QgdG91Y2gAAABIAAAAATIwMTM6MTE6MTIgMTY6NDE6NDEANy4wLjMAAABIAAAAAQANpAUAAwAAAAEAIQAAkgkAAwAAAAEAGAAAoAEAAwAAAAEAAQAAoAMABAAAAAEAAAeQoAIABAAAAAEAAAogpAMAAwAAAAEAAAAAohcAAwAAAAEAAgAAkAQAAgAAABQAAAE8iCIAAwAAAAEAAgAAkAMAAgAAABQAAAFQkgcAAwAAAAEABQAApAIAAwAAAAEAAAAAowEAAwAAAAEAAQAAAAAAADIwMTM6MTE6MTIgMTY6NDE6NDEAMjAxMzoxMToxMiAxNjo0MTo0MQD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAogB5ADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEB |
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
| .spinner { | |
| display: block; | |
| position: absolute; | |
| z-index: 2000; | |
| top: 50%; | |
| right: 15px; | |
| width: 14px; | |
| height: 14px; | |
| margin-top: -9px; | |
| border: solid 2px transparent; |
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
| .spinner (@color: @white, @top: 50%, @left: 50%, @width: 24%, @height: 25%, @radius: 50%, @duration: 600ms) { | |
| display: block; | |
| position: absolute; | |
| z-index: 2000; | |
| top: @top; | |
| left: @left; | |
| width: @width; | |
| height: @height; | |
| margin-left: -@width/2; | |
| margin-top: -@height/2; |
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
| (function() { | |
| var oldToJSON = Backbone.Model.prototype.toJSON; | |
| Backbone.Model.prototype.toJSON = function() { | |
| var json = oldToJSON.apply(this, arguments), | |
| excludeFromJSON = this.excludeFromJSON || []; | |
| return humps.decamelizeKeys(_.omit(json, excludeFromJSON)); | |
| }; | |
| })(); |
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
| module.exports = { | |
| get: function (req, res) { | |
| res.sendfile(req.path.substr(1)); | |
| }, | |
| _config: { | |
| rest: false, | |
| shortcuts: false | |
| } | |
| }; |
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
| // www/javascripts/application.js | |
| window.tacoApp = angular.module('tacoApp', ['TacoModel', 'ngTouch']); |
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
| <div ng-switch="input.displayType" ng-class="input.displayType"> | |
| <div ng-switch-when="Input" class="text-input custom-input" | |
| ng-class="input.options.multiline ? 'multiline' : 'singleline'"> | |
| <span class="category">{{input.name}}</span> | |
| <span class="info"> | |
| <input ng-if="!input.options.multiline && input.dataType === 'NUMBER'" | |
| type="{{input.dataType}}" name="{{input.code}}" ng-model="input.value" | |
| required="input.required" min="0" ng-disabled="disabled"> | |
| <input ng-if="!input.options.multiline && input.dataType === 'TEXT'" |
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
| ticketApp.directive('focusElement', function($timeout) { | |
| return { | |
| restrict: 'A', | |
| scope: { | |
| focusElement: '@', | |
| focusDelay: '@' | |
| }, | |
| link: function($scope, $element, $attrs) { | |
| $scope.$focusElement = angular.isDefined($scope.focusElement) ? $($scope.focusElement): $element; |