Skip to content

Instantly share code, notes, and snippets.

@mdg
mdg / gist:916667
Created April 12, 2011 23:22
gm identify -verbose problem.jpg
Image: problem.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Geometry: 698x1080
Class: DirectClass
Type: true color
Depth: 8 bits-per-pixel component
Channel Depths:
Red: 8 bits
Green: 8 bits
@mdg
mdg / toggler.py
Created August 12, 2010 17:18
Return a function that will return alternating items
# Return a function that will return alternate items and a new function
def make_toggler(a,b):
return lambda: (a, make_toggler(b,a))