This file contains hidden or 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 python3.9 | |
# -*- coding: utf-8 -*- | |
import pandas | |
names = ["a", "a_ifopt", "b", "b_ifopt", "count"] | |
vorher = pandas.read_csv("dep_stats_vorher.csv", header=None, names=names, sep=";", encoding="utf-8", dtype=str) | |
nachher = pandas.read_csv("dep_stats_nachher.csv", header=None, names=names, sep=";", encoding="utf-8", dtype=str) |
This file contains hidden or 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
Original video: https://www.youtube.com/watch?v=8fpky0u3vVc (My original comment disappeared, new comment held for review, probably never to be published since they don't care) | |
Translation as YouTube subtitles: https://youtu.be/B8Bm4N_19gY | |
LN (older revision & modified by others): https://www.lyrical-nonsense.com/global/lyrics/pmaru-sama/chikyuu-daibakuhatsu/ | |
LT: https://lyricstranslate.com/en/tikiyuuda-bao-fa-planet-big-bang.html | |
Giddy-up supper sloppily, bye bye, boiling point of 10℃ | |
You can talk about PDCA, but it’s unsophisticated when going to the Savannah | |
It feels like the world is carelessly falling ill, applying downfall lightly is a no-no ♡ | |
But before that, the “I love you” to my crush… |
This file contains hidden or 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
Angaben original von http://wahlergebnisse.stadt-hagen.de/prod/KW2020/05914000/html5/OpenDataInfo.html | |
Parteifarben aktuell nicht mehr einfach auffindbar. | |
Datei ob-name.json basiert nicht auf der o. g. Seite. |
This file contains hidden or 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 requests | |
import twitter | |
#import sys | |
from datetime import datetime | |
import logging | |
import xml.etree.ElementTree as ET | |
logging.basicConfig(filename='efa.log',level=logging.INFO) | |
tweet_length = 280 | |
hashtags = "#VRR" |
This file contains hidden or 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
Datei: trip_vdt.din | |
Ausgangslage: | |
-> Dokumentation von Mentz ist (sowieso) nicht anwendbar | |
-> Primaerschlussel enthaelt angeblich NICHT die TRIP_ID, diese ist aber trotzdem als mandatory angegeben, und in der description steht wiederum etwas mit "nur" | |
-> Habe mich dazu entschieden, STR_LINE_VAR und LINE_DIR_NR nicht im PK aufzunehmen, dafuer aber TRIP_ID, die sowieso immer vorkommt. | |
-> LINE_NR und TRIP_ID zusammen sind eindeutig und machen die Angabe der STR_LINE_VAR und LINE_DIR_NR nicht mehr notwendig | |
-> Funktioniert so gut und eindeutig, anders (ohne TRIP_ID im PK) wuerde es erst recht nie funktionieren. | |
Problem: |
This file contains hidden or 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 xml.etree.ElementTree as ET | |
from csv import writer | |
from datetime import datetime, timezone | |
from sys import argv | |
def parsefile(filename: str): | |
root = ET.parse(filename).getroot() | |
#wkt = "LINESTRING M (" | |
wkt = "MULTILINESTRING M ((" | |
_xym = "" |
This file contains hidden or 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 python3.7 | |
# -*- coding: utf-8 -*- | |
from DINO import Version, Line, getlinetrips, readrestrictions, readallstops, printstops, csvstops | |
import pandas | |
from tqdm import tqdm | |
from collections import defaultdict | |
from datetime import timedelta | |
This file contains hidden or 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 -*- | |
from dataclasses import dataclass, field | |
from datetime import datetime, timezone | |
from enum import Enum | |
from requests import get | |
from typing import Set, List, Dict, Callable, Union, Optional, Any, Tuple, Iterable | |
import xml.etree.ElementTree as ET | |
@dataclass |
This file contains hidden or 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
POST | |
http://db-regio.hafas.de/bin/hci/mgate.exe | |
HTTP/1.1 | |
User-Agent | |
: Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4) | |
Content-Type | |
: application/json;charset=UTF-8 | |
Host | |
: db-regio.hafas.de | |
Connection |
This file contains hidden or 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
ifopt_haltestelle1 = "..." | |
ifopt_haltestelle2 = "..." | |
# siehe dm_depdata.py: | |
''' | |
Liste von nacheinander (im Falle von mehreren Fehlschlägen ※) abzuarbeitenden Funktionen | |
mit jeweils nacheinander (siehe ※) erstmal abzuarbeitenden Argumenten, | |
alles nacheinander durchlaufend, bis irgendwas erfolgreich ein Ergebnis liefert. |
NewerOlder