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
| Below are the Big O performance of common functions of different Java Collections. | |
| List | Add | Remove | Get | Contains | Next | Data Structure | |
| ---------------------|------|--------|------|----------|------|--------------- | |
| ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
| LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
| CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array | |
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
| Below are the Big O performance of common functions of different Java Collections. | |
| List | Add | Remove | Get | Contains | Next | Data Structure | |
| ---------------------|------|--------|------|----------|------|--------------- | |
| ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
| LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
| CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array | |
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
| $('#<ATTRIBUTE_NAME>').autocomplete({ | |
| source: function (request, response) { | |
| $.ajax({ | |
| url: '/CONTROLLER/ACTION', | |
| dataType: 'json', | |
| data: request, | |
| success: function (data) { | |
| $(data).each(function () { | |
| this.label = this.Name; | |
| }); |
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
| Ao rodar o sqlite é preciso que o banco seja criado em aruqivo ao invés de usar a memória. | |
| Baixar e descompactar o arquivo sqlite3.exe | |
| No console: | |
| $ "PATH\sqlite3.exe" NOME_DO_BANCO | |
| EM SEGUIDA: | |
| sqlite> .schema |
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
| >> Fazer BACKUP da estrutura de algumas tabelas em uma máquina remota: | |
| $pg_dump -t NOME_DE_UMA_TABELA -t NOME_DE_OUTRA_TABELA -f PATH_ONDE_SALVAR_O_ARQUIVO_*.sql -s -h IP_DA_MAQUINA_REMOTA -U postgres ohl_regis_geo | |
| ps: O parâmetro"-s" é "schema only". | |
| >> Fazer BACKUP do banco como "plain": | |
| $pg_dump -h localhost -U postgres NOME_DO_BANCO > "PATH\NOME_DO_BANCO.backup" | |
| >> Fazer BACKUP do banco como "plain" que não esteja na porta padrão do postgres (5432): |