Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar
The light inside has broken, but I still work

Arno Richter oelna

The light inside has broken, but I still work
View GitHub Profile
oelna / relics.txt
Created February 14, 2023 10:38
List of Relics in Slay the Spire
View relics.txt
Ancient Tea Set
Art of War
Bag of Marbles
Bag of Preparation
Bird-Faced Urn
Black Blood
Black Star
oelna / grid-demo.html
Created October 7, 2022 13:19
A very basic implementation of a six column grid in HTML and CSS
View grid-demo.html
<!DOCTYPE html>
<html lang="de">
<meta charset="utf-8" />
<title>Raster Tests</title>
html {
font: 24px/1.25 system-ui, sans-serif;
oelna /
Last active September 23, 2022 15:46
Collection of hash algorithms for frontend/Javascript development
oelna / shortcuts.js
Last active April 10, 2022 15:06
Quick $ and $$ wrappers for querySelector
View shortcuts.js
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
oelna / flexbox.css
Last active April 1, 2022 14:39
Rasterexperimente mit Flexbox und Grid, HTML-Kurs April 2022
View flexbox.css
html {
font: 125%/1.2 system-ui;
background-color: #999;
img {
max-width: 100%;
height: auto;
display: block;
oelna / cats.txt
Created January 21, 2022 11:08
View cats.txt
Ägyptische Mau
American Bobtail Shorthair
American Curl Shorthair
American Shorthair
American Wirehair
Arabische Mau
Australian Mist
oelna /
Last active June 12, 2020 12:05
A few custom Nightbot commands to use on Twitch

Nightbot custom commands

This is an incomplete list of Nightbot commands I use on my Twitch channel to facilitate the teaching of webdesign. Many commands only generate links to specific sites, but some also offer advanced functionality, such as RNG. You should probably adjust the code, if you'd like to use them.

Random Number

Command: !random
Description: Generate a random number between 1 and 100, or a specific interval
Usage: !random, !random 1 10 or !random 5 20

$(eval if ($(1) && $(2)) {
oelna / challenge.js
Created June 3, 2020 12:19
Calculate luck in Javascript, based on a RPG stat
View challenge.js
Calculate a RNG value with a percent chance to succeed,
based on a range and an stat input value somewhere between.
This is how the challenges in Sunless Sea work, for example.
- The lower bound defines a starting value required to get over 0%
- The upper bound defines the value at which you always succeed
- The stat value should between the two in order to produce a meaningful chance.
oelna /
Last active May 29, 2021 13:29
Merkblatt zur Kompression von Bildern, Videos und Audio-Daten

Merkblatt zur Dateikompression

Die Bitrate bestimmt die Qualität des Inhalts. Wird sie größer, steigen Qualität und Speicherbedarf an. Bilddimensionen, bzw. Länge des Musikstücks beeinflussen ebenfalls die Dateigröße: Höhere Auflösung bewirkt in der Regel größeren Platzbedarf.

Übersicht über Formate

Kompression Bild Video Audio
lossy JPG, PNG-8, WEBP, HEIC H.264, H.265, DivX, Xvid, 3GP, MJPEG MP3, AAC, OGG
oelna / highscore.html
Last active May 30, 2020 19:06
A very simple Javascript module to keep track of highscores in browser games. Uses localStorage to preserve entries.
View highscore.html
<!DOCTYPE html>
<title>Highscore Demo</title>
<script type="module">
import highscore from './highscore.js'
let points = new highscore('points', 14, 'desc'); /* keep up to 14 scores, under the storage name 'points', sorted in descending order */