Skip to content

Instantly share code, notes, and snippets.

View asantos071's full-sized avatar
💭
Learning

Antonio Santos asantos071

💭
Learning
View GitHub Profile
@asantos071
asantos071 / instalaciones-node.md
Created January 31, 2022 04:14 — forked from Klerith/instalaciones-node.md
Instalaciones recomendadas y obligatorias para seguir el curso de Node
@asantos071
asantos071 / instalaciones-angular.md
Created January 31, 2022 04:15 — forked from Klerith/instalaciones-angular.md
Instalaciones necesarias y recomendadas - Curso de Angular de cero a experto
@asantos071
asantos071 / db.json
Created January 31, 2022 04:15 — forked from Klerith/db.json
Base de datos rápida - json-server
{
"usuarios": [
{
"id": 1,
"usuario": "John Doe",
"email": "[email protected]"
}
],
"heroes": [
{
@asantos071
asantos071 / git-config.md
Created January 31, 2022 04:16 — forked from Klerith/git-config.md
Configuración de email y usuario de Git
git config --global user.name "John Doe"
git config --global user.email [email protected]
@asantos071
asantos071 / instalaciones-react.md
Created January 31, 2022 04:16 — forked from Klerith/instalaciones-react.md
Instalaciones recomendadas para el curso de React con Sockets
@asantos071
asantos071 / email-pattern.txt
Created January 31, 2022 04:16 — forked from Klerith/email-pattern.txt
Email Pattern para validaciones de correo
pattern="^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"
@asantos071
asantos071 / instalaciones-angular-adv.md
Created January 31, 2022 04:17 — forked from Klerith/instalaciones-angular-adv.md
Instalaciones recomendadas para el curso Avanzado de Angular
@asantos071
asantos071 / instalaciones-javascript-curso.md
Created January 31, 2022 04:18 — forked from Klerith/instalaciones-javascript-curso.md
Instalaciones recomendadas - Curso de JavaScript
@asantos071
asantos071 / git-alias.md
Created January 31, 2022 04:21 — forked from Klerith/git-alias.md
Useful Git Alias

Log

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Status

git config --global alias.s status --short

Alternativa útil de status

git config --global alias.s status -sb

@asantos071
asantos071 / is-valid-email.ts
Created January 31, 2022 04:22 — forked from Klerith/is-valid-email.ts
Email validation - customHook
const isValidEmail = ( email: string ) => {
const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}