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
// Markdown to Contrib | |
var util = require("util"); | |
var Transform = require("stream").Transform; | |
var async = require("async"); | |
var blessed = require('blessed'); | |
var highlight = require('console-highlight'); | |
var Blocks = { | |
"horizontal line":{ | |
label:"horizontal line", |
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
<!doctype html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js"></script> | |
<script type="text/javascript"> | |
var path = "/NodeOS/NodeOS/issues"; | |
</script> | |
</head> | |
<body> | |
<h1>NodeOs Blog</h1> |
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 |
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
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
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 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
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 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 SortFilterIterate(array){ | |
this.ari = array; | |
this.fliter = []; | |
} | |
SortFilterIterate.prototype.filter = function(fn){ | |
this.fliters.push(fn); | |
return this; | |
} |