Skip to content

Instantly share code, notes, and snippets.

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
oelna / relics.txt
Created February 14, 2023 10:38
List of Relics in Slay the Spire
View relics.txt
Akabeko
Anchor
Ancient Tea Set
Art of War
Astrolabe
Bag of Marbles
Bag of Preparation
Bird-Faced Urn
Black Blood
Black Star
@oelna
oelna / polychromie-architecturale.json
Created April 11, 2017 14:07
Le Corbusier's "Polychromie Architecturale" – all 63 colors as hex values, with their original name, ID and lightness coefficient (HBW) in a neat JSON array
View polychromie-architecturale.json
[
{
"hex":"fff1ce",
"name":"blanc",
"hbw":72,
"id":"32001",
"collection":1931
},{
"hex":"585d5e",
"name":"gris foncé 31",
@oelna
oelna / convert.php
Last active November 15, 2022 09:14
A small utility webapp that converts between various string encodings and cleans up text http://convert.arnorichter.de (Note: this is now https://github.com/oelna/convert)
View convert.php
<?php
//check for PHP version requirements
if(version_compare(phpversion(), '5.3.0', '<')) die('This requires at least PHP 5.3 to run.');
date_default_timezone_set('Europe/Berlin');
$conversions = array(
array(
'text' => 'UTF-8 Decode',
'function' => function($input) {
return utf8_decode($input);
@oelna
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">
<head>
<meta charset="utf-8" />
<title>Raster Tests</title>
<style>
html {
font: 24px/1.25 system-ui, sans-serif;
}
@oelna
oelna / hash.md
Last active September 23, 2022 15:46
Collection of hash algorithms for frontend/Javascript development
@oelna
oelna / applescript.scpt
Created June 21, 2018 14:32
macOS Automator Action to calculate file hashes
View applescript.scpt
on run {input, parameters}
with timeout of 360 seconds
tell application "System Events"
activate
display dialog input buttons {"OK"} default button 1 with title "File Hashes" giving up after 300 --seconds
end tell
end timeout
end run
@oelna
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
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
oelna / cats.txt
Created January 21, 2022 11:08
Katzenrassen
View cats.txt
Abessinier
Ägyptische Mau
American Bobtail Shorthair
American Curl Shorthair
American Shorthair
American Wirehair
Anatoli
Arabische Mau
Asian
Australian Mist
@oelna
oelna / file-compression.md
Last active May 29, 2021 13:29
Merkblatt zur Kompression von Bildern, Videos und Audio-Daten
View file-compression.md

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
lossless PNG-24 DV-PAL, PNG FLAC, APE, ALAC, AIFF, WAV