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 bash | |
# | |
# Configure Chrome OS Linux env just the way I like it. Must be run as sudo. | |
# | |
set -ex | |
# Install Powerline fonts | |
apr install fonts-powerline |
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'); | |
var LISTEN_ON_PORT = 3000; | |
function toTitleCase(str) { | |
return str.replace(/[a-z]*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}); | |
} | |
http.createServer(function (req, res) { | |
var body; |