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
@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 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)
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
@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
View test.rst

prometheus build

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

Introduction

@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 markdown.md

Markdown example

Markdown let's you do stuff like:

  • make bold text
  • or write in italics
  • and even strikethrough
@reubano
reubano / Contract Killer 3.md
Last active Oct 17, 2016 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@reubano
reubano / geopython_meza_demo.rst
Last active May 11, 2017
Code from my GeoPython talk
View geopython_meza_demo.rst
pip install meza
# readers
>>> from meza import io
>>>
>>> records = io.read('kibo_peak.geojson')
You can’t perform that action at this time.