Skip to content

Instantly share code, notes, and snippets.

@r4vi
r4vi / optimize.sh
Last active December 15, 2015 02:29 — forked from ryansully/optimize.sh
handles files with spaces in the name and keeps EXIF in jpeg
#!/bin/sh
# script for optimizing images in a directory (recursive)
# pngcrush & jpegtran settings from:
# http://developer.yahoo.com/performance/rules.html#opt_images
# pngcrush
find $1 -iname "*.png" | while read png
do
echo "crushing $png ..."
@r4vi
r4vi / index.html
Created December 1, 2012 22:55 — forked from mbostock/.block
World Countries
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.country {
fill: #b8b8b8;
stroke: #fff;
stroke-width: .5px;
stroke-linejoin: round;
}