Skip to content

Instantly share code, notes, and snippets.

vlandham / console_2_json.js
Created Aug 21, 2012
Output Javascript variable from console to json
View console_2_json.js
herrstucki / nest.rb
Created Oct 29, 2012
D3.js's nest operator in Ruby
View nest.rb
# D3.js's nest operator in Ruby
class Nest
def initialize
# var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
@nest = {}
@keys = []
@sort_keys = []
tmcw /
Last active Dec 14, 2015
Math demo (made for mistakes)
tmcw / Makefile
Created Mar 19, 2013
Making Shadowplay
View Makefile
shadow.shp: ne_110m_land.shp
python ne_110m_land.shp shadow.shp
wget ''
touch ne_110m_land.shp
runemadsen /
Last active Dec 16, 2015
A list of programming languages for designers

List of Programming Environments for Designers

Yesterday I asked Twitter this question: "I'm looking for examples of software that comes close to the idea of an IDE for graphic designers. Anything comes to mind?".

I'm not as much interested in PD or MAX-like environments, as much as a "real" code editor merged with UI controls. Scriptographer is probably as close as you can come, but it's no longer maintained, and the programming environment is not integrated with the UI. I'd love to see a piece of software where you can:

  • Generate and draw via code (just like Processing)
  • Manipulate the generated shapes and colors via UI tools (just like Illustrator)
  • Draw things with the mouse (just like Illustrator)
  • Manipulate the shapes and colors via code
tmcw /
Last active Dec 28, 2015
Hexer is Cool

hexer is cool. It's a new project by Howard Butler that makes hexagon binned files out of point files.

Building hexer

This worked on my system (OSX 10.9, git via homebrew)

git clone

This is my default career advice for people starting out in geo/GIS, especially remote sensing, adapted from a response to a letter in 2013.

I'm currently about to start a Geography degree at the University of [Redacted] at [Redacted] with a focus in GIS, and I've been finding that I have an interest in working with imagery. Obviously I should take Remote Sensing and other similar classes, but I'm the type of person who likes to self learn as well. So my question is this: What recommendations would you give to a student who is interested in working with imagery? Are there any self study paths that you could recommend?

I learned on my own and on the job, and there are a lot of important topics in GIS that I don’t know anything about, so I can’t give comprehensive advice. I haven’t arrived anywhere; I’m just ten minutes ahead in the convoy we’re both in. Take these recommendations critically.

Find interesting people. You’ll learn a lot more from a great professor (or mentor, or friend, or conference) o

caged / gist:1173725
Created Aug 26, 2011
d3.js experiment - Donuts, Bars and Crime.
View gist:1173725
# CoffeeScript for
# Copyright (c) 2011 Justin Palmer <>
$ ->
hash = document.location.hash
year = if hash then hash.replace('#', '') else 2011
[pt,pl,pb,pr] = [35, 20, 20, 20]
w = (900 - (pl + pr)) / 2
h = w

A short code excerpt from this visualization I created for the longform article “Iouri Podladtchikov – You only fly once” by the Neue Zürcher Zeitung.

It's a very simple way to create an interactive animation based on video material. Hover over the image to go through the animation.

I used Final Cut Pro to crop and export the frames of a short video sequence, which I then stitched together into a single film strip using ImageMagick: convert folder-of-stills/* +append filmstrip.jpg

View parse_interviews.rb
#!/usr/bin/env ruby
require 'yaml'
require 'json'
input_dirname = ARGV[0]
output_filename = "parsed_interviews.json"
class Categorizer
HW_CATEGORIES = [[/.*dell.*/, ["pc","system"]],