Skip to content

Instantly share code, notes, and snippets.

View nardbyte's full-sized avatar
🏠
Working from home

Nardbyte nardbyte

🏠
Working from home
  • Network
View GitHub Profile
@DannasCornell
DannasCornell / index.php
Created March 28, 2019 21:54 — forked from maximilianoraul/index.php
Listar Carpetas y Archivos de un directorio
<?php
//Directorio
$dir = getcwd();
$directorio = opendir($dir);
$archivos = array();
$carpetas = array();
//Carpetas y Archivos a excluir
$excluir = array('.', '..', 'index.php', 'favicon.ico','folder.png','file.png','.dropbox.cache','.dropbox');
@sethbergman
sethbergman / WP-HTML-Compression
Created November 3, 2015 03:27
Minify HTML for WordPress without a Plugin - Add to function.php
<?php
class WP_HTML_Compression
{
// Settings
protected $compress_css = true;
protected $compress_js = true;
protected $info_comment = true;
protected $remove_comments = true;
// Variables