Skip to content

Instantly share code, notes, and snippets.

View oschettler's full-sized avatar

Olav Schettler oschettler

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<article>
<details><summary>Click to expand first paragraph</summary>
The geese were having a great relaxed time and had no major answers they wished to know the questions to. “Zaphod Beeblebrox,” said Hillman, as though the name itself were a curse, which on several planets it had indeed become. Odin could be enjoying a nice horn of honey meade and your call might make him drop it, then holy Zark it’s Ragnarok. “I suddenly feel as though I should be running away.” Thor was astute enough to see the media downside of hammering through a defenseless woman to kill a broken man.</details>
@oschettler
oschettler / reg.php
Last active January 24, 2023 20:42
A small form handler
<?php
$dir = "/var/www/lena/reg";
$pattern = '/(\d{4}\d{2}\d{2}_\d{2}\d{2}\d{2})/';
if (isset($_GET['list'])) {
echo "<h1>Liste</h1><ul>";
foreach (glob("{$dir}/*.txt") as $f) {
if (preg_match($pattern, $f, $m)) {
$d = $m[1];
echo "<li><a href=\"?r={$d}\">{$d}</a></li>\n";
appID("Der Elfenring")
first_zuhause = true
first_strand = true
ring_taken = false
windspiel = false
tageszeit = 1
zeiten = {
'Morgen',
'Vormittag',
@oschettler
oschettler / katze.ubp
Last active November 21, 2020 13:23
Ein Katzenspielzeug mit Calliope Mini und Microblocks - https://twitter.com/codekulturbonn/status/1330139599188930561
module main
author unknown
version 1 0
description ''
variables x x2 led blip
spec ' ' 'blink' 'blink'
to blink {
led = (random 1 3)
@oschettler
oschettler / README.md
Created November 8, 2020 19:06
SCRIPT-8
@oschettler
oschettler / README.md
Last active October 27, 2020 16:20
SCRIPT-8
@oschettler
oschettler / README.md
Created October 27, 2020 16:12
SCRIPT-8
@oschettler
oschettler / README.md
Created October 27, 2020 16:07
SCRIPT-8
module main
author unknown
version 1 0
description ''
script 496 60 {
whenButtonPressed 'B'
'[display:mbDisplay]' 18284864
'[radio:sendString]' 'traurig'
waitMillis 500
#!env python3
import time
import CHIP_IO.GPIO as GPIO
import CHIP_IO.LRADC as ADC
pin = 'XIO-P0'
#pin = 'U14_13'
#pin = 'CSID0'
#GPIO.toggle_debug()