Skip to content

Instantly share code, notes, and snippets.

View katoba86's full-sized avatar
๐Ÿ˜€

Kai Willam katoba86

๐Ÿ˜€
View GitHub Profile
@SgtPooki
SgtPooki / vanilla-observable.ts
Created December 16, 2021 18:55
Typescript version of a simple Observable. This was copied from https://stackoverflow.com/a/62002044/592760, translated to TypeScript, and improved.
/**
* Modified by Russell Dempsey on 2021 DEC 15
* @see https://stackoverflow.com/a/62002044/592760
*/
type Subscriber<T> = (value: T) => void;
class Observable<T> {
private subscribers = new Set<Subscriber<T>>();
constructor(private value: T) {}
@derhuerst
derhuerst / config.txt
Created March 3, 2020 01:21
VBN HAFAS Android app config
DATA_VERSION=4
BASE_QUERY=fahrplaner.vbn.de/bin
BASE_HAITI=
BASE_GISHOST=
GETPARAMS=ld,checksum,mic,mac
SEARCH_METHOD=ONLINE
GLOBAL_OFFLINE_SWITCH=0
USE_OFFLINE_DATA=0
USE_OFFLINE_STATIONS_ONLY=0
KERNEL_PRODUCT_FORMAT=0