- Organização do GitHub: Friends of Clean Code (clean-code-subtitles)
- S/ lista de discução tag no github da issue
- Usar repositório existente
- Não, do zero
- Repositório todo em inglês, mas pode-se usar português se necessário (dúvidas de gramática, tradução, etc)
- tag para pt-BR nestes casos
- mandar email p/ Uncle Bob e perguntar do transcript
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
" Import dotVIM (https://github.com/renanivo/dotvim) | |
source ~/.vim/vimrc | |
" Usability {{{ | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set foldmethod=marker |
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
PS1='\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]`git branch 2>/dev/null | grep \* | head -1 | sed "s/\* //g" | awk "{ print \"(\"\\\$1 \")\" }"`\n\[\033[29m\]$\[\033[00m\] ' |
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
" Recommended key-mappings. | |
" <CR>: close popup and save indent. | |
inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>" | |
" <TAB>: completion. | |
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" | |
" <C-h>, <BS>: close popup and delete backword char. | |
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>" | |
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>" | |
inoremap <expr><C-y> neocomplcache#close_popup() | |
inoremap <expr><C-e> neocomplcache#cancel_popup() |
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 log --format="%h" -n 1 <file> |
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
let g:makegreen_stay_on_file = 1 " do not jump to the test file on errors | |
autocmd BufNewFile,BufRead *.py compiler nose | |
autocmd BufWritePost *.py MakeGreen -c nose.cfg |
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 | |
#usage: | |
# ./delete-merged.sh ignored_branch1 ignored_branch2 ignored_branch3 ... | |
FILTER="master\|integra" | |
for i in "$@"; do | |
FILTER+="\|$i" | |
done | |
git branch --merged | gsed "/$FILTER/d" | gsed 's/\*//' | gsed 's/^/git branch -D/' | sh |
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
LIST_MODIFIED=$(git diff-index --name-status --cached HEAD | grep -w '^.*$' | sed 's/^.\{2\}//') | |
if [ ${#LIST_MODIFIED[@]} -eq 0 ]; then | |
echo "\033[33mNothing to commit, genius!\033[39m""]]" | |
exit 1 | |
fi |
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
import asyncio | |
from prompt_toolkit.shortcuts import prompt_async | |
@asyncio.coroutine | |
def my_coroutine(): | |
while True: | |
result = yield from prompt_async('Say something: ', patch_stdout=True) | |
print('You said: %s' % result) |
OlderNewer