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
| if isNaN Date.parse "2011-01-01T12:00:00-05:00" | |
| Date.parse = ((parse) -> | |
| # The date time string format as specified by ES 5.1 section 15.9.1.15. | |
| pattern = ///^ | |
| (\d{4}) # Year | |
| (?:-(\d{2}) # Optional month | |
| (?:-(\d{2}) # Optional date | |
| (?: # Optional time component | |
| T(\d{2}) # Hours | |
| :(\d{2}) # Minutes |
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
| require.config({ | |
| paths: { | |
| jquery: "lib/jqMobi.min", | |
| underscore: "http://underscorejs.org/underscore-min", | |
| backbone: "http://backbonejs.org/backbone" | |
| }, | |
| shim: { | |
| 'backbone': { | |
| deps: ['underscore', 'jquery'], | |
| exports: 'Backbone', |
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
| define (['knockout', 'jquery', 'prettyDate', 'metrojs'], function ( ko, $ ) { | |
| "use strict"; | |
| // See https://github.com/SteveSanderson/knockout/wiki/Bindings---class | |
| ko.bindingHandlers['class'] = { | |
| 'update' : function ( element, valueAccessor ) { | |
| if ( element['__ko__previousClassValue__'] ) { | |
| ko.utils.toggleDomNodeCssClass (element, element['__ko__previousClassValue__'], false); | |
| } | |
| var value = ko.utils.unwrapObservable (valueAccessor ()); |
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
| angular.module('project', ['projectServices']) | |
| .config ($routeProvider) -> | |
| $routeProvider | |
| .when('/login', | |
| templateUrl: 'partials/login.html', | |
| controller: LoginCtrl) | |
| .when('/assignments', | |
| templateUrl: 'partials/assignments.html', | |
| controller: AssignmentListCtrl) | |
| .otherwise(redirectTo: '/login') |
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 app = angular.module('app', []); | |
| app.directive('yaTree', function () { | |
| return { | |
| restrict: 'A', | |
| transclude: 'element', | |
| priority: 1000, | |
| terminal: true, | |
| compile: function (tElement, tAttrs, transclude) { |
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 demoApp = angular.module('demoApp', ['ngResource'], function($locationProvider) { | |
| $locationProvider.hashPrefix(''); | |
| }); | |
| function MainCtrl($scope, Serv) { | |
| $scope.selectedItem = { | |
| value: 0, | |
| label: '' | |
| }; | |
| $scope.Wrapper = Serv; |
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 demoApp = angular.module('demoApp', ['ngResource'], function($locationProvider) { | |
| $locationProvider.hashPrefix(''); | |
| }); | |
| function MainCtrl($scope, Serv) { | |
| $scope.selectedItem = { | |
| value: 0, | |
| label: '' | |
| }; | |
| $scope.Wrapper = Serv; |
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
| import org.eclipse.jetty.websocket.WebSocket; | |
| import org.eclipse.jetty.websocket.WebSocketServlet; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.util.*; |
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
| controllers.controller('MainCtrl', function($scope, $location, Facebook, $rootScope, $http, $location, Upload, Auth, User, Question, Category, Serie, Record, Location, Popup, Process, Card, Question) { | |
| $scope.$on('authLoaded', function() { | |
| $scope.isExpert($scope.main.serieId); | |
| $scope.isMember($scope.main.serieId); | |
| }); | |
| $scope.loadAuth = function() { | |
| Auth.load().success(function(data) { | |
| $scope.main.user = data.user; | |
| $scope.$broadcast("authLoaded"); |
OlderNewer