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
| .state('app.search', { | |
| cache: false, | |
| url: 'search?postal_code', | |
| views: { | |
| navContent: { | |
| templateUrl: NG_PATH.MODULES + 'search/view.html', | |
| controller: 'SearchController as vm' | |
| } | |
| } | |
| }) |
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
| [core] | |
| repositoryformatversion = 0 | |
| filemode = false | |
| bare = false | |
| logallrefupdates = true | |
| symlinks = false | |
| ignorecase = true | |
| hideDotFiles = dotGitOnly | |
| [remote "origin"] | |
| url = ssh://sls@slsapp.com:1234/bywave/hearing-australia-app.git |
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 gcd (a, b) { | |
| // If num2 is 0 return num1 | |
| if ( ! b) | |
| return a; | |
| return gcd(b, a % b); | |
| } |
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 DecimalToRoman(num) { | |
| if (num <= 0 || num >= 4000) return num; | |
| var roman = ["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]; | |
| var decimal = [1000,900,500,400,100,90,50,40,10,9,5,4,1]; | |
| var romanStr = ''; | |
| for (var i = 0, limit = roman.length; i < limit; ++i) { | |
| while (num >= decimal[i]) { |
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 App Factory: LocalStorage | |
| */ | |
| (function() { | |
| 'use strict'; | |
| angular.module('app.factories') | |
| .factory('LocalStorage', LocalStorage); |
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
| $scope.link = function($elementRoot, element){ | |
| $elementRoot.append($compile(element)($scope)); | |
| $scope.$digest($elementRoot); | |
| }; | |
| ListLessonsCtrl.link($scrollPane.find('.jspPane'), | |
| '<div class="btn-lesson {{lesson.buttonColor}}" ng-repeat="lesson in lessons[\'' + day.id + '\'] track by $index|orderBy:lesson.created_at" ' + | |
| 'ng-init="lessonIdx = $index">' + | |
| '<a class="btn btn-default" ng-click="showLessonSummary($index, \'' + day.id + '\')" onclick="preventExpand = true">' + | |
| '{{lesson.name}} <div class="stud-ratio gone">| {{lesson.studTaken}} / {{lesson.studCount}}</div>' + |
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
| 'use strict'; | |
| (function(window) { | |
| // | |
| // Manipulate Mouse Wheel | |
| // source: http://www.adomas.org/javascript-mouse-wheel/index.html | |
| // | |
| /** | |
| * Function: MouseWheelEvent |
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
| 'use strict'; | |
| (function(window){ | |
| /** | |
| * Function: Keydown | |
| * | |
| * Manipulate keypress actions. | |
| * | |
| * Parameters: |
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 doGet(request) { | |
| var output = ContentService.createTextOutput(); | |
| var data = {}; | |
| var id = request.parameters.id; | |
| var sheet = request.parameters.sheet; | |
| var ss = SpreadsheetApp.openById(id); | |
| if (sheet) { | |
| data[sheet] = readData_(ss, sheet); | |
| } else { | |
| // Grab all sheets except those with a name |