Skip to content

Instantly share code, notes, and snippets.

View agaviria's full-sized avatar
:octocat:

Alejandro agaviria

:octocat:
View GitHub Profile
@meddulla
meddulla / install_tmux_mac_os_lion.sh
Created June 10, 2012 19:45
install tmux mac os lion
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
@sgreenfield
sgreenfield / gist:1557278
Created January 3, 2012 22:26
Compass font-face mixin
@mixin font-face(
$name,
$font-files,
$eot: false,
$weight: false,
$style: false
) {
$iefont: unquote("#{$eot}?iefix");
@font-face {
font-family: quote($name);
@gavinheavyside
gavinheavyside / mapreduce_conway.rb
Created September 19, 2010 20:02
A MapReduce algorithm for Conway's Game of Life
#!/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