Skip to content

Instantly share code, notes, and snippets.

View thiagofm's full-sized avatar
🐢
Slowly coming back to OSS

Thiago Massa thiagofm

🐢
Slowly coming back to OSS
View GitHub Profile
thiago@ubuntu:~$ sudo apt-get update
thiago@ubuntu:~$ sudo apt-get install git-core curl build-essential openssl
thiago@ubuntu:~$ git clone http://github.com/joyent/node.git && cd node
thiago@ubuntu:~/node$ ./configure
thiago@ubuntu:~/node$ make
thiago@ubuntu:~/node$ sudo make instal
thiago@ubuntu:~/node$ node -v
v0.5.0-pre
thiago@ubuntu:~/node$ cd
thiago@ubuntu:~$ curl http://npmjs.org/install.sh | sudo sh
curl http://npmjs.org/install.sh | npm_install=rc sh
sudo npm install <nome_do_pacote>
sudo npm install <nome_do_pacote>@<versão_do_pacote>
t@art-is-t:~/Dropbox/shop/shopapp$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
nada
def fibo(n)
if(n==0)
return 0
elsif (n==1)
return 1
else
return fibo(n-1) + fibo(n-2)
end
end