Skip to content

Instantly share code, notes, and snippets.

Reuben Cummings reubano

Block or report user

Report or block reubano

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View geojsonize
#!/usr/bin/env bash
# Bulk convert shapefiles to geojson using ogr2ogr
# For more information, see http://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/
#
# usage: geojsonize *.zip
#
# Note: Assumes you're in a folder with one or more zip files containing shape files
# and Outputs as geojson with the crs:84 SRS (for use on GitHub or elsewhere)
@reubano
reubano / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View test.rst

prometheus build

https://raw.github.com/reubano/prometheus/master/screenshot.png

Introduction

@reubano
reubano / gist:3828627
Created Oct 3, 2012
script for packaging php projects for PEAR
View gist:3828627
cd path/to/project
# create package.xml
pear package-validate
pear package
cp *.tgz path/to/pear/repo
cd path/to/pear/repo
pirum add . [filename].tgz
git add -A
git commit -m 'Add new package'
git push origin gh-pages
@reubano
reubano / rowlingson.R
Created Oct 12, 2011
R Choropleth with shape file
View rowlingson.R
###
### Barry Rowlingson, Lancaster University
###
## needed for shapefiles:
require(rgdal)
## needed for colour mapping - not on CRAN:
## http://r-forge.r-project.org/projects/colourscheme/
## try:
View formatstrings.R
#load data
stateAbbr rownames(stateAbbr)unemp_data
#get county names in correct format
countyNames counties statesstates
#concatenate states and counties
unemp_data$counties
#parse out county titles & specifics
You can’t perform that action at this time.