Skip to content

Instantly share code, notes, and snippets.

@emeeks
emeeks / edgelist.csv
Last active March 1, 2021 10:49
Arc Diagram with Directed Edges
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 July 6, 2019 00:24
Adjacency Matrix from Node/Edge List
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
@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

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 November 14, 2013 15:58
Approximate text width based on estimated character widths...
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 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
@mjhoy
mjhoy / Makefile
Last active December 19, 2022 04:44
Costa Rica shaded relief
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 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)