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
// 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
/** | |
* @license almond 0.3.0 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. | |
* Available via the MIT or new BSD license. | |
* see: http://github.com/jrburke/almond for details | |
*/ | |
/* | |
* Copyright 2014, Gregg Tavares. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without |
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
//!/usr/bin/env node | |
var fs = require("fs"); | |
var curclass = []; | |
var lastws = 0; | |
var curws = 0; | |
var multi = false; | |
var req = []; | |
var lastline = ""; |
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> | |
<!-- This is a comment, you won't see thin except if you look at the code --> | |
<!-- Doctype is necessarry for every html page. You used to need to specify the type, but nowadays all you need to specify is html --> | |
<!-- the html tag is necessary and always is the biggest box. But technically isn't seen --> | |
<!-- (however technically is, you'll understand one day) --> | |
<head> | |
<!-- the head is never seen. however it gets loaded before what gets seen does --> | |
</head> | |
<body> |
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
v8::Array convertAttribute(AuthAttrubutes pAttribute){ | |
Local<Object> ret = Object::New(); | |
ret->Set( | |
String::NewSymbol("user"), | |
v8::String::New(pAttribute.szUser) | |
); | |
ret->Set( | |
String::NewSymbol("realm"), |
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 PathWrapper(path,subs,ctx){ | |
if(typeof ctx == "undefined"){ | |
ctx = subs; | |
subs = void(0); | |
} | |
this.ctx = ctx; | |
return this.prep(path,subs); | |
} | |
PathWrapper.prototype.prep = function(path,subs){ |
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 j = {"web-app": { | |
"servlet": [ | |
{ | |
"servlet-name": "cofaxCDS", | |
"servlet-class": "org.cofax.cds.CDSServlet", | |
"init-param": { | |
"configGlossary:installationAt": "Philadelphia, PA", | |
"configGlossary:adminEmail": "[email protected]", | |
"configGlossary:poweredBy": "Cofax", | |
"configGlossary:poweredByIcon": "/images/cofax.gif", |
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 some_cuteness(next){ | |
var our_event = new ee(); | |
var functioned = 0; | |
cb("we're in the main"); |
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 Application(href){ | |
EventEmitter.call(this); | |
this.href = href; | |
var that = this; | |
socket.on("open", function(){ | |
while(that.backlog.length > 0) | |
that.socket.send(that.backlog.shift()); | |
that.emitEvent("open",arguments) | |
}) | |
socket.on("message", function(msg,flags){ |