Skip to content

Instantly share code, notes, and snippets.

View mvexel's full-sized avatar

Martijn van Exel mvexel

View GitHub Profile
@mvexel
mvexel / defaults.json
Created February 17, 2014 23:11
My JSBeautify settings
{
"indent_size": 4,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"jslint_happy": true,
"brace_style": "collapse",
"keep_array_indentation": false,
{ "type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
"properties": {"prop0": "value0"}
},
{ "type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
@mvexel
mvexel / 0_reuse_code.js
Created October 22, 2013 13:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mvexel
mvexel / index.html
Created August 7, 2013 17:41
via:geojson.io
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
.marker-properties {
border-collapse:collapse;

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!