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
| " Melhor pesquisa incremental. | |
| " <Tab> faz o que 'n' faz, apenas sem sair da pesquisa incremental. (Estilo Emacs) | |
| " <S-Tab> faz o que 'N' faz, apenas sem sair da pesquisa incremental. (Estilo Emacs) | |
| set wildcharm=<C-z> | |
| function! BetterIncSearch(key) | |
| if getcmdtype() == "/" || getcmdtype() == "?" | |
| if (a:key == "tab" && b:direction == "f") || (a:key == "stab" && b:direction == "b") | |
| return "\<CR>/\<C-r>/" | |
| elseif (a:key == "tab" && b:direction == "b") || (a:key == "stab" && b:direction == "f") | |
| return "\<CR>?\<C-r>/" |
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
| " | |
| " PreciseJump - script to ease on-screen motion | |
| " version: 0.49 - 2011-03-26 | |
| " | |
| " author: Bartlomiej Podolak <bartlomiej (a) gmail com> | |
| " | |
| if exists('g:PreciseJump_loaded') || &cp || version < 702 | |
| finish |
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
| " -- resolver o problema de combinações com a tecla alt não funcionar no terminal do linux; | |
| function! Ativar_alt_term_linux() | |
| let c='a' | |
| while c <= 'z' | |
| exec "set <A-".c.">=\e".c | |
| exec "imap \e".c." <A-".c.">" | |
| let c = nr2char(1+char2nr(c)) | |
| endw | |
| let c='0' |
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
| Exemplo #1 Iniciando o servidor web | |
| $ cd ~/public_html | |
| $ php -S localhost:8000 | |
| --- | |
| Exemplo #2 Iniciando o servidor web com um diretório raiz específico |
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
| #!/usr/bin/python | |
| # -*- coding: latin1 -*- | |
| """ | |
| """ | |
| import os | |
| import shutil | |
| def showFolderTree(path,show_files=False,indentation=2,file_output=False): |
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
| #!/usr/bin/python | |
| # -*- coding: latin1 -*- | |
| """ | |
| import os | |
| def list_files(startpath): | |
| with open("folder_structure.txt", "w") as f_output: | |
| for root, dirs, files in os.walk(startpath): | |
| level = root.replace(startpath, '').count(os.sep) |
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
| #!/usr/bin/python | |
| # -*- coding: latin1 -*- | |
| """ | |
| import os | |
| def list_files(startpath): | |
| with open("folder_structure.txt", "w") as f_output: | |
| for root, dirs, files in os.walk(startpath): | |
| level = root.replace(startpath, '').count(os.sep) |
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
| # Busca binária | |
| // recursivo: | |
| BUSCA-BINÁRIA (V[], início, fim, e) | |
| i recebe o índice do meio entre início e fim | |
| se (v[i] = e) entao | |
| devolva o índice i # elemento e encontrado | |
| fimse | |
| se (inicio = fim) entao |
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/haseebr/competitive-programming/tree/master/Materials |
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
| temas legais a se colocar na pasta .vim/.colors (https://vimcolors.com/) : | |
| arcadia.vim | |
| monokai.vim | |
| monokai-soda.vim | |
| railscasts.vim | |
| rupza.vim | |
| sierra.vim |