Skip to content

Instantly share code, notes, and snippets.

@maxammann
maxammann / keytest.py
Created October 21, 2023 14:57 — forked from xobs/keytest.py
Fomu keyboard test
import time
import microcontroller
import digitalio
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.keycode import Keycode
# A simple neat keyboard demo in CircuitPython
curl "https://raw.githubusercontent.com/zerforschung/schnelltesttest.de/main/src/data/all.json" | \
jq '.tests | to_entries | map(.value)
| sort_by(.sensitivity_total)[]
| select(.omicron_bridging)
| "\(.manufacturer) \(.test_name) (Sensitivity: \(.sensitivity_total))"'
@maxammann
maxammann / index.html
Created January 6, 2022 14:09
Generate QR-codes and embed them in PDFs
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.0/jspdf.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@zxing/library@0.18.6/umd/index.min.js"></script>
</head>
</html>
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
Future<void> a = test();
Future<void> b = test1();
}
void test() async {
@maxammann
maxammann / globalmaptiles.py
Created December 1, 2021 18:22 — forked from maptiler/globalmaptiles.py
globalmaptiles.py
#!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple HTML viewers based on Google Maps and OpenLayers
# Author: Klokan Petr Pridal, klokan at klokan dot cz
# Web: http://www.klokan.cz/projects/gdal2tiles/
{
"spellright.language": ["en_US"],
"spellright.documentTypes": ["markdown", "latex", "plaintext"],
"latex-workshop.latex.outDir": "%DIR%/build",
"latex-workshop.view.pdf.viewer": "tab",
"workbench.colorTheme": "GitHub Light",
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 90,
"editor.wrappingIndent": "indent",
"editor.defaultFormatter": "esbenp.prettier-vscode",
@maxammann
maxammann / .env
Last active January 29, 2021 00:06
README.md
DEBUG_MODE=false
JITSI_URL=<fill_me>
# If your Jitsi environment has authentication set up, you MUST set JITSI_PRIVATE_MODE to "true" and you MUST pass a SECRET_JITSI_KEY to generate the JWT secret
JITSI_PRIVATE_MODE=false
JITSI_ISS=
SECRET_JITSI_KEY=
ADMIN_API_TOKEN=<secret>
@maxammann
maxammann / .env
Created January 8, 2021 16:30
Run Parabol self hosted
GOOGLE_OAUTH_CLIENT_ID='...'
GOOGLE_OAUTH_CLIENT_SECRET='...'
CDN_BASE_URL='https://retro:9443/'
SERVER_SECRET='...'
GRAPHQL_HOST='localhost:3000'
GRAPHQL_PROTOCOL='http'
HOST='retro'
INVITATION_SHORTLINK='retro/invitation-link'
# MAIL GLOBALS. PROVIDER: mailgun | google
MAIL_PROVIDER='google'
# Maintainer: Ammann Max <maximilian.ammann@googlemail.com>
pkgname=golden-cheetah-git
pkgver=v3.5.DEV1705X.r70.ac18d98a
pkgrel=1
pkgdesc="Cycling Power Analysis Software. We believe that cyclists and triathletes should be able to download their power data to the
computer of their choice, analyze it in whatever way they see fit, and share their methods of
analysis with others."
arch=('i686' 'x86_64')
url="http://www.goldencheetah.org/"
license=('GPL')