Skip to content

Instantly share code, notes, and snippets.

View reubano's full-sized avatar

Reuben Cummings reubano

View GitHub Profile
@reubano
reubano / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/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 / formatstrings.R
Created October 12, 2011 11:48
Choropleths in 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 October 3, 2012 17:58
script for packaging php projects for PEAR
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 / test.rst
Last active December 17, 2015 09:39

prometheus build

image

Introduction

@reubano
reubano / rowlingson.R
Created October 12, 2011 12:41
R Choropleth with shape file
###
### 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:

Markdown example

Markdown let's you do stuff like:

  • make bold text
  • or write in italics
  • and even strikethrough
@reubano
reubano / riko_readme.rst
Last active June 14, 2016 10:29
riko readme
@reubano
reubano / Contract Killer 3.md
Last active October 17, 2016 08:03 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

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