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
sudo yum update | |
sudo yum install -y gcc-c++.x86_64 | |
sudo yum install -y openssl-devel.x86_64 | |
sudo yum install -y make.x86_64 | |
sudo yum install -y git | |
git clone git://github.com/joyent/node.git | |
cd node |
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
function adler32(string) { | |
var length = string.length | |
, modulus = 65521 | |
, index = 0 | |
, a = 1 | |
, b = 0 | |
while (index < length) { | |
a += string.charCodeAt(index++) | |
a %= modulus |
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
node_modules | |
lib.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
layout | |
====== | |
XX: whole tile | |
xx: cut tile (20cm) | |
2cm deep gutter | |
---------------------------------+ | |
xx xx xx xx xx xx xx xx xx xx xx | | |
[] XX XX XX [] XX XX XX XX [] XX | |
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
function Request(req, res) { | |
this.upstream = request | |
this.downstream = response | |
} | |
Request.prototype = { | |
start: function() { | |
// kick off the default chain of handlers | |
}, |
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
回り出す木馬に おどけたふりして | |
小さな靴を鳴らして はしゃぐ君を見てた | |
何気なく開けてみる 大きな扉は | |
古ぼけた僕の大事な おもちゃ箱みたいさ | |
odoridasu mokuba ni odoketa furishite | |
chiisana kutsu o narashite hashagu kimi o miteta | |
nanigenaku aketemiru ookina tobira wa | |
furuboketa boku no daijina omochabako mitai sa |
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
$ brew install redis | |
==> Downloading http://redis.googlecode.com/files/redis-2.4.7.tar.gz | |
File already downloaded in /Users/Jed/Library/Caches/Homebrew | |
==> make -C src | |
MAKE hiredis | |
CC ae.o | |
clang: warning: argument unused during compilation: '-rdynamic' | |
clang: warning: argument unused during compilation: '-ggdb' | |
/usr/bin/clang -c -Os -w -pipe -march=native -arch x86_64 -g -ggdb net.c | |
clang: warning: argument unused during compilation: '-ggdb' |
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
// just a quick brainstorm for my dynamo API: https://github.com/jed/dynamo | |
// is it worth it to use uglify-js to parse functions into ASTs, to be transformed into dynamo's non-standard query language? | |
// the good: | |
// - no need to learn new API, just use javascript to query | |
// - API ends up resembling well-known .map and .filter style | |
// - would be entirely optional, compiling into specifiable query objects | |
// the bad: |
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
upperCase = (str, cb) -> | |
do fn = (err, str) -> | |
if err | |
cb err | |
else if typeof str is 'function' | |
str fn # fn is this function, as of 1.2.1-pre | |
else | |
str = String str |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |