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 config from '../app.config.js'; | |
export default async (uri, options) => { | |
options = options || {}; | |
let token = JSON.parse(localStorage.getItem('token')); | |
if (!token || (new Date()) - (new Date(token.expiresAt)) < 30) { | |
await getAccessToken(); | |
token = JSON.parse(localStorage.getItem('token')); | |
} |
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 timePicker = function () { | |
return { | |
restrict: 'E', | |
replace: true, | |
require: 'ngModel', | |
scope:{}, | |
template: '<input type="text" />', | |
link: function (scope, elem, attrs, ctrl) { |
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
/** | |
* Media Queries | |
* Allows you to use inline media queries. | |
* @link http://jakearchibald.github.com/sass-ie/ | |
* @param {String} $breakpoint - breakpoint | |
* @param {String} $query (min-width) - query type | |
* @param {String} $type (screen) - media type | |
* @example scss | |
* .foobar { @include mq(20em) { ... } } | |
*/ |
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 firstNames = ["Joe", "Dave", "Alice", "Bob", "Tom", "Doug", "Alex", "Stephanie", "Tracy", "Xander", "Zelda"]; | |
var lastNames = ["Andersen", "Baldwin", "Crockett", "Davis", "Davidson", "Eastman", "Young", "Rogers", "McArty", "DeVito"]; | |
for(i=0;i<1000;i++) { | |
var student = { | |
"student_id" : i, | |
"firstName" : firstNames[getRandomNumberUpTo(firstNames.length - 1)], | |
"lastName" : lastNames[getRandomNumberUpTo(lastNames.length - 1)], | |
activity: [] |
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
<html ng-app="KickStart"> | |
<head> | |
<title>Angular Kick-Start</title> | |
</head> | |
<body> | |
Index Page Content | |
<div ng-view></div> | |
</body> | |
<script src="vendor/angular/angular.min.js"></script> | |
<script src="app.js"></script> |
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 gulp = require('gulp'), | |
connect = require('gulp-connect'); | |
gulp.task('connect', function(){ | |
connect.server({ | |
root: 'app', | |
livereload: true | |
}); | |
}); |
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
public class StructureMapControllerFactory : DefaultControllerFactory | |
{ | |
protected override IController GetControllerInstance(RequestContext requestContext, System.Type controllerType) | |
{ | |
IController result = null; | |
try | |
{ | |
if (controllerType == null) return base.GetControllerInstance(requestContext, controllerType); | |
result = ObjectFactory.GetInstance(controllerType) as Controller; |