Skip to content

Instantly share code, notes, and snippets.

@emeeks
emeeks / edgelist.csv
Last active Mar 1, 2021
Arc Diagram with Directed Edges
View edgelist.csv
source target weight
sam tully 3
sam pat 8
sam kim 2
sam pris 1
roy pris 5
roy sam 1
tully sam 1
tully pris 5
tully kim 3
@emeeks
emeeks / edgelist.csv
Last active Jul 6, 2019
Adjacency Matrix from Node/Edge List
View edgelist.csv
sam tully 3
sam pat 8
sam kim 2
sam pris 1
roy pris 5
roy sam 1
tully sam 1
tully pris 5
tully kim 3
View README.md

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 gis-advice.md

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

@gka
gka / textWidth.js
Created Nov 14, 2013
Approximate text width based on estimated character widths...
View textWidth.js
var textWidth = (function() {
function charW(w, c) {
if (c == 'W' || c == 'M') w += 15;
else if (c == 'w' || c == 'm') w += 12;
else if (c == 'I' || c == 'i' || c == 'l' || c == 't' || c == 'f') w += 4;
else if (c == 'r') w += 8;
else if (c == c.toUpperCase()) w += 12;
else w += 10;
return w;
}
@tmcw
tmcw / hexer.md
Last active Dec 28, 2015
Hexer is Cool
View hexer.md

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 Dec 16, 2015
A list of programming languages for designers
View designerides.md

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
@mjhoy
mjhoy / Makefile
Last active Sep 30, 2019
Costa Rica shaded relief
View Makefile
all: hill-relief.jpg costarica_min_topo.json
# -------------
# Relief raster
# -------------
#
# Notice the `zip` file requirements here have no download.
# You will need to search for them online. They are from the
# SRTM project: http://www2.jpl.nasa.gov/srtm/
# (which appears to have multiple versions of files).
@tmcw
tmcw / Makefile
Created Mar 19, 2013
Making Shadowplay
View Makefile
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 Dec 14, 2015
Math demo (made for mistakes)
View README.md