Skip to content

Instantly share code, notes, and snippets.

View libewa's full-sized avatar

Linus libewa

View GitHub Profile
[{"title":"Ebene 1+2","heightMultiplier":1,"id":"164B78AB-1032-46B5-871B-BDB15DFA383A","root":{"stack":{"items":[{"visual":{"stack":{"direction":"horizontal","items":[{"id":"E149AA2E-6A99-46DD-8BF9-397CAB07BCDA","visual":{"key":{"actions":{"1":{"type":{"signal":"̌"}},"0":{"type":{"signal":"̂"}}},"keycap":"","keyRepeat":false}},"weight":1},{"visual":{"textStack":{"characters":"1234567890-","keyRepeat":false,"shiftCharacters":"°§ℓ»«$€„“”–"}},"id":"1A7339A8-740A-4671-8FF3-D760CD57A25F","weight":11},{"weight":1,"visual":{"key":{"keyRepeat":false,"keycap":"","actions":{"1":{"type":{"signal":"̧"}},"0":{"type":{"signal":"̀"}}}}},"id":"73F509E6-8D30-4908-93BA-7A19A177B80B"},{"weight":1,"visual":{"key":{"keycap":"","actions":{"0":{"delete":{"offset":-1}}},"keyRepeat":true}},"id":"088E50E1-C3AB-4E4C-9582-BCEF3D986D22"}]}},"weight":1,"id":"6D98D031-8478-482E-AC33-3FD1840F968D"},{"visual":{"stack":{"items":[{"id":"87BEF1F7-442C-436F-AD4C-C9738292A1C3","weight":1.25,"visual":{"key":{"keycap":"","actions":{"0":{"type":{"si
@libewa
libewa / aptpt.md
Last active December 15, 2024 17:54
The Advent Progress Tally Protocol (APT.Pt)

The Advent Progress Tally Protocol (APT.Pt)

Summary

The Advent Progress Tally Protocol (APT.Pt for short) defines a system to communicate the progress of the season of Advent in Christian churches asynchrounously.

Definitions

Requirements Notation

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [BCP 14] [[RFC2119]] [[RFC8174]] when, and only when, they appear in all capitals, as shown here.

; NOTE: This file is probably not readable by most chess apps/PGN viewers, because it contains illegal moves.
; If you get an error around the lines of "Illegal move: Nc6", your viewer does not allow you to view this game.
; If you are able to somehow view this game, PLEASE tell me what program you used.
[Event "?"]
[Date "2024.06.26"]
[White "Stockfish"]
[WhiteNA "https://stockfishchess.org"]
[WhiteType "program"]
[Black "ChatGPT"]
name: Swift CI
env:
EXE_NAME: cute-table
on:
push:
branches: [ "main" ]
workflow_dispatch:
@libewa
libewa / libewa.omp.json
Last active August 15, 2023 17:46
A theme for OhMyPosh (https://ohmyposh.dev)
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
@libewa
libewa / 7segment.py
Last active November 11, 2023 13:47
Control a seven-segment-one-digit-shared-kathode-display with the Raspberry Pi and gpiozero
from gpiozero import LED as led
ledA = led(38)
ledB = led(40)
ledC = led(29)
ledD = led(11)
ledE = led(7)
ledF = led(32)
ledG = led(22)
point = led(31)
@libewa
libewa / midi.rb
Created November 3, 2020 17:24
Sonic Pi code that plays notes given over MIDI, as seen in official tutorial 11.1
use_real_time
live_loop :midi_piano do
note, velocity = sync "/midi:nanokey2_keyboard:0:1/note_on"
synth :piano, note: note, amp: velocity / 127.0
end
@libewa
libewa / random.rb
Last active November 3, 2020 17:21
Sonic Pi code that plays notes randomly
# random.rb
use_synth :beep
loop :random do
play choose([:C, :D, :E, :F, :G, :A, :B, :C2])
sleep 0.5
end
@libewa
libewa / hello.html
Last active August 17, 2020 17:35
A Hello World file with a little bit JavaScript
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello World</title>
</head>
<body>
<h1>Infos</h1>
<form method="get">
<input type="textfield" name="name">