Skip to content

Instantly share code, notes, and snippets.

View tdaubs's full-sized avatar
💭
I may be slow to respond.

T. Daubs tdaubs

💭
I may be slow to respond.
View GitHub Profile
# How to set up Gulp with an ExpressionEngine project
I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).
## Install Node.js
* If Node is not yet installed on the machine, it will need to be [installed](http://nodejs.org/download/)
## Install Gulp (if needed)
# 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/
# 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)
#geojson conversion
function shp2geojson() {
ogr2ogr -f GeoJSON -t_srs crs:84 "$1.geojson" "$1.shp"
}