Skip to content

Instantly share code, notes, and snippets.

View dancourbano's full-sized avatar

Daniel Cam Urquizo dancourbano

View GitHub Profile
@dancourbano
dancourbano / gist:4c23a3ab4e1c8f69909a9a555a080ad7
Created September 5, 2022 06:42 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
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
@dancourbano
dancourbano / javascript.json
Last active July 28, 2022 03:33
Snippets Javascript Visual Studio Code
{
// 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');",
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
@dancourbano
dancourbano / gist:5369514
Created April 12, 2013 05:01
cuando usar <aside><hgroup><span>
<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 -->