Skip to content

Instantly share code, notes, and snippets.

View mvexel's full-sized avatar

Martijn van Exel mvexel

View GitHub Profile
@mvexel
mvexel / telenav-team.json
Created December 5, 2018 16:07
telenav-team.json
{
"company": "Telenav",
"osm_wiki": "https://wiki.openstreetmap.org/wiki/Telenav",
"team": [
{
"from": null,
"name": "Gabriela Sinka",
"osm_username": " gabis_telenav",
"to": null
},
@mvexel
mvexel / uta_stops_2018.geojson
Created November 17, 2018 21:56
uta bus stops
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mvexel
mvexel / testmr.geojson
Last active November 16, 2018 22:47
testmr.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mvexel
mvexel / maproulette-310-releasenotes.md
Last active November 12, 2018 22:51
maproulette-310-releasenotes.md

MapRoulette 3.10 Release Notes

MapRoulette 3.10 is now available on maproulette.org. Here's what's new!

For Mappers

We made changes to the map layer selection. You can select more and more relevant background map layers in MapRoulette. The available layers are retrieved from the OSM Editor Layer Index. For aerial imagery layers, you can also select the Mapbox road overlay.

@mvexel
mvexel / gist:0670afeab32bbff7f319eef0f0b77c42
Last active September 18, 2018 17:29
python3-homebrew-install-fail.txt
$ brew install python
Warning: Building python from source:
The bottle needs the Apple Command Line Tools to be installed.
You can install them, if desired, with:
xcode-select --install
==> Downloading https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
Already downloaded: /Users/martijnv/Library/Caches/Homebrew/downloads/f87e3a4f88925ead242c820be2fef7aa64d70507a5c4f8e544e666263a881f41--Python-3.7.0.tar.xz
==> ./configure --prefix=/usr/local/Cellar/python/3.7.0 --enable-ipv6 --dataroot
==> make
$ pip install osmium
Collecting osmium
Using cached https://files.pythonhosted.org/packages/f1/74/4b06a023c19006133309bfbc5460bede50f451089c01ca7fa9caa1d06bf4/osmium-2.14.3.tar.gz
Building wheels for collected packages: osmium
Running setup.py bdist_wheel for osmium ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/3g/z8ymv2x55sn1xfjdyvd3bsywdzx3tl/T/pip-install-dkeu62ne/osmium/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/3g/z8ymv2x55sn1xfjdyvd3bsywdzx3tl/T/pip-wheel-965bzp95 --python-tag cp37:
libosmium found in 'libosmium-2.14.2'.
protozero found in 'protozero-1.6.3'.
running bdist_wheel
running build
@mvexel
mvexel / pip-install-osmium.txt
Created August 20, 2018 21:47
pip-install-osmium
pip
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mvexel
mvexel / get_users_in_area.py
Created April 6, 2018 19:00
Get unique OSM contributors for a named area
#!/usr/bin/env python3
import overpass
area_name = "Kanab"
query = """area[name="{}"]->.slc;(node(area.slc);<;);""".format(area_name)
users = {"ids": [], "usernames": []}
api = overpass.API(debug=False)
@mvexel
mvexel / StringSearch.java
Last active November 18, 2017 23:46
StringSearch
public class StringSearch {
public static void main(String[] args) {
// Initialize a new String
String myString = "Thanksgiving Day";
System.out.println("Our string is: " + myString);
// Now, get the 3rd letter in this string.
// Remember that indexes are zero based,
// so the third character has index 2, not 3.