Skip to content

Instantly share code, notes, and snippets.

View mvexel's full-sized avatar

Martijn van Exel mvexel

View GitHub Profile
@mvexel
mvexel / stock_quote_function.sh
Created December 20, 2016 19:19
stock_quote_function.sh
# Get stock quote from command line
# Call with `sq yhoo`
# By default only last trade price shown
# add extra info in optional second parameter
# for available data see http://vikku.info/codetrash/Yahoo_Finance_Stock_Quote_API
# like so: `sq yhoo c1` will give you % change for the day
function sq() {
curl -s "http://download.finance.yahoo.com/d/quotes.csv?s=$1&f=l1$2"
}
@mvexel
mvexel / network-values.txt
Created December 1, 2016 23:14
network-values.txt
CA:AB:primary
CA:QC:A
CA:QC:A
CA:ON:county
CA:ON:primary
CA:ON:primary
CA:ON:primary
CA:ON:primary
CA:ON:primary
CA:ON:primary
@mvexel
mvexel / manifesto-2017.md
Last active November 30, 2016 15:50
MartijnOSM US Manifesto 2017

This is a draft


layout: post title: "Here is how I failed in 2016. And why I should be on the OSM US board in 2017." excerpt: "My manifesto for the 2016 OSM US board elections" tags: [osm, elections, board] comments: false

@mvexel
mvexel / maproulette-2-windows-local-setup.md
Last active October 11, 2016 20:37
maproulette-2-windows-local-setup.md
  • Install Java JDK 8 from here
    • Set JAVA_HOME environment variable according to install instructions
  • Download and extract the Lightbend Activator from here
  • Add the Activator bin directory to your Windows path.
  • Install PostgreSQL 9.5 from here
    • When asked, choose osm as the database superuser password
  • Run the PostgreSQL StackBuilder to install PostGIS 2.3.0
  • Install git for windows from here
  • Open a PSQL console from the PostgreSQL program menu
  • In the PSQL consile, create the MapRoulette database:
@mvexel
mvexel / gpxmatch.py
Last active August 22, 2016 18:12
gpxmatch.py
#!/usr/bin/env python
# This hacky script takes a GPX file and compares it to OSM ways in
# its surroundings. It looks for points that are not close to an
# OSM way. If it finds any, it will add them to an output GPX file.
#
# Good:
#
# * It works
#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mvexel
mvexel / sotm-16-workshops.md
Last active July 19, 2016 20:47
sotm-16-workshops.md

Make maps more ​interactive​ with the magic of a geocoding search box

Pigott 101, 9am

Rhonda Glennon, Katie Kowalsky, Diana Shkolnikov

Interactive maps are everywhere these days, and geocoding powers the interactive map experience. Geocoding turns addresses and place names into geographic coordinates. With coordinates of places revealed, the map can pan and zoom to the right location, drop markers, and draw outlines of geographic areas. In this workshop, you'll be learning how to build an interactive map that contains a simple, yet powerful, search box powered by the Mapzen Search API, which is an open-source geocoding service built on open data sets, including OpenStreetMap.

In this hands-on session, you'll learn:

  • An overview of geocoding and examples of it
@mvexel
mvexel / overpass.geojson
Created May 5, 2016 21:21 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.