Skip to content

Instantly share code, notes, and snippets.

@Barrz417
Barrz417 / httpd.conf
Created June 26, 2024 19:53 — 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"
@codigoconjuan
codigoconjuan / app.js
Last active August 12, 2024 22:18
Picture con imágenes AVIF y WEBP
imagen.innerHTML = `
<source srcset="build/img/gallery/thumb/${i}.avif" type="image/avif">
<source srcset="build/img/gallery/thumb/${i}.webp" type="image/webp">
<img loading="lazy" width="200" height="300" src="build/img/gallery/thumb/${i}.jpg" alt="imagen galeria">
`;
@codigoconjuan
codigoconjuan / gulpfile.js
Last active November 11, 2024 02:45
Convertir Imagenes a Webp
export async function imagenes(done) {
const srcDir = './src/img';
const buildDir = './build/img';
const images = await glob('./src/img/**/*{jpg,png}')
images.forEach(file => {
const relativePath = path.relative(srcDir, path.dirname(file));
const outputSubDir = path.join(buildDir, relativePath);
procesarImagenes(file, outputSubDir);
@codigoconjuan
codigoconjuan / httpd.conf
Created March 2, 2022 18:33
Gist para Configurar PHP 8
LoadModule php_module "C:/php/php8apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "c:/php"
@dupuy
dupuy / README.rst
Last active October 21, 2024 22:20
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.