Skip to content

Instantly share code, notes, and snippets.

View LBBO's full-sized avatar

Michael David Kuckuk LBBO

View GitHub Profile
@LBBO
LBBO / README.md
Created June 1, 2023 10:16
OCaml BST visualization

Hilfe zum Debuggen von BSTs

Damit ihr besser versteht, was euer Code tut, könnt ihr hiermit verschiedene BSTs visualisieren.

Dazu habt ihr unten Code, der einen BST nimmt und ihn in einer Textdarstellung zur Konsole ausgibt. Die könnt ihr dann kopieren und in diesem Online-Tool einfügen, um den Baum graphisch dargestellt zu bekommen.

Um den Code nutzen zu können, müsst ihr ihn in die assignment.ml Datei kopieren und entweder die assignment.mli Datei löschen oder sie mit dem Code ganz unten ergänzen. Dann könnt ihr in utop einfach z.B.

@LBBO
LBBO / README.md
Last active March 6, 2021 22:21
Bookmarklet to change the speed of any type of media such as voice messages in WhatsApp Web, videos on some web site, ...

How to use this bookmarklet

A bookmarklet is JavaScript code that has been "transformed" into a URL. You can set up a bookmark with the code as its URL and opening the bookmark will then execute the code.

To quickly create the Bookmark, just right-click the bookmarks bar and add a new one. Choose a name and then copy and paste the code from bookmarklet_URL.txt into the location of your new bookmark.

@LBBO
LBBO / brainfuckify.test.ts
Last active July 31, 2022 08:44
Converts any JavaScript input into valid, executable JavaScript that only consists of '(', ')', '[', ']',, '!', and '+'. This is an update of some code I wrote in 2019(ish) that broke over time due to relying on certain `window` or `global` properties. Now, it relies only on standard JS features and is even covered by jest unit tests.
import {
allowedChars,
Alphabet,
brainfuckify,
constants,
encodeNumber,
getFinalAlphabet,
interpret,
joinArrays,
encodeString,