This file contains hidden or 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
" be iMproved | |
set nocompatible | |
" colorscheme molokai | |
colorscheme solarized | |
set background=dark | |
set spell | |
set number | |
set encoding=utf-8 | |
set guifont=Source\ Code\ Pro\ Regular\ 12 |
This file contains hidden or 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
<?php | |
function reducer($total, $elt) | |
{ | |
return $elt + $total; | |
} | |
$arr = array(1, 2, 3, 4, 5); | |
echo array_reduce($arr, 'reducer', 1); | |
?> |
This file contains hidden or 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
div | |
{ | |
width:150px; | |
height:150px; | |
overflow:scroll; | |
overflow-x: hidden; | |
} |
This file contains hidden or 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
path to PhpCodeAniffer | |
cd /usr/lib/php/PHP/CodeSniffer/Standards/ |
This file contains hidden or 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
// https://github.com/scrooloose/nerdcommenter | |
<LEADER> = / se não tiver um padrão pre definindo. |
This file contains hidden or 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 init | |
git add . | |
git commit -m "message" | |
git remote add origin ssh://git@host/foo/foo.git | |
git push -u origin master |
This file contains hidden or 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
//ignore arquivos de backup do vim | |
*~ | |
*.swp |
This file contains hidden or 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
// http://four.laravel.com/docs/migrations | |
//criando migrations para tabela | |
php artisan migrate:make create_foo_table | |
//populando/semeando as tabela do banco de dados. | |
artisan db:seed | |
This file contains hidden or 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
# Can ignore specific files | |
.DS_Store | |
# Use wildcards as well | |
*~ | |
*.swp | |
# Can also ignore all directories and files in a directory. | |
tmp/**/* |
This file contains hidden or 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
// executar este comando para registar os namespace das classes criadas. | |
composer.phar dump-autoload |