Skip to content

Instantly share code, notes, and snippets.

@nicolaibach
nicolaibach / base.css
Last active July 22, 2024 07:36
opinionated CSS reset
/* Use the correct box model on all elements */
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}

Würfel Experiment

Wie hoch ist die Wahrscheinlichkeit bei einem Wurf mit 2 Würfeln eine gerade bzw. ungerade Gesamtzahl zu würfeln?
— PD02a Grundlagen der Mathematik | Folien zu Seminar 1

TL;DR

Bei einem Wurf mit 2 Würfeln (mit jeweils 6 Seiten) ist die Wahrscheinlichkeit eine gerade bzw. ungerade Gesamtzahl zu würfeln 50/50.

Test Ergebnisse

{
"compilerOptions": {
"module": "NodeNext",
},
}
{
"editorconfig": true
}
{
"env": [
"es2022",
"node"
],
"prettier": true,
"rules": {
"unicorn/no-array-callback-reference": 0,
"import/order": [
"warn",
@nicolaibach
nicolaibach / download.py
Created August 28, 2022 12:26 — forked from timhae/download.py
download decklist as pdf
#! /usr/bin/env nix-shell
#! nix-shell -i python -p python3 python3Packages.pillow
import os
import time
import json
from PIL import Image
from urllib import request, parse
@nicolaibach
nicolaibach / node.gitignore
Last active March 24, 2023 16:40
node.gitignore
node_modules
dist
.cache
@nicolaibach
nicolaibach / .editorconfig
Last active March 4, 2024 07:25
EditorConfig Template
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 2
max_line_length = 80