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 strict'; | |
/** | |
* @license AngularJS v1.2.0 | |
* (c) 2010-2012 Google, Inc. http://angularjs.org | |
* License: MIT | |
* | |
* TODO(vojta): wrap whole file into closure during build | |
*/ |
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(){ | |
function f(a){return function(){return this[a]}}function n(a){return function(){return a}}var r; | |
function s(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; | |
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}var aa="closure_uid_"+(1E9*Math.random()>>>0),ca=0;function da(a,b){null!=a&&this.append.apply(this,arguments)}da.prototype.ia="";da.prototype.append=function(a,b,c){this.ia+=a;if(null!=b)for(var d=1;d<arguments.length;d++)this.ia+=arguments[d];return this};da.prototype.toString=f("ia");function t(a){ |
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() { | |
var Dancer = { | |
"start-dance": ["this"], | |
"stop-dance": ["this"] | |
}; | |
var DancerImpl = (function() { | |
var record = function(dancing) { | |
return this.dancing = dancing; | |
}; | |
record.prototype.$protocol = Dancer; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/addon/hint/javascript-hint.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/javascript/javascript.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/addon/edit/matchbrackets.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/addon/display/fullscreen.min.js"></script> |
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
console.log('hi'); |
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
$.xhrPool = []; | |
$.xhrPool.abortAll = function() { | |
$.xhrPool.forEach(function(jqXHR) { | |
jqXHR.abort(); | |
}); | |
}; | |
$.rails.ajax = function(options){ | |
var req = $.ajax(options); |
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
.state('G', { | |
redirectTo: function (trans) { | |
var svc = trans.injector().get('SomeAsyncService'); | |
var promise = svc.getAsyncRedirectTo(trans.params.foo); | |
return promise; | |
} | |
}) |
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
$(".panel.visible .story").has(".selector.selected").find(".meta span").toArray().reduce(function(e,r){return e+parseInt(r.innerHTML)},0) |
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
# Static App Development | |
## Get the repos | |
* clone https://github.com/PotomacInnovation/compass-ae | |
* clone https://github.com/PotomacInnovation/compass-frontend | |
## Start the server | |
in compass-ae | |
* yarn | |
* yarn start-debug |
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 strict'; | |
require('perish'); | |
var Redis = require('ioredis'); | |
var redis = new Redis(); | |
const http = require('http'); | |
const httpProxy = require('http-proxy'); | |
const streamToPromise = require('stream-to-promise'); | |
const proxy = httpProxy.createProxyServer({ | |
changeOrigin: true |