- Jim Weirich: The Building Blocks of Modularity – http://goo.gl/g4Nk
- Jim Weirich: SOLID Ruby – http://goo.gl/z3jd
- Sandi Metz: SOLID Object-Oriented Design – http://goo.gl/PDn6T
- Sandi Metz: Less – The Path to Better Design – http://goo.gl/VuTl4
- Demeter is for Encapsulation – http://is.gd/eeyLx
- Opinionated Modular Code – http://is.gd/eeyXm
- Scaling to Hundreds of Millions of Requests – http://vimeo.com/12814529
- Confident Code – http://goo.gl/VFLX
- Destroy All Software Screencasts – https://www.destroyallsoftware.com/screencasts
- Corey Haines: Fast Rails Tests – http://goo.gl/Va2gb
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
run: | |
@python manage.py runserver 8000 | |
createdb: | |
@python manage.py syncdb | |
clean: | |
@find . -type f -name "*.pyc" | xargs rm -rf | |
@clear |
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
git config --global user.name "Tarcisio Coutinho" | |
git config --global user.email "[email protected]" | |
git config --global color.ui true | |
git config --global alias.s status | |
git config --global alias.c checkout | |
git config --global alias.b branch | |
git config --global alias.lol log --oneline --graph --decorate |
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
rand(38**8).to_s(36) |
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
Copie o arquivo de instalação (ns-allinone-2.34.tar.gz) para a pasta do usuário (ex: /home/tacsio). Depois entre no terminal e digite: | |
$ cd ~ | |
$ tar xzvf ns-allinone-2.34.tar.gz | |
depois segue o que tem nesse link http://erl1.wordpress.com/2011/10/14/installing-ns-2-34-on-ubuntu-11-10-oneiric-ocelot/ | |
aí depois de instalar faz o seguinte: | |
Passo 1: Copie o texto abaixo para um arquivo chamado ns-2.txt e grave na pasta home do usuário. (onde tem x substituir pelas versões que aparecem no final da instalação) |
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
export LESS="-erX" | |
Problem: ANSI chars on output |
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 - | |
#=============================================================================== | |
# | |
# FILE: script-completion.sh | |
# | |
# USAGE: ./script-completion.sh | |
# | |
# DESCRIPTION: | |
# | |
# OPTIONS: --- |
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
git show --pretty="format:" --name-only -r | |
git diff --name-status SHA1 SHA2 |
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
SELECT * FROM table | |
where attr = x | |
INTO OUTFILE '/home/tarcisio.coutinho/Shared/inicio.csv' | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '' | |
LINES TERMINATED BY '\n' |
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
#!/usr/bin/env R - | |
#=============================================================================== | |
# | |
# FILE: moment_matching.R | |
# | |
# USAGE: R -f moment_matching.R --args [file] | |
# | |
# DESCRIPTION: Calculates moment matching of sample data | |
# | |
# OPTIONS: --- |
OlderNewer