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 jb = ["Out_of_memory", 0], | |
$a = ["Sys_error", -1], | |
Q = ["Failure", -2], | |
$ = ["Invalid_argument", -3], | |
Ea = ["End_of_file", -4], | |
Y = ["Division_by_zero", -5], | |
V = ["Not_found", -6], | |
Fa = ["Match_failure", -7], | |
Pa = ["Stack_overflow", -8], |
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
This is ApacheBench, Version 2.3 <$Revision: 1706008 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 1000 requests | |
Completed 2000 requests | |
Completed 3000 requests | |
Completed 4000 requests | |
Completed 5000 requests |
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
import IPFS from 'ipfs'; | |
import Promise from 'bluebird'; | |
let ipfs; | |
const settings = { | |
repo: String(Math.random() + Date.now()), | |
IpfsDataDir: '/ipfs', | |
Addresses: { | |
API: '/ip4/127.0.0.1/tcp/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
'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 |
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
$(".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
.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
$.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
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
<!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> |