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
"WTF IS \033[30;47m???", a practical cheat-sheet | |
Font color definitions can be intimidating and nonsense at first, | |
but it is quite easy, lets just follow character by character: | |
┌────────┤\033├── Escape character (ESC) | |
│┌───────┤ [ ├── Define a sequence (many characters in a code) | |
││ | |
││┌──────┤ X ├── Parameter (optional) ┐ | |
│││┌─────┤ ; ├── Parameter separator │ SGR Code |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |