https://qri.cloud/mfdz/stuttgart_gelbekarten – needs login :(
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
# needs: Python 3.6, requests, tqdm | |
import asyncio | |
import csv | |
import requests | |
from concurrent.futures import ThreadPoolExecutor | |
from tqdm import tqdm | |
def get_token(): |
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
## Böblinger-Strasse | |
curl -X POST "http://www.eco-public.com/ParcPublic/CounterData?table=ecobdd.%60Z_100034894%60&idOrganisme=607&idPdc=100034894&fin=09%2F06%2F2017&debut=01%2F01%2F2017&interval=4&pratiques=101034894%3B102034894%3B103034894%3B104034894" | |
## König-Karls-Brücke | |
curl -X POST "http://www.eco-public.com/ParcPublic/CounterData?table=ecobdd.%60Z_100037170%60&idOrganisme=607&idPdc=100037170&fin=09%2F06%2F2017&debut=01%2F01%2F2017&interval=4&pratiques=" | |
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
# Python 3.6+ | |
import pynmea2 | |
import serial | |
s = serial.Serial("/dev/ttyAMA0", 9600, timeout=0.5) | |
line = "" | |
while True: | |
try: | |
line = s.readline().decode() | |
except UnicodeDecodeError: |
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
delete FROM "schemaorg_jsonthing" WHERE UPPER("schemaorg_jsonthing"."pure_data"::text) LIKE UPPER('%nan,%'); |
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
# -*- coding: utf-8 -*- | |
# | |
# frwd to other interested parties at the institute | |
# | |
import datetime, time, sys | |
leave_at = datetime.datetime(2012, 12, 13, 12, 00) | |
first = True | |
while True: | |
delta = leave_at - datetime.datetime.now() |
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
#!/bin/sh | |
# | |
# Take a photo of you, whenever you make a commit | |
# | |
# This is an improved version of Víctor Martínez original post: | |
# http://coderwall.com/p/xlatfq | |
# | |
# Improvements: | |
# * This is non-blocking (you dont have to wait for your image to be taken) |
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
# version for bash 2.03 | |
# no use of =~ and BASH_REMATCH allowed | |
function parse_git_branch { | |
if [[ `uname -s` == "SunOS" ]]; then | |
return 1 | |
fi | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then | |
git_status="$(git status 2> /dev/null)" | |
remote_pattern="# Your branch is " |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
AUTHOR = u'FIXME' | |
SITENAME = u'FIXME' | |
SITEURL = 'http://example.org' | |
TIMEZONE = 'Europe/Berlin' |
NewerOlder