Skip to content

Instantly share code, notes, and snippets.

View ImreSamu's full-sized avatar
🗺️

ImreSamu ImreSamu

🗺️
View GitHub Profile
@ImreSamu
ImreSamu / poi_address.geojson
Last active April 23, 2018 16:03
2018-04-21 poi_address.geojson from KAMI ( Hungarian POI -s for importing to OSM )
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ImreSamu
ImreSamu / main.go
Created January 7, 2018 17:08 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@ImreSamu
ImreSamu / ne_adm0name__wd_countrylabel__diff.md
Created September 6, 2017 12:05
ne_adm0name vs. wd_countrylabel diffs.
ne_adm0name wd_countrylabel count(*) as N
Aland Finland 1
American Samoa United States of America 1
Antarctica 29
Argentina Bolivia 1
Argentina Paraguay 1
Azerbaijan Armenia 1
Azerbaijan Republic of Artsakh#Azerbaijan 1
Bermuda United Kingdom 1
@ImreSamu
ImreSamu / NE_wikidata_proposals.md
Last active August 24, 2017 05:15
NE - wikidata proposals ( latest commit 3529fe5 , based on wikidata geosparql query )
id NAME ADM0NAME ADM1NAME LS_NAME QA status NE_wikidataid proposed wikidataid SPARQL status found wikidata found wikidata name distance
7 Medenine Tunisia MUdenine WQ50: New Candidate Q846653 9.643
12 Kasserine Tunisia Kasssrine WQ50: New Candidate Q852735 11.97
15 Mahdia Tunisia Mahdia WQ50: New Candidate Q466054 2.941
39 Gracias Honduras Lempira WQ50: New Candidate Q2561339 0.005
58 Artvin Turkey Artvin WQ50: New Candidate Q193445 0.149
83 Sironko Uganda Budadiri WQ50: New Candidate [Q2252605](https:
@ImreSamu
ImreSamu / natural_earth_diff.md
Last active August 23, 2017 00:46
NaturalEarth wikidataId - SparQL query differences ( BETA VERSION, need more check , `id` column is wrong ) . ( Data generated via WIKIDATA SPARQL , id - is an inner ID, ) Last commit https://github.com/nvkelso/natural-earth-vector/commit/5fa8401e16cf7e98615e74ec5f57570adfb095f0
id name ADM0NAME QA status NE_wikidataid proposed wikidataid SPARQL status found wikidata found wikidata name distance
4 Florida Uruguay WD04: Difference Q812 Q842472
84 Busia Uganda WD04: Difference Q1240823 Q1111957
96 Kibuye Rwanda WD04: Difference Q22218005 Q617032
233 Fribourg Switzerland WD04: Difference Q3067114 Q36378
289 Sabaneta Dominican Republic WD04: Difference Q2049091 Q2021983
53
@ImreSamu
ImreSamu / natural_earth_diff.md
Created August 23, 2017 00:35
NaturalEarth wikidataId - SparQL query differences. ( Data generated via WIKIDATA SPARQL )
id name ADM0NAME QA status NE_wikidataid proposed wikidataid SPARQL status found wikidata found wikidata name distance
4 Florida Uruguay WD04: Difference Q812 Q842472
84 Busia Uganda WD04: Difference Q1240823 Q1111957
96 Kibuye Rwanda WD04: Difference Q22218005 Q617032
233 Fribourg Switzerland WD04: Difference Q3067114 Q36378
289 Sabaneta Dominican Republic WD04: Difference Q2049091 Q2021983
53
@ImreSamu
ImreSamu / new_highway.id
Created June 14, 2017 11:17
simple: OSM history file + Osmium + OverpassQuery example
n4699265780
n4699285506
n4745206236
n4745227207
n4745227208
n4745227209
n4745227210
n4757590350
n4757590351
n4757594972
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
readonly IMPOSM_CACHE_DIR=${IMPOSM_CACHE_DIR:-/data/cache}
readonly OSM_DB=${OSM_DB:-osm}
readonly OSM_USER=${OSM_USER:-osm}