Skip to content

Instantly share code, notes, and snippets.

View ImreSamu's full-sized avatar

ImreSamu ImreSamu

View GitHub Profile
@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 / 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 / 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

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 / 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"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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.
@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 / 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 / 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))");