I hereby claim:
- I am galvao on github.
- I am galvao (https://keybase.io/galvao) on keybase.
- I have a public key whose fingerprint is BCA9 8ACC B247 1B55 4FBC DB96 9246 31FF 2E61 797E
To claim this, I am signing this object:
| <?php | |
| // Please read the comments below in this Gist carefully as this approach has very important caveats. | |
| namespace Application\Model; | |
| class Foo | |
| { | |
| public $id; | |
| public $bar; | |
| public $baz; |
| #From Command Line Fu (http://www.commandlinefu.com/commands/view/13310/print-ascii-character-chart) | |
| for i in {1..256};do p=" $i";echo -e "${p: -3} \\0$(($i/64*100+$i%64/8*10+$i%8))";done|cat -t|column -c120 |
| #Usage: rmd.sh CourseName Lesson | |
| cd /home/zaphod/Documents/Cursos/CodeSquad/$1/$2 | |
| recordmydesktop --delay 10 -o $2.ogv |
| <?php | |
| // =P | |
| $a = array('Chelsea', 'Liverpool', 'Manchester United', 'Manchester City'); | |
| $b = array('e', array_pop($a)); | |
| echo implode(', ', $a) . ' ' . implode(' ', $b); |
| algoritmo "semnome" | |
| var | |
| x, r: inteiro | |
| funcao somaum(y,): inteiro | |
| inicio | |
| y <- y + 1 | |
| retorne y | |
| fimfuncao |
| <?php | |
| $loader = require_once 'vendor/autoload.php'; | |
| if (!in_array('ModuleName', array_keys($loader->getPrefixes()))) { | |
| $loader->add("ModuleName", "/path/to/module"); | |
| } |
| <?php | |
| /* Proper way to fix this: https://github.com/kriwil/OpenX/blob/6804041a8f74d80f6fae4df3320576cc3bba06ff/pre-check.php#L252 | |
| Note that phpversion is also implemented in PHP4, but couldn't find the correct minor in which it was added, but let's | |
| face it: If you're running PHP prior to 4.3, you're already doing a lot of wrong sh*t. | |
| Also, can't find the correct minor on which function_exists was added, but it seems to begin working properly as of 4.3.0. | |
| */ | |
| if ((float)phpversion() > 4.3) { | |
| } |
I hereby claim:
To claim this, I am signing this object:
| Verifying that +galvao is my Bitcoin username. You can send me #bitcoin here: https://onename.io/galvao |
| algoritmo "Teste" | |
| funcao somaum(x,y,z,): inteiro | |
| inicio | |
| x <- y + z | |
| retorne x | |
| fimfuncao | |
| var |