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
CC=/usr/local/bin/gcc RUBY_CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl`" rbenv install 1.9.3-p429 |
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
# encoding: utf-8 |
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
CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` rbenv install 1.8.7-p371 |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
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
# download apache apr | |
$ cd apr-1.4.6 | |
$ LTFLAGS='--tag CC' CC=gcc-4.2 CPP=cpp-4.2 ./configure --prefix=/usr/local/Cellar/apr/1.4.6 | |
$ make && make install | |
$ brew link apr | |
# download apache httpd | |
$ cd httpd-2.4.3 | |
$ LTFLAGS='--tag CC' CC=gcc-4.2 CPP=cpp-4.2 ./configure --prefix=/usr/local/Cellar/httpd/2.4.3 --with-apr=/usr/local/Cellar/apr/1.4.6/ | |
$ make && make install |
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
:%s/\s\{1,}\n/\r/g |
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
#!/bin/bash | |
#http://pygments.org/docs/cmdline/ | |
LANG="ruby" | |
if [ -n "$2" ] | |
then | |
LANG=$2; | |
fi |
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
$ CC=gcc-4.2 CPP=cpp-4.2 ./configure --disable-install-doc --prefix=$(echo ~)/.rbenv/versions/1.9.3-p327 --with-opt-dir=$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix openssl) | |
$ make && make install |
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
class Baba | |
def besta | |
puts "o baba e besta" | |
end | |
def go &block | |
xpto = "nada" | |
instance_eval &block | |
end | |
end |
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
*.swp | |
.DS_Store |