Skip to content

Instantly share code, notes, and snippets.

@jcolebrand
Created February 29, 2012 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcolebrand/1944408 to your computer and use it in GitHub Desktop.
Save jcolebrand/1944408 to your computer and use it in GitHub Desktop.
var readFromFilesystem = function(file, resp){
wait(function(){
resp.writeHead(200, {"Content-Type":"text/html"});
resp.write("<h1>ASD</h1>");
resp.end();
});
console.log("out...");
}
var wait = function(callback){
setTimeout(function(){ callback.call() }, 10000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment