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
| { | |
| // Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| // "Print to console": { | |
| // "prefix": "log", | |
| // "body": [ | |
| // "console.log('$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
| Si quieren cambiar el nombre de un archivo: | |
| mv[nombreActual.extension] [nombreNuevo.extension] | |
| mv archivo.txt nuevonombre.txt | |
| ver ultimas lineas de archivos largos | |
| tail -f -n 15 /var/log/nginx/nginx.log | |
| saber si existe usuario en tu sistema o no: | |
| cat /etc/passwd | grep usuario |
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
| <hgroup> <!--se encarga de agrupar titulos y texto de formatos cabeceras como los h1, h2, etc. | |
| que son solo frases y no textos completos, ademas en ella podemos enviar insertar cualquier texto de ayuda pero que no aparezca en su estructura--> | |
| <aside><!--usada para envolver una seccion de textos, y tambien para resaltar texti de publicidad o texto para llamar la atencion--> | |
| <span> <!--engloba elementos de una misma fila y dar formato mientras que DIV lo hace con contenido de bloques --> |