Skip to content

Instantly share code, notes, and snippets.

@danbjoseph
danbjoseph / gist:bbdf92fb8e7cd309ba98
Last active August 29, 2015 14:12
wire up Bower packages from the terminal

Wire up Bower packages from the terminal

The wiredep documentation covers everything in much greater detail but at the most basic...

Install wiredep globally

$ npm install -g wiredep
@danbjoseph
danbjoseph / gist:038cbab1b4d064701989
Last active August 29, 2015 14:13
Mapbooklet using mailmerge

Mapbooklet using mailmerge

Parts of this may be more detailed than you need. I did this on a Mac. There will be some difference with a Windows setup. Please help improve this guide if you have additions or corrections.

This assumes you have:

  • Loose leaf copier paper such as Rite in the Rain LL851 with each sheet having two 4 5/8 in x 7 in pre-perforated loose leaf sheets (or something similar)
  • An image file for each page of your booklet

Steps:

  • Create a project folder and work in it
  • Create an images folder and drop all your map page images into it
@danbjoseph
danbjoseph / JOSM_notes.md
Last active August 29, 2015 14:14
outline for session on JOSM at GW on 2015-02-06
  • install JOSM
  • install plugins through the preferences (links below are to details)
  • enable remote control in preferences
  • familiarize yourself with the keyboard shortcuts
    • Select, move, scale and rotate objects (S)
    • Draw nodes (A)
    • etc.
  • for adding tags the OSM wiki on map features is your friend
@danbjoseph
danbjoseph / qr-generate.md
Created February 24, 2015 04:56
links and such for reference while building bulk qr code generator
@danbjoseph
danbjoseph / web map and postgis.md
Created February 25, 2015 01:58
looking into how to put data from a postgis db on a web map
@danbjoseph
danbjoseph / postgres COPY.md
Last active August 29, 2015 14:16
copying data from csv to a new postgres table
  • file must be on same computer as postgres database
  • file must be UTF-8, though might be a way to define this as something else in the psql command
CREATE TABLE enumeration(
	"id" SERIAL PRIMARY KEY,
	"enumerator" TEXT, 
	"hh_id" TEXT, 
	"respondent_last" TEXT, 
	"respondent_first" TEXT, 
	... 
@danbjoseph
danbjoseph / VUT_airports.geojson
Last active August 29, 2015 14:17
Vanuatu airport locations (unverified community data from ourairports.com)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danbjoseph
danbjoseph / oms-meta-api_install
Last active August 29, 2015 14:19
osm-meta-api install
cd /
sudo wget http://nodejs.org/dist/v0.12.2/node-v0.12.2-linux-x64.tar.gz
sudo tar -C /usr/local --strip-components 1 -xzf node-v0.12.2-linux-x64.tar.gz
node -v
npm -v
sudo npm install pm2 -g
sudo add-apt-repository ppa:git-core/ppa
sudo add-apt-repository ppa:webupd8team/java
@danbjoseph
danbjoseph / osm-meta-api_data-upload
Last active August 29, 2015 14:19
osm-meta-api data upload
http://planet.osm.org/replication/changesets
new window ... ctrl-a c
nav menu ... ctrl-a "
change name ... ctrl-a A
detach ... ctrl-a d
re-attch ... $screen -r
2014-01-01 00:00 - 000/598/424
@danbjoseph
danbjoseph / spatialite-qgis.md
Created April 28, 2015 14:37
spatialite db for osm data in qgis