Skip to content

Instantly share code, notes, and snippets.

@randomchars42
randomchars42 / eventemitter.ts
Last active February 2, 2021 22:28
TypeScript: A fully typed EventEmitter that can emit multiple events in a type-safe way.
// built upon
// https://codereview.stackexchange.com/a/215317/236617
// https://basarat.gitbook.io/typescript/main-1/typed-event
// https://stackoverflow.com/a/66003746/14979776
interface Disposable {
dispose(): void;
}
// used to check if parameters for .emit() are valid parameters for the event
@randomchars42
randomchars42 / bookii.sh
Last active April 3, 2023 20:27
Dateimanager und SoftwareUpdater für BookII von Tessloff unter (Ubuntu) Linux mit WINE
#!/bin/bash
path_working_dir="$HOME"
prefix="bookii"
# in diesem Verzeicnis soll die neue Bottle (=Prefix) entstehen
path_bottles="$path_working_dir/Bottles"
# in diesen Verzeichnissen liegen die benötigten Dateien
# - winetricks.sh (wird heruntergelade
# - BOOKiiSoftwareInstaller.exe (https://www.bookii.de/site/uploads/2019/03/BOOKiiSoftwareInstaller.zip)
# - BOOKii.exe (auf dem Stift oder [hier](blog.pixelwoelkchen.de/assets/Bookii.zip))