-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Halliday
committed
Nov 25, 2012
1 parent
0557b39
commit 6192cb5
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
browserify ../timing.js -o bundle.js |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<style> | ||
body { | ||
font-family: monospace; | ||
white-space: pre; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<script> | ||
if (typeof console === 'undefined') console = {}; | ||
console.log = function (msg) { | ||
var txt = document.createTextNode(msg); | ||
document.body.appendChild(txt); | ||
}; | ||
</script> | ||
<script src="bundle.js"></script> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var http = require('http'); | ||
var ecstatic = require('ecstatic')(__dirname); | ||
var server = http.createServer(ecstatic); | ||
server.listen(8000); |