Skip to content

Instantly share code, notes, and snippets.

View mosch's full-sized avatar
🍉
Yummi!

Moritz mosch

🍉
Yummi!
View GitHub Profile
@mosch
mosch / code.py
Created April 7, 2023 11:51 — forked from mschwld/code.py
from keybow_hardware.pim56x import PIM56X as Hardware
from keybow2040 import Keybow2040
import supervisor
import time
import usb_cdc
keybow = Keybow2040(Hardware())
keys = keybow.keys
uart = usb_cdc.serials[1]
@mosch
mosch / repository.ts
Created April 3, 2022 08:35
Cloudflare Typed Repository with Prefixa
class RepositoryNamespace<Entity = string, Metadata = {}> {
private readonly ns: string
private readonly kv: KVNamespace
constructor(kv: KVNamespace, namespace: string) {
this.ns = namespace
this.kv = kv
}
put(key: string, entity: Entity) {

Keybase proof

I hereby claim:

  • I am mosch on github.
  • I am mosch (https://keybase.io/mosch) on keybase.
  • I have a public key whose fingerprint is 6DDD 0155 3F01 A29C 0ED5 6A6D 4611 B83B 828A 0AE0

To claim this, I am signing this object: