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
sudo -s | |
mkdir /usr/local/src | |
cd /usr/local/src | |
# If you have never eared about libevent, you probably need to compile it | |
curl -L -o libevent-2.0.16-stable.tar.gz http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.16-stable.tar.gz | |
tar -xvf libevent-2.0.16-stable.tar.gz | |
cd libevent-2.0.16-stable | |
./configure | |
make && make install |
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
@mixin font-face( | |
$name, | |
$font-files, | |
$eot: false, | |
$weight: false, | |
$style: false | |
) { | |
$iefont: unquote("#{$eot}?iefix"); | |
@font-face { | |
font-family: quote($name); |
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 ruby | |
require 'rubygems' | |
require 'wukong' | |
# Given a file with the coordinate pair of a live cell on each line, | |
# generate the next iteration of Game of Life, using MapReduce | |
# | |
# The map phase takes each live cell, and outputs 9 key value pairs, 1 for | |
# each of the adjacent cells and itself. The reduce phase dedupes, detects |
NewerOlder