Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / email-validation.js
Created August 16, 2021 19:23
Vue + Quasar - Validación de un correo electrónico
isValidEmail( val ) {
const emailPattern = /^(?=[a-zA-Z0-9@._%+-]{6,254}$)[a-zA-Z0-9._%+-]{1,64}@(?:[a-zA-Z0-9-]{1,63}\.){1,8}[a-zA-Z]{2,63}$/;
return emailPattern.test(val) || 'El correo no parece ser válido';
}
@Klerith
Klerith / git-alias.md
Last active November 20, 2025 03:30
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