Skip to content

Instantly share code, notes, and snippets.

def parse_html_entities(value)
value.gsub(/&lt;/, '<').gsub(/&gt;/, '>')
end
var sys = require("sys"),
http = require("http"),
fs = require('fs'),
path = require('path');
http.createServer(function(request, response) {
var headers = { "Content-Type": "text/html" };
var filename = path.join(process.cwd(), '../work/terminix/knox/index.html');
path.exists(filename, function(exists) {
if(!exists) {