Skip to content

Instantly share code, notes, and snippets.

View FlashAmarillo's full-sized avatar
🎯
Focusing

Diomar Villarroel FlashAmarillo

🎯
Focusing
View GitHub Profile
@FlashAmarillo
FlashAmarillo / modal.css
Created November 4, 2022 02:59 — forked from Klerith/modal.css
Estilos para un modal manual
.modal-background {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
@FlashAmarillo
FlashAmarillo / validations.ts
Created November 4, 2022 02:55 — forked from Klerith/validations.ts
Validar email
export const isValidEmail = (email: string): boolean => {
const match = String(email)
.toLowerCase()
.match(
/^(([^<>()[\]\\.,;:\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,}))$/
);
@FlashAmarillo
FlashAmarillo / git-alias.md
Created October 3, 2022 05:32 — 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