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
| weekday = (function() { | |
| // Returns the weekday number for the given date relative to January 1, 1970. | |
| function weekday(date) { | |
| var weekdays = weekdayOfYear(date), | |
| year = date.getFullYear(); | |
| while (--year >= 1970) weekdays += weekdaysInYear(year); | |
| return weekdays; | |
| } |
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
| mymodule { | |
| @at-root { | |
| .#{&}-header { ... } | |
| .#{&}-footer { ... } | |
| .#{&}-body { | |
| a { ... } | |
| span { ... } | |
| p { ... } | |
| } | |
| } |
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
| authRouteProvider.$inject = ['$routeProvider']; | |
| function authRouteProvider ($routeProvider) { | |
| /** | |
| * Creates a controller bound to the route, or wraps the controller in param | |
| * so the authentication check is run before the original controller is executed | |
| * @param currentController | |
| * @return {Function} The wrapper controller | |
| */ | |
| function redirectCtrlFactory (currentController) { | |
| _ctrl.$inject = ['currentUser__', 'userRole__', '$location']; |
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
| /*! | |
| * quantize.js Copyright 2008 Nick Rabinowitz. | |
| * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php | |
| */ | |
| // fill out a couple protovis dependencies | |
| /*! | |
| * Block below copied from Protovis: http://mbostock.github.com/protovis/ | |
| * Copyright 2010 Stanford Visualization Group | |
| * Licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.php |