This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| By Klaus Wuestefeld | |
| 1) Torne-se excelente. | |
| Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
| querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
| anos numa faculdade ouvindo um professor falar sobre software q vc | |
| sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo | |
| aula. Ele pratica. Instrumentistas geniais nao aprendem a tocar tendo | |
| aula. Eles praticam. Pratique. Chegue em casa depois do trabalho e da |
| <?php | |
| /** | |
| * PHP HORROR! | |
| */ | |
| $____ = 'value'; | |
| echo $____; |
| /** | |
| * Objeto Usuario (Classe) | |
| */ | |
| Usuario = function(nome, email) { | |
| this.nome = nome; | |
| this.email = email; | |
| }; | |
| // Métodos do objeto Usuario | |
| Usuario.prototype.pegarNome = function() { |
| # Adicione essas funções ao final do seu arquivo ~/.bashrc | |
| # Branches do Git | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[GIT:\1\]/' | |
| } | |
| # Branches do Mercurial | |
| parse_hg_branch() { | |
| thisbranch=`hg branch 2> /dev/null` |
| #!/usr/bin/python | |
| from commands import getoutput | |
| from time import sleep | |
| while True: | |
| out = '' | |
| for l in 'Te Amo Cassinha!': | |
| out += l | |
| if l == ' ': |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| [ui] | |
| username = infog | |
| editor = vim | |
| verbose = True | |
| [extensions] | |
| # relevância dos desenvolvedores (em linhas) | |
| churn = |
| <?php | |
| $a = 'b'; | |
| $t = array( | |
| (isset($a)) ? 'Sim' : 'Não' => (isset($a)) ? 'Sim' : 'Não', | |
| 'a' => ($a == 'c') ? 'A = C' : 'A != C' | |
| ); | |
| print_r($t); |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| # don't overwrite GNU Midnight Commander's setting of `ignorespace'. | |
| export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups |
Some people born with it, some people are self-taught on this, some people just discover how. How about a guide on how to code great software while still drunk as a cow?