This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### 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: |
The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
OlderNewer