Skip to content

Instantly share code, notes, and snippets.

Marc Chambers mchambers

Block or report user

Report or block mchambers

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View application.rb
def yo
tmcw /
Created Aug 11, 2012
geo-assign any arbitrary image to a geotiff usable in tilemill
import subprocess
import sys, re
MERC = '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'
infile = sys.argv[1]
info_output = subprocess.Popen(['gdalinfo', infile], stdout=subprocess.PIPE).communicate()[0]
size_is_re = re.compile('Size is (?P<width>\d+), (?P<height>\d+)')
size_is = filter(lambda x: x, map(lambda x: size_is_re.match(x), info_output.split('\n')))
danriti /
Last active Feb 22, 2017
HipChat - Send a message to a room using cURL
# Build Passes
curl -d "room_id=ourRoom&from=BuildBot&message=Build+Status:+Passing&color=green"
# Build Fails
curl -d "room_id=ourRoom&from=BuildBot&message=Build+Status:+Failing&color=red&notify=1"
mamund / gist:794419
Created Jan 25, 2011
JSON Link Standardization Examples
View gist:794419
/* some suggestions on implementing hyperlinks in json */
// 5988-style (
{ "link" :
"href" : "...",
"rel" : "...",
"hreflang" : "...",
"media" : "...",
"title" : "...",
View NSObject+PropertyListing.h
// NSObject+PropertyListing.h
// PropertyFun
// Created by Andrew Sardone on 8/27/10.
#import <Foundation/Foundation.h>
You can’t perform that action at this time.