Skip to content

Instantly share code, notes, and snippets.

Avatar

Lorenzo Cinque Mulder90

View GitHub Profile
@Mulder90
Mulder90 / README.md
Created Sep 28, 2015 — forked from addyosmani/README.md
108 byte CSS Layout Debugger
View README.md

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

View optimize.bat
@echo off
echo Optimizing JPEG ^& PNG Images...
cd %1
forfiles /s /m *.jpg /c "cmd /c @\"C:\Program Files\Image Optimization\jpegtran.exe\" -copy none -optimize -progressive @file @file"
forfiles /s /m *.jpeg /c "cmd /c @\"C:\Program Files\Image Optimization\jpegtran.exe\" -copy none -optimize -progressive @file @file"
forfiles /s /m *.JPG /c "cmd /c @\"C:\Program Files\Image Optimization\jpegtran.exe\" -copy none -optimize -progressive @file @file"
forfiles /s /m *.JPEG /c "cmd /c @\"C:\Program Files\Image Optimization\jpegtran.exe\" -copy none -optimize -progressive @file @file"
forfiles /s /m *.png /c "cmd /c @\"C:\Program Files\Image Optimization\optipng.exe\" -o7 -strip all @file"
forfiles /s /m *.PNG /c "cmd /c @\"C:\Program Files\Image Optimization\optipng.exe\" -o7 -strip all @file"
echo. & echo Process done!
You can’t perform that action at this time.