Skip to content

Instantly share code, notes, and snippets.

@ardangelo
ardangelo / beepy-hub.md
Last active January 20, 2024 04:19
Beepy Hub
  • Improved power management
  • Updatable firmware (2023-12-09)
    • Use pico-flashloader preload stage (2023-09-04)
    • Flash test image hardcoded into firmware (2023-12-03)
    • Implement I2C firmware update protocol (2023-12-08)
  • Shutdown / rewake command (2023-11-30)
  • Real time clock support
  • Sticky modifier keys
@ardangelo
ardangelo / sym-menu.tmux
Created June 7, 2023 23:57
Tmux symbol menu
tmux bind-key <key> run-shell ${CURRENT_DIR}/sym_menu.bash
# sym_menu.bash
#!/usr/bin/env bash
declare -r CURRENT_DIR=$(dirname $(readlink -f ${BASH_SOURCE[0]}))
tmux display-popup -w 32 -h 8 -E -b double -x C -y S \
${CURRENT_DIR}/display_sym_menu.bash
exit 0
#!/usr/bin/python3
import sys
key = 'API_KEY'
if len(sys.argv) > 1 and sys.argv[1] == 'cli':
zipcode = sys.argv[2]
else:
import cgi, cgitb, os, codecs
@ardangelo
ardangelo / m3_plot.cpp
Last active June 3, 2018 23:29
Kvasir GBA demo
#include <tonc.h>
#include <Register/Utility.hpp>
#include <Chip/Unknown/Nintendo/GBA.hpp>
#include <Register/Register.hpp>
using namespace Kvasir::Register;
/* RGB15-specific types */
enum class RGB15ComponentName : std::uint8_t {
import Text.ParserCombinators.Parsec
import Control.Monad
import System.IO (hFlush, hPutStr, hPutStrLn, hGetLine, stdin, stdout)
-- Parser
data Val = Op Char Val
| Atom Int
| Cell Val Val

Keybase proof

I hereby claim:

  • I am excelangue on github.
  • I am excel (https://keybase.io/excel) on keybase.
  • I have a public key whose fingerprint is 61CA 64F8 7D8A 9211 0021 24D5 3F58 0230 7F0B AC98

To claim this, I am signing this object:

// view from front of CABLE
// annotated with colors of crappy $1 ebay link cable
// T
// 1 3 5 1 3v, xxx 3 SI, wht 5 SC, red
// 2 4 6 2 SO, blk 4 SD, grn 6 GN, xxx
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#!/usr/bin/python
# arduino rpi
# 8 -> 13 (gpio 3)
# 9 (pwm) -> 33 (pwm1)
# 10 (pwm ss) -> 23 (gpio 14)
# 11 (pwm mosi) -> 19 (gpio 12)
# view from front of CABLE
# annotated with colors of crappy $1 ebay link cable
@ardangelo
ardangelo / scheme.py
Last active February 20, 2016 23:43
World's worst Scheme interpreter (for porting to 3DS SmileBASIC)
# https://gist.github.com/excelangue/f57822e37a9aa20f3168
# types
nil = 0
tnum = 1
tcons = 2
tsym = 3
tproc = 4
tfastcall = 5