Skip to content

Instantly share code, notes, and snippets.

View ImreSamu's full-sized avatar

ImreSamu ImreSamu

View GitHub Profile
@ImreSamu
ImreSamu / wof-lau-compare2018.md
Last active September 19, 2018 13:38
Compare whosonfirst-data and EU LAU data ( "eu_lau_n" last column )
wof country country macroregion region macrocounty county localadmin locality eu_lau_n
"AL" 1 0 12 0 61 4 150 57
"AT" 1 0 9 0 98 2103 2427 2098
"BA" 1 0 12 0 142 0 300 143
"BE" 1 2 11 0 42 1306 2866 589
"BG" 1 0 29 0 0 0 1055 265
"CH" 1 0 26 0 141 2804 7110 2240
"CY" 1 0 6 0 0 0 661 615
"CZ" 1 0 14 0 0 811 6326 6258
@ImreSamu
ImreSamu / test.c
Created September 8, 2018 10:24
julia - test.c
#include <julia.h>
JULIA_DEFINE_FAST_TLS() // only define this once, in an executable (not in a shared library) if you want fast code.
int main(int argc, char *argv[])
{
/* required: setup the Julia context */
jl_init();
/* run Julia commands */
jl_eval_string("print(sqrt(2.0))");
@ImreSamu
ImreSamu / Dockerfile
Created September 2, 2018 15:46
fresh libosmium_log.txt ( ubuntu 18.04 )
FROM ubuntu:18.04
RUN date
RUN apt-get update \
&& apt-get install -q -y \
cmake \
doxygen \
g++ \
git \
graphviz \
libboost-dev \
@ImreSamu
ImreSamu / budapest_poly.osc
Created July 22, 2018 20:25
osmium extract - example for debugging.
<?xml version='1.0' encoding='UTF-8'?>
<osmChange version="0.6" generator="osmium/1.8.0">
<delete>
<node id="277285" version="9" timestamp="2011-09-11T22:56:15Z"/>
<node id="277286" version="7" timestamp="2011-09-11T22:56:15Z"/>
<node id="277290" version="3" timestamp="2011-01-16T21:20:27Z"/>
<node id="26733986" version="11" timestamp="2014-12-12T16:15:25Z"/>
<node id="26733991" version="10" timestamp="2014-12-12T16:15:25Z"/>
<node id="26883617" version="8" timestamp="2016-08-17T09:28:03Z"/>
<node id="26884330" version="4" timestamp="2015-02-22T15:04:42Z"/>
@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 )
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.
@ImreSamu
ImreSamu / main.go
Created January 7, 2018 17:08 — forked from 3n21c0/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: