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
/** | |
* This runs aggregate_reduce through a sequence, in an immutable, repeatable fashion. | |
* | |
* First, elements in the sequence which were not processed, are run through evaluate(). | |
* | |
* Next, elements which still have to be processed, are run through aggregateReduce(). | |
* | |
* Both the aggregate, and the full sequence, are returned after execution. | |
* |
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 StreamQueue = (function () { | |
function StreamQueue() { | |
// The factory | |
this.nextTaskFactory = null; | |
// The current task | |
this.currentTask = null; | |
// Tasks which must have end() called on them. |
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
/** | |
* Produces a function which uses template strings to do simple interpolation from objects. | |
* | |
* Usage: | |
* var makeMeKing = generateTemplateString('${name} is now the king of ${country}!'); | |
* | |
* console.log(makeMeKing({ name: 'Bryan', country: 'Scotland'})); | |
* // Logs 'Bryan is now the king of Scotland!' | |
*/ | |
var generateTemplateString = (function(){ |
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
/** | |
* Created by bryanerayner on 2014-10-18. | |
*/ | |
///<reference path = "types.d.ts" /> | |
module graphs | |
{ | |
export interface INode<T> | |
{ | |
_getUId:()=>string; // The string |
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
/** | |
* jQuery extension, add support `classList`. | |
* | |
* @author RubaXa <[email protected]>, bryanerayner <[email protected]> | |
* @license MIT | |
*/ | |
(function ($) { | |
var | |
_rspace = /\s+/ |
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
/** | |
Prefix - Prefixes a property with webkit, moz, or o. | |
Usage: | |
@include prefix(animation, slide 1s) | |
Outputs: | |
-webkit-animation: slide 1s; | |
-moz-animation: slide 1s; |