Skip to content

Instantly share code, notes, and snippets.

@vlandham
vlandham / parse_interviews.rb
Created October 2, 2011 20:03
parse usesthis.com
#!/usr/bin/env ruby
require 'yaml'
require 'json'
input_dirname = ARGV[0]
output_filename = "parsed_interviews.json"
class Categorizer
HW_CATEGORIES = [[/.*dell.*/, ["pc","system"]],
@grossbart
grossbart / README.md
Last active September 8, 2017 11:21
Kinetoscope

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

@caged
caged / gist:1173725
Created August 26, 2011 15:50
d3.js experiment - Donuts, Bars and Crime.
#
# CoffeeScript for http://dealloc.me/demos/crime/2011.html
# Copyright (c) 2011 Justin Palmer <http://github.com/Caged>
# LICENSE: http://www.opensource.org/licenses/mit-license.php
$ ->
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

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

@tmcw
tmcw / hexer.md
Last active December 28, 2015 03:38
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 https://github.com/hobu/hexer.git
@runemadsen
runemadsen / designerides.md
Last active December 16, 2015 15:09
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
tmcw / Makefile
Created March 19, 2013 13:48
Making Shadowplay
shadow.shp: ne_110m_land.shp shadowplay.py
python shadowplay.py ne_110m_land.shp shadow.shp
ne_110m_land.zip:
wget 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_land.zip'
ne_110m_land.shp:
unzip ne_110m_land.zip
touch ne_110m_land.shp
@tmcw
tmcw / README.md
Last active December 14, 2015 08:39
Math demo (made for mistakes)
@jstcki
jstcki / nest.rb
Created October 29, 2012 16:35
D3.js's nest operator in Ruby
# D3.js's nest operator in Ruby
class Nest
def initialize
# var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
@nest = {}
@keys = []
@sort_keys = []
end
@vlandham
vlandham / console_2_json.js
Created August 21, 2012 18:38
Output Javascript variable from console to json
console.log(JSON.stringify(object_or_function));