Skip to content

Instantly share code, notes, and snippets.

@randomchars42
randomchars42 / bookii.sh
Last active July 18, 2024 19:08
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))
@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 / index.html
Last active July 25, 2024 21:48
Display a Navigation Menu When the User Scrolls Rapidly
<<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="color-scheme" content="dark light">
<title data-i18n-key="page_title">DEMO! Scroll Navigation</title>
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="icon.svg" />
<script type="module" src="js/scrollnav.js"></script>