git checkout master
Asegúrate de estar en la rama master localgit fetch origin
Trae los últimos cambios del repositorio remoto (pero no los fusiona)git reset --hard origin/master
Resetea tu rama local master al estado de la rama master remota
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
Go recomienda una estructura específica para proyectos. Usa este esquema estándar: | |
mi-proyecto/ | |
├── cmd/ # Punto de entrada principal | |
│ └── main.go # Archivo principal (aquí va `func main()`) | |
├── internal/ # Código privado del proyecto | |
│ └── mi-paquete/ # Lógica interna | |
├── pkg/ # Código reusable público (opcional) | |
├── go.mod # Archivo de definición del módulo (se genera en el paso 2) | |
├── README.md # Documentación |
NX | nestjs | axios | @jscutlery/semver | @nestjs/axios | @nestjs/config | @nestjs/event-emitter | @nestjs/typeorm |
---|---|---|---|---|---|---|---|
14 | 8 | 1.3.5 | 2 | 2 | |||
15 | 9 | ||||||
16 | 10 | 1.6.8 | 3.0.2 | 3 | 2.0.4 | 10.0.2 | |
17 | 1.6.8 | 4 | 3.0.2 | ||||
18 | 1.6.8 | 5 | 3.0.2 |
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
1) List available versions | |
nvm ls-remote | |
1.1) list installed versions | |
nvm list | |
2) Install a specific version | |
nvm install 8.16.2 | |
2.1) Install the latest release | |
nvm install node |
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
build: | |
chore: | |
ci: | |
docs: | |
style: | |
refactor: | |
perf: | |
test: |
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
<header className="flex items-center bg-gray-800 px-28 py-3"> | |
<Link href="/"> | |
<h1 className="font-black text-3xl text-white">Title</h1> | |
</Link> | |
<div className="flex-grow text-right"> | |
<button | |
className="bg-green-500 hover:bg-green-400 px-5 py-2 text-gray font-bold rounded-sm inline-flex items-center" | |
onClick={() => router.push("/new")} |
- https://simpleicons.org/ => icons
- https://http.cat/ => http code
- https://excalidraw.com/ => draw
- https://gitmoji.dev/ => Emoji into commits
- https://wweb.dev/resources/css-separator-generator => generador separador
- http://jsbenchmark.com
- http://buff.ly/3QGdG4c => operadores js
- https://www.upscale.media/es => mejorar imagenes
- https://www.myheritage.es/deep-nostalgia => mejorar imagenes
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
git stash: guarda los cambios temporalmente en memoria cuando no quieres hacer un commit aun | |
git stash save “mensaje”: guarda un stach con mensaje | |
git stash list: muestra la lista de cambios temporales | |
git stash pop: trae de vuelta los cambios que teníamos guardados en el ultimo stash | |
git stash apply stash@{n}: trae el stash que necesites con indicar su número dentro de las llaves | |
git stash drop: borra el ultimo stash | |
git stash clear: borra todos los stash |
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
const date_regex = /^(0[1-9]|1\d|2\d|3[01])\/(0[1-9]|1[0-2])\/(19|20)\d{2}$/; // dd/mm/yyyy | |
const date_regex2 = /^(0[1-9]|1[0-2])\/(0[1-9]|1\d|2\d|3[01])\/(19|20)\d{2}$/; // mm/dd/yyyy | |
const testDate = '13/06/2022'; | |
date_regex.test('01/12/2022') | |
date_regex2.test('12/30/2022') |
NewerOlder