Skip to content

Instantly share code, notes, and snippets.

View mvexel's full-sized avatar

Martijn van Exel mvexel

View GitHub Profile

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

The current OpenStreetMap logo works well at large sizes and in full color, but loses clarity and definition when grayscaled or used at small sizes. There should be an alternative logo available for those circumstances - one that simplifies the OSM logo down to it's essentials for clarity and adaptability. Here's our solution:

Process: WebProcess [1658]
Path: /System/Library/PrivateFrameworks/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Identifier: com.apple.WebProcess
Version: 8536 (8536.28.10)
Build Info: WebKit2-7536028010000000~1
Code Type: X86-64 (Native)
Parent Process: ??? [867]
User ID: 469667667
Date/Time: 2013-04-02 17:17:13.740 -0600
Process: WebProcess [14307]
Path: /System/Library/StagedFrameworks/Safari/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Identifier: com.apple.WebProcess
Version: 8536 (8536.26.17)
Build Info: WebKit2-7536026017000000~1
Code Type: X86-64 (Native)
Parent Process: ??? [1]
User ID: 469667667
Date/Time: 2013-04-02 11:35:48.338 -0600
@mvexel
mvexel / gist:5268045
Created March 29, 2013 00:59
SLC Hack Night OSM Links
http://www.openstreetmap.org/
http://tools.geofabrik.de/mc/
http://maps.stamen.com/#watercolor/12/37.8210/-122.4115
http://www.openstreetmap.us/
https://foursquare.com/
http://www.usatoday.com/weather/
http://map.project-osrm.org/
http://switch2osm.org/using-tiles/getting-started-with-leaflet/
http://www.meetup.com/wasatchwizardsofosm/
@mvexel
mvexel / WELCOME.md
Last active December 14, 2015 15:39 — forked from tmcw/WELCOME.md

Welcome to OpenStreetMap, the world's open-source map.

You've just joined a community of over one million contributors who are creating a free, worldwide map. Welcome!

To introduce you to OpenStreetMap, we have compiled a guide with lots of information about mapping and the OpenStreetMap community. We hope you find this useful!

If you have questions that our guide does not cover, help is always close at hand on our Q&A web site.

Happy mapping!


@mvexel
mvexel / WELCOME.md
Created March 7, 2013 16:01 — forked from tmcw/WELCOME.md

Welcome to OpenStreetMap You have just joined an international volunteer organization whose goal is nothing less than a rich, detail map of the whole world that is open-source. What does that mean? It means that this is a map whose data is available to everyone for free. OpenStreetMap is an important effort that will have impact around the globe. Millions who never have had access to geographical information now will have access to

@mvexel
mvexel / gist:4355365
Created December 21, 2012 19:59
test learnosm to md
![image](data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAbrwAAG68BXhqRHAAAAAd0SU1FB9sFFhAQAF9bcF4AACAASURBVHjatL15kG3ZVeb3W3vvM9whp/fyDTXPr+aSqlSDJCQ0CyRwC2iBJNqYhibAYGNoBw43YbojsN3dduAIsKE7jA1uYwculTCIQSOaWkNJqlEqqWaVVHO9Mee8955h7738xz7nZj5VISRVO19lvFeZ+e4956y91vrWt761ngDct3YHrzr4Hu478wFR4ZAoyypEUVVVCYq2gnoVaUErqWR68/nv4ds/7jn1focASrjl8HuV/x8/Ht38JFacBI3WK3rdyptD/71PPPun12/XG0uVTE8tLC3Ntk+t188/8M3qULk8/fkf/5/8t7/WP//Af2IuvvwyOxgNwrAYxB+7+FcBuPP4/80PnPMz/8Gu+bOP/iVHjiwAYkVErlx+01nX8ujGZw4ANyH8vChXKvrzV628+YGX854CcO/aHdx8MBnsvjN3/JqK/A+CtqjUqjpT2BLRbUU2QJ8X5SlFngZ9UlROKrpxy+H3bpxt7NudqkRVjbcdfR93H38/WOXWw+97GUb9FIIxIggIx5beODfqF0/ens28XITKu8SYX95tti/ZnJ7e9W1zMjThePTxeDEun8yL7EFV/abNs7WFxfHWOw/8x+siw/mDjtVX5QtrD9jC5QFFbzv6Pu46eTu3Hfn+rltVuevJP5cYoywsLpnzl9/uV3KZf/+xzU8dUJXLQd4swrtU5XqEkagC/JdXrrzpdwEe2fgEV6+87fsz8H1nPgBgXrX6U/HetQ/8gKj+NcgBVVAUUEQAFRBQIF2AeFV9SpH7Ef2yqN6D8OQth973/NzQp98vMagxz0zCLbf+QjpEd/wer3rPr/+9F/fY5mdAEEAEMWOO+nOXrpp//yf
@mvexel
mvexel / gist:3703142
Created September 12, 2012 00:03
10 shortest osm ways in Utah
id | len
-----------+-------------------
10086055 | 0.31805243453502
10163052 | 0.779236434027553
148346396 | 0.796935186703433
150809275 | 0.984805582524682
135488964 | 0.994712842046126
10242974 | 1.105460030193
10113886 | 1.12411794159561
159095055 | 1.15479053716816
@mvexel
mvexel / gist:3641217
Created September 5, 2012 17:53
valgrind shp2pgsql
mvexel@lima$ valgrind /usr/lib/postgresql/9.1/bin/shp2pgsql -c -D -I -i -s 4326 /osm/externaldata/census/tl_2012_us_states_dissolved.shp tl_2012_us_states_dissolved usboundary > /osm/tmp/us.sql
==5501== Memcheck, a memory error detector
==5501== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==5501== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==5501== Command: /usr/lib/postgresql/9.1/bin/shp2pgsql -c -D -I -i -s 4326 /osm/externaldata/census/tl_2012_us_states_dissolved.shp tl_2012_us_states_dissolved usboundary
==5501==
Shapefile type: Polygon
Postgis type: MULTIPOLYGON[2]
==5501==
==5501== HEAP SUMMARY: