Skip to content

Instantly share code, notes, and snippets.

View crossforward's full-sized avatar

David Smith crossforward

View GitHub Profile
@crossforward
crossforward / gist:5457058
Created April 25, 2013 02:24
ATP.fm Title Suggestions 4, 24, 2013
A Drink or Two
Fussy Vodka
Fussy Water
As Fussy as it Gets
This is not the show
University is a nice step down
Progressive and Exciting
Beyond the scope of this show
@crossforward
crossforward / gist:3789356
Created September 26, 2012 17:27
Image Decompression Benchmark (iPhone 4)
ImageDecomp[2567] <Warning>: Flower_128x96.png (Crushed PNG) init: 5 ms decompress: 10 ms draw: 1 ms total 16 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (PNG) init: 5 ms decompress: 10 ms draw: 1 ms total 15 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (JPG 10%) init: 4 ms decompress: 2 ms draw: 1 ms total 7 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (JPG 20%) init: 4 ms decompress: 2 ms draw: 1 ms total 7 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (JPG 30%) init: 5 ms decompress: 2 ms draw: 1 ms total 8 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (JPG 40%) init: 4 ms decompress: 3 ms draw: 1 ms total 7 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (JPG 50%) init: 4 ms decompress: 3 ms draw: 1 ms total 7 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (JPG 60%) init: 4 ms decompress: 3 ms draw: 1 ms total 7 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (JPG 70%) init: 4 ms decompress: 3 ms draw: 1 ms total 7 ms
ImageDecomp[2567] <Warning>: Flower_128x96.png (JPG 80%)
@crossforward
crossforward / gist:3789343
Created September 26, 2012 17:24
Image Decompression Benchmark (iPhone 4S)
ImageDecomp[12201] <Warning>: Flower_128x96.png (Crushed PNG) init: 6 ms decompress: 6 ms draw: 0 ms total 13 ms
ImageDecomp[12201] <Warning>: Flower_128x96.png (PNG) init: 3 ms decompress: 7 ms draw: 0 ms total 10 ms
ImageDecomp[12201] <Warning>: Flower_128x96.png (JPG 10%) init: 3 ms decompress: 1 ms draw: 0 ms total 5 ms
ImageDecomp[12201] <Warning>: Flower_128x96.png (JPG 20%) init: 3 ms decompress: 2 ms draw: 1 ms total 5 ms
ImageDecomp[12201] <Warning>: Flower_128x96.png (JPG 30%) init: 3 ms decompress: 3 ms draw: 0 ms total 6 ms
ImageDecomp[12201] <Warning>: Flower_128x96.png (JPG 40%) init: 2 ms decompress: 1 ms draw: 0 ms total 4 ms
ImageDecomp[12201] <Warning>: Flower_128x96.png (JPG 50%) init: 3 ms decompress: 2 ms draw: 1 ms total 5 ms
ImageDecomp[12201] <Warning>: Flower_128x96.png (JPG 60%) init: 3 ms decompress: 3 ms draw: 0 ms total 6 ms
ImageDecomp[12201] <Warning>: Flower_128x96.png (JPG 70%) init: 2 ms decompress: 2 ms draw: 0 ms total 5 ms
ImageDecomp[12201] <Warning>: Flower_128
@crossforward
crossforward / gist:3789069
Created September 26, 2012 16:36
Image Decompression Benchmark (iPhone5)
ImageDecomp[6443] <Warning>: Flower_128x96.png (PNG) init: 2 ms decompress: 2 ms draw: 0 ms total 5 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 10%) init: 2 ms decompress: 1 ms draw: 0 ms total 4 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 20%) init: 2 ms decompress: 2 ms draw: 1 ms total 5 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 30%) init: 2 ms decompress: 2 ms draw: 1 ms total 5 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 40%) init: 2 ms decompress: 2 ms draw: 1 ms total 5 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 50%) init: 2 ms decompress: 2 ms draw: 1 ms total 5 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 60%) init: 2 ms decompress: 1 ms draw: 0 ms total 3 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 70%) init: 2 ms decompress: 2 ms draw: 1 ms total 5 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 80%) init: 2 ms decompress: 2 ms draw: 1 ms total 5 ms
ImageDecomp[6443] <Warning>: Flower_128x96.png (JPG 90%) init: 2
@crossforward
crossforward / iconset.sh
Created August 3, 2012 13:32
Create a Mac Application .iconset collection from base image
#! /bin/bash
# Pass in the name of the source file to resize as a command line argument
# More information here: http://bit.ly/NlHBqL
mkdir -p icon.iconset
convert $1 -resize 16x16 icon.iconset/icon_16x16.png
convert $1 -resize 32x32 icon.iconset/icon_16x16@2x.png
convert $1 -resize 32x32 icon.iconset/icon_32x32.png
convert $1 -resize 64x64 icon.iconset/icon_32x32@2x.png
convert $1 -resize 128x128 icon.iconset/icon_128x128.png
@crossforward
crossforward / gist:988630
Created May 24, 2011 12:40
Troll Ascii Art
To be placed at the top of any source file dealing with In-App Purchase:
------------------------------------
.8
.888 .---.
.8888' | |
.8888' . / ' , | |
888' ." ". `---'