Skip to content

Instantly share code, notes, and snippets.

View JorgeDevmm's full-sized avatar
🚀
Working from home

JorgeDevmm JorgeDevmm

🚀
Working from home
View GitHub Profile
@JorgeDevmm
JorgeDevmm / git-alias.md
Created January 24, 2023 02:13 — 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

@JorgeDevmm
JorgeDevmm / gist:a201f50736b848bac2b4f7a98a4a420d
Created February 1, 2023 04:28 — forked from codigoconjuan/gist:30973f8e5e7d210e0458bc49a55ad2c4
Gist para Imágenes HTML5 con AVIF, webp y JPG
"imagenes": {
"prefix": "pic",
"body": [
"<picture>",
"<source",
"\t sizes=\"1920w, 1280w, 640w\" ",
"\t srcset=\"img/imagen.avif 1920w, \n\t\t\t img/imagen-1280.avif 1280w, \n\t\t\t img/imagen-640.avif 640w\" ",
"\t type=\"image/avif\">",
"<source",
"\t sizes=\"1920w, 1280w, 640w\" ",
@JorgeDevmm
JorgeDevmm / imagenes.js
Created February 14, 2023 06:41 — forked from codigoconjuan/imagenes.js
Gist Soporte Imagenes WebP y Avif como Background
(function (document) {
var checkCount = 0,
formatFound = false;
function setHTMLClass(height, className) {
checkCount++;
if (height == 2) {
formatFound = true;
document.documentElement.className += " " + className;
} else {
@JorgeDevmm
JorgeDevmm / app.js
Created March 3, 2023 17:23 — forked from codigoconjuan/app.js
Validar email
const regex = /^\w+([.-_+]?\w+)*@\w+([.-]?\w+)*(\.\w{2,10})+$/
@JorgeDevmm
JorgeDevmm / httpd.conf
Created May 18, 2023 18:24 — forked from codigoconjuan/httpd.conf
Gist para Configurar PHP 8
LoadModule php_module "C:/php/php8apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "c:/php"