Skip to content

Instantly share code, notes, and snippets.

View danabauer's full-sized avatar

Dana Bauer danabauer

  • Philadelphia
  • 22:44 (UTC -04:00)
View GitHub Profile
@GerHobbelt
GerHobbelt / .gitignore
Created September 2, 2012 22:17
d3.js [vanilla/mbostock]: axes examples - reduced
# Editor backup files
*.bak
*~
@springmeyer
springmeyer / merge.py
Created September 21, 2012 00:30
Merge various file-based geodata and output as geojson
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import optparse
import mapnik
import sys
import os
parser = optparse.OptionParser(usage="""%prog datasource files (like .geojson, .shp, .csv, .sqlite, .osm, .kml)
@PhillyCDO
PhillyCDO / philly-rising-app.md
Created October 5, 2012 14:12
PhillyRising Application IDeas

#Ideas for PhillyRising Applications

A citizen engagement application (or set of applications) that connects people to the City, empowers them to get involved in their community through volunteering and attending City related events including PhillyRising events and meetings, rewards their efforts through technology and socializes their experience.

Applications should be a mobile (web or native) designed to engage citizens in efforts to improve their City. These apps would serve as resources / tools for locating facilities, learning about events occurring throughout the city, encourage participation in civic events, and connect neighbors. The engagement aspect of these applications is critical – they should link neighbors to other neighbors, and also to individuals from outside the community who are interested in engaging across the city.

The first step for any application is to map city facilities and resources, and then use the phone’s GPS to determine which are nearest to the user’s current location. P

@arvearve
arvearve / gist:4158578
Created November 28, 2012 02:01
Mathematics: What do grad students in math do all day?

Mathematics: What do grad students in math do all day?

by Yasha Berchenko-Kogan

A lot of math grad school is reading books and papers and trying to understand what's going on. The difficulty is that reading math is not like reading a mystery thriller, and it's not even like reading a history book or a New York Times article.

The main issue is that, by the time you get to the frontiers of math, the words to describe the concepts don't really exist yet. Communicating these ideas is a bit like trying to explain a vacuum cleaner to someone who has never seen one, except you're only allowed to use words that are four letters long or shorter.

What can you say?

@joshuajnoble
joshuajnoble / trainingCreator
Last active December 10, 2015 16:58
Simple processing app for creating a training file w/bounding boxes && descriptors for training RTrees, SVMs, etc in OpenCV or conceivably any CV-framework.
int currentIndex;
boolean hasBB;
PImage currentImage;
// we'll have a look in the data folder
String absolutePath = "path/to/images";
java.io.File folder = new java.io.File(absolutePath);
ArrayList<String> bbOutput;
@dwtkns
dwtkns / README.md
Last active October 19, 2023 16:44
Slippy map + extent indicator
@tmcw
tmcw / xyz_vs_tms.md
Last active February 11, 2026 06:42
The difference between XYZ and TMS tiles and how to convert between them

The difference between XYZ and TMS tiles and how to convert between them

Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles ending in /0/0/0.png or something. Sometimes if it's a script, it'll look like &z=0&y=0&x=0 instead. Anyway, these are usually maps in Spherical Mercator.

Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.

Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.

@jordanorelli
jordanorelli / gif_example.pde
Created February 20, 2013 02:38
make an animated gif with Processing
import gifAnimation.*;
GifMaker gifExport;
int frames = 0;
int totalFrames = 120;
public void setup() {
smooth();
size(400, 400);
@iamatypeofwalrus
iamatypeofwalrus / roll_ipython_in_aws.md
Last active February 21, 2025 18:39
Create an iPython HTML Notebook on Amazon's AWS Free Tier from scratch.

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time