This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "open3" | |
require 'logger' | |
# https://ruby-doc.org/stdlib-2.6.5/libdoc/logger/rdoc/Logger.html | |
# how should I use it, without recreating and without passsing around? | |
$logger = nil | |
$error_logger = nil | |
$fatal_logger = nil | |
def initilize_loggers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
beeminder_client.py ~ Python wrapper for Beeminder API requests (goal datapoints ONLY) | |
Usage: | |
from beeminder_client import BeeminderClient | |
beeminder = BeeminderClient() | |
timestamp = get_epoch_time_in_seconds() | |
params = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request, urllib.error, urllib.parse | |
import time | |
def download_overpass_query(query, filepath): | |
query = urllib.parse.quote(query) | |
url = "http://overpass-api.de/api/interpreter?data=" + query | |
with open(filepath, 'w') as file: | |
downloaded = overpass_download(url) | |
print(downloaded) | |
file.write(downloaded) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initial analysis of situation requested at | |
https://wiki.openstreetmap.org/wiki/Talk:Key:aerodrome:type | |
better.log contains all objects with aerodrome:type tag | |
where geozeisig removed aerodrome tag, up to 2018-05-28 | |
output.log lists cases of aerodrome tags existing at | |
2018-01-01T04:55:00 and removed up to around 2018-05-28 | |
by geozeisig | |
Note that for example cases of aerodrome tags added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["cycleway:both", "cycleway", "cycleway:left", "cycleway:right"] in Vermont (US-VT) | |
{"no"=>33, "shared_lane"=>4, "lane"=>38, "track"=>19, "opposite_lane"=>1, "yes"=>1} | |
["cycleway:both", "cycleway", "cycleway:left", "cycleway:right"] in Massachusetts (US-MA) | |
{"no"=>322, "shared_lane"=>384, "lane"=>1124, "shared"=>10, "opposite_lane"=>11, "share_busway"=>48, "track"=>359, "proposed"=>1, "construction"=>11, "opposite"=>7, "crossing"=>1, "buffered_lane"=>8, "laneh"=>1} | |
["cycleway:both", "cycleway", "cycleway:left", "cycleway:right"] in New York (US-NY) | |
{"no"=>552, "asl"=>11, "shared_lane"=>1196, "crossing"=>15, "track"=>517, "lane"=>2617, "designated"=>1, "shoulder"=>2, "shared"=>29, "opposite_lane"=>12, "opposite"=>5, "proposed"=>9, "shared_lane;lane"=>1, "yes"=>1, "lane;opposite_track"=>1, "opposite_track"=>1} | |
["cycleway:both", "cycleway", "cycleway:left", "cycleway:right"] in Maine (US-ME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
whitelist: | |
Slovakia (SK), Austria (AT), Hungary (HU), Poland (PL), Denmark (DK), Germany (DE), Czechia (CZ), Switzerland (CH), Belgium (BE), Sweden (SE), Albania (AL), Macedonia (MK), Finland (FI), Belarus (BY), Brazil (BR), Russia (RU), Ukraine (UA), United Kingdom (GB), Ireland (IE), Lithuania (LT), Australia (AU), South Africa (ZA), Ecuador (EC), Mexico (MX), Colombia (CO), United States of America (US), Chile (CL), Turkey (TR), Bulgaria (BG), Greece (GR), Burkina Faso (BF), Croatia (HR), Slovenia (SI), China (CN), Argentina (AR), Uruguay (UY), Peru (PE), Portugal (PT), Iceland (IS), India (IN), Indonesia (ID), South Korea (KR), Italy (IT), Japan (JP), Philippines (PH), Taiwan (TW), Singapore (SG), New Zealand (NZ), Liechtenstein (LI), Spain (ES), Canada (CA), Israel (IL), Thailand (TH), Malaysia (MY), Luxembourg (LU), France (FR), The Netherlands (NL), Bosnia and Herzegovina (BA), Norway (NO), | |
blacklist: | |
Georgia (GE), Romania (RO), Venezuela (VE), Brunei (BN), | |
["cycleway:both", "cycleway", "cycleway:l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Poland (PL), Germany (DE), Switzerland (CH), Russia (RU), United Kingdom (GB), Ireland (IE), Australia (AU), United States of America (US), Argentina (AR), Italy (IT), Japan (JP), Spain (ES), France (FR), The Netherlands (NL), Spain (ES), | |
Brazil (BR), Portugal (PT), | |
-------- | |
Slovakia (SK) | |
tactile_paving on [highway=bus_stop] | |
yes: 8% | |
{"no"=>759, "yes"=>75, "incorrect"=>1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Slovakia (SK), Austria (AT), Hungary (HU), Poland (PL), Germany (DE), Czechia (CZ), Switzerland (CH), Belgium (BE), Sweden (SE), Brazil (BR), Russia (RU), United Kingdom (GB), Ireland (IE), Lithuania (LT), Australia (AU), United States of America (US), Argentina (AR), Italy (IT), Singapore (SG), New Zealand (NZ), Spain (ES), France (FR), The Netherlands (NL), Spain (ES), | |
Albania (AL), Ukraine (UA), Portugal (PT), | |
-------- | |
Slovakia (SK) | |
tactile_paving on [highway=crossing] | |
yes: 43% | |
{"semi"=>7, "no"=>804, "yes"=>625, "partial"=>1, "incorrect"=>10} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From fd5b6a7152d326e0b01d8f6b5ca29be904c92752 Mon Sep 17 00:00:00 2001 | |
From: Mateusz Konieczny <matkoniecz@gmail.com> | |
Date: Sat, 22 Apr 2017 06:58:58 +0200 | |
Subject: [PATCH] PIL is dead, recommend pillow directly | |
--- | |
README.md | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/README.md b/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>test</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> | |
<style> | |
body { |