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
/* jshint esnext: true */ | |
import {Component, Template, NgElement, For, If, bootstrap} from 'angular2/angular2'; | |
// Annotation section | |
@Component({ | |
selector: 'ice-comm' | |
}) |
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 c = require("child_process"); | |
var _ = require("lazy.js"); | |
var fs = require("fs"); | |
var matches = /^\s*(LIB|LIBPATH|PATH|PlatformToolset|sdkdir|TARGET_PLATFORM|VS\d{3}COMNTOOLS|WindowsSDKDir)=/; | |
var HOME = require("osenv").home(); | |
if(process.argv[2] && process.argv[2].toString("utf8") === "uninstall"){ | |
uninstall(); | |
}else{ | |
install(); |
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 SortFilterIterate(array){ | |
this.ari = array; | |
this.fliter = []; | |
} | |
SortFilterIterate.prototype.filter = function(fn){ | |
this.fliters.push(fn); | |
return this; | |
} |
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 PassThrough = require("stream").PassThrough; | |
var temp = new PassThrough(); | |
process.stdin.pipe(temp); | |
setImmediate(function(){ | |
process.stdin.unpipe(temp); | |
}); |
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 mergeUnIntersectingLists(lists, sortFn, order,iterator){ | |
standardIterator(lists, sortFn, order,iterator,function(lists,order,i){ | |
while(lists[i].length > 0){ | |
var item = getOrder(lists[i],sortFn)==order?lists[i].shift():lists[i].pop(); | |
iterator(item,i); | |
} | |
lists.splice(i,1); | |
}); | |
} |
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 MIDDLEWARE_TYPES = [ | |
"validate", | |
"create", | |
"update", | |
"destroy" | |
]; | |
var MIDDLEWARE_TIMINGS = [ | |
"before", | |
"after" |
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
node_modules | |
npm-debug.log |
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 ee = require("events").EventEmitter; | |
function Waterline(){ | |
ee.call(this); | |
this.adapters = {}; | |
this.connections = {}; | |
this.collections = {}; | |
} | |
Waterline.prototype = Object.create(ee.prototype); |
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 async = require("async"); | |
function MIDDLEWARE_FN(type,time){ | |
return function(values,next){ | |
async.series(this.middleware[type][time],function(fn,next){ | |
fn(values,next); | |
},function(err){ | |
cb(err,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
require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){if(typeof Object.create==="function"){module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}else{module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},{}],2:[function(require,module,exports){var process=module.exports={};var queue=[];var draining=fa |