Skip to content

Instantly share code, notes, and snippets.

View joshinils's full-sized avatar
⚙️
I'm gonna write my own code, with blackjack and hookers

joshinils

⚙️
I'm gonna write my own code, with blackjack and hookers
  • Berlin
View GitHub Profile
#!/usr/bin/env python3
import logging
import functools
def logging_debug_pre_post(func):
@functools.wraps(func)
def logging_debug_pre_post_wrapper(*args, **kwargs):
func_name = f"{func.__class__.__name__}.{func.__name__}"
logging.debug(f" pre-{func_name}")
{
"signs": {
"DE:237": {
"tags": {
"highway": "cycleway",
"bicycle": "designated",
"access": "no",
"mofa": "yes|no"
},
"file": "Zeichen_237_-_Sonderweg_Radfahrer,_StVO_1992.svg"
#!/usr/bin/env bash
# https://spin.atomicobject.com/2017/08/24/start-stop-bash-background-process/
trap "exit" INT TERM ERR
trap "kill 0" EXIT
function run_echo_rand()
{
my_identifier=$(printf "% 2s" $1)
@joshinils
joshinils / gist:a5fa735b0bc11933bdac8ac08be19de9
Last active May 28, 2024 07:29
osm add deep history greasemonkey
// ==UserScript==
// @name Deep History osm.org
// @version 1
// @grant none
// @match https://www.openstreetmap.org/node/*
// @match https://www.openstreetmap.org/way/*
// @match https://www.openstreetmap.org/relation/*
// ==/UserScript==
var sidebar_content, newElement;
if (es != Acad::ErrorStatus::eOk)
{
acutPrintf(_T("\n gotten to line: %i"), __LINE__);
return;
}