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 banshee_application(checknum, pid, args) { | |
var app = new eyeos.application.Banshee(checknum, pid, args); | |
} | |
qx.Class.define("eyeos.application.Banshee", { | |
extend: eyeos.system.EyeApplication, | |
construct: function(checknum, pid, args) { | |
arguments.callee.base.call(this, 'banshee', checknum, pid); |
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
Babel | |
Base16 color schemes | |
Cucumber | |
GitSavvy | |
Grunt | |
Gulp | |
Javsacript Beautify | |
JavascriptNext - ES6 Syntax | |
jsFormat | |
LESS |
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
/* eslint no-multi-spaces:0 */ | |
(function(root) { | |
var Firebase = root.Firebase; | |
var toArray = Function.prototype.call.bind(Array.prototype.slice); | |
window.FirebasePromise = FirebasePromise; | |
function DisconnectWrapper(disconnect) { | |
this._ref = disconnect; | |
} |
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() { | |
'use strict'; | |
if (window.Map) return; | |
window.Map = FakeMap; | |
function FakeMap() { | |
this._keys = []; | |
this._values = []; | |
} |
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.module('my-module') | |
.directive('mqAllowExternalClone', function($compile) { | |
return { | |
link: link, | |
}; | |
function link(scope, elem, attr) { | |
var element = elem[0]; | |
var original = element.cloneNode; | |
element.cloneNode = patch; |
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 deepExtend(target, source) { | |
Object.keys(source).forEach(function(key) { | |
var value = source[key]; | |
var dest = target[key]; | |
var sourceType = typeof value; | |
var destType = typeof target[key]; | |
if (Array.isArray(value) && Array.isArray(dest)) | |
target[key] = dest.concat(value); | |
else if (sourceType === destType && sourceType === 'object') |
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
env: | |
browser: true | |
globals: | |
define: true | |
rules: | |
# possible errors | |
comma-dangle: [1, "always-multiline"] | |
no-cond-assign: [2, "except-parens"] |
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
<script src="//cdn.raygun.io/raygun4js/raygun.min.js"></script> | |
<script> | |
Raygun.init('<TOKEN>', { | |
excludedHostnames: ['localhost'], | |
}) | |
.attach() | |
.withCustomData(function() { | |
return { | |
hash: document.location.hash, | |
}; |
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 raceCondition(fn) { | |
var counter = 0; | |
return function() { | |
var index = ++counter; | |
var prom = fn.apply(this, arguments); | |
return new Promise(function(resolve, reject) { | |
prom.then(function(value) { | |
if (isLast()) resolve(value); |
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
// Calculates the space closest to the middle of the name | |
function splitName(name) { | |
var middle = name.length / 2; | |
var spaces = []; | |
var last = name.indexOf(' '); | |
while(last !== -1) { | |
spaces.push(last); | |
last = name.indexOf(' ', last + 1) | |
} |