This file contains 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
trailingComma: all | |
semi: true | |
singleQuote: true | |
jsxSingleQuote: true | |
endOfLine: lf | |
proseWrap: never |
This file contains 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
/* | |
* @Component() | |
* class ThemedComponent { | |
* @Inject() theme: ITheme; | |
* } | |
*/ | |
const theme = {foo: 'bar'}; | |
export function Inject() { |
This file contains 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
@font-face { | |
font-family: 'EntypoRegular'; | |
src: url('font/entypo.eot'); | |
src: url('font/entypo.eot?#iefix') format('embedded-opentype'), | |
url('font/entypo.woff') format('woff'), | |
url('font/entypo.ttf') format('truetype'), | |
url('font/entypo.svg#EntypoRegular') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} |
This file contains 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
// (c) copyright unscriptable.com / John Hann | |
// License MIT | |
// For more robust promises, see https://github.com/briancavalier/when.js. | |
function Promise () { | |
this._thens = []; | |
} | |
Promise.prototype = { |
This file contains 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() { | |
/* | |
Mouse/Touch Interactions as bindings for Knockout | |
Heavily inspired by Tap.js - https://github.com/alexgibson/tap.js | |
*/ | |
var hasTouch = 'ontouchstart' in window || 'createTouch' in document, | |
offsetX, offsetY; | |
function InteractionController( element, interactions ) { | |
this.element = element; |
This file contains 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(){/* | |
MIT License (c) copyright B Cavalier & J Hann */ | |
var h=!0,n=null,q=!1,r=this.window||"undefined"!=typeof global&&global||this;function aa(){}function u(a,b){return 0==ba.call(a).indexOf("[object "+b)}function v(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ca(a,b){var c,d,e,f;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(da,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");f=e.length-c;if(0>f)return a;e.splice(f,c);return e.concat(d||[]).join("/")}return d} | |
function w(a){var b=a.indexOf("!");return{p:a.substr(b+1),m:0<=b&&a.substr(0,b)}}function x(){}function y(a,b){x.prototype=a||fa;var c=new x;x.prototype=fa;for(var d in b)c[d]=b[d];return c} | |
function z(){function a(a,b,c){d.push([a,b,c])}function b(a,b){for(var c,e=0;c=d[e++];)(c=c[a])&&c(b)}var c,d,e;c=this;d=[];e=function(c,g){a=c?function(a){a&&a(g)}:function(a,b){b&&b(g)};e=aa;b(c?0:1,g);b=aa;d=A};this.j=function(b,d,e){a(b,d,e);return c};this.g=function(a){c.C=a;e(h,a)};this.d=function(a){c.sa=a;e(q, |
This file contains 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 this file when compiling code that references Knockout | |
// https://raw.github.com/gist/3346275/knockout_externs.js | |
var ko = {}; | |
ko.observable = function(initialValue) {}; | |
ko.dependentObservable = function (evaluatorFunctionOrOptions, evaluatorFunctionTarget, options) {}; | |
ko.computed = ko.dependentObservable; | |
ko.observableArray = function (initialValues) {}; | |
ko.applyBindings = function (viewModel, rootNode) {}; |