Skip to content

Instantly share code, notes, and snippets.

View rvodden's full-sized avatar

Richard Vodden rvodden

View GitHub Profile
from dataclasses import dataclass
from enum import Enum, auto
class Proficiency(Enum):
HEAVY_ARMOR = auto()
MEDIUM_ARMOR = auto()
LIGHT_ARMOR = auto()
SIMPLE_WEAPONS = auto()
SHIELD = auto()
@rvodden
rvodden / log.txt
Created May 17, 2025 10:40
BLE log output
Starting Jem's Disco!
DMA initialized, channel 0
DMA CB initialized, channel 1
Random data
[00:00:00.000] LOG -- btstack_tlv_flash_bank.c.548: found bank 0
[00:00:00.000] LOG -- btstack_tlv_flash_bank.c.239: test erased: bank 0, offset 476
[00:00:00.000] LOG -- btstack_tlv_flash_bank.c.583: Flash clean after last found tag
[00:00:00.000] LOG -- btstack_tlv_flash_bank.c.598: write offset 1dc
[00:00:00.000] LOG -- btstack_tlv.c.48: TLV Instance 100202E4
[00:00:00.000] LOG -- btstack_tlv_flash_bank.c.408: Found tag '4254440f' at position 264
Starting Jem's Disco!
[00:00:00.003] LOG -- btstack_tlv_flash_bank.c.548: found bank 0
[00:00:00.009] LOG -- btstack_tlv_flash_bank.c.239: test erased: bank 0, offset 476
[00:00:00.017] LOG -- btstack_tlv_flash_bank.c.583: Flash clean after last found tag
[00:00:00.024] LOG -- btstack_tlv_flash_bank.c.598: write offset 1dc
[00:00:00.030] LOG -- btstack_tlv.c.48: TLV Instance 1001FDAC
[00:00:00.036] LOG -- btstack_tlv_flash_bank.c.408: Found tag '4254440f' at position 264
[00:00:00.044] LOG -- le_device_db_tlv.c.159: num valid le device entries 1
[00:00:00.052] LOG -- att_db.c.250: att_set_db 1001E270
[00:00:00.057] LOG -- nordic_spp_service_server.c.162: nordic_spp_rx_value_handle 0x06
@rvodden
rvodden / log.txt
Created January 28, 2025 08:29
Yosys Output
yosys -p "read_verilog hw/memory_tb.v ; synth_ice40 -top memory_tb -json memory_tb.json"
/----------------------------------------------------------------------------\
| |
| yosys -- Yosys Open SYnthesis Suite |
| |
| Copyright (C) 2012 - 2020 Claire Xenia Wolf <claire@yosyshq.com> |
| |
| Permission to use, copy, modify, and/or distribute this software for any |
| purpose with or without fee is hereby granted, provided that the above |
********************************************************************
Serial Initialized
--------------------------------------------------------------------
I2CexpDiag - i2c LCD i/o expander backpack diagnostic tool
--------------------------------------------------------------------
hd44780 lib version: 1.3.2
--------------------------------------------------------------------
Reported Arduino Revision: 1.6.7
CPU ARCH: arm - F_CPU: 48000000
--------------------------------------------------------------------
@rvodden
rvodden / day07.py
Created December 8, 2024 13:57
Day 07 - AoC
import os
import time
def evaluate_possible_operation(trg, cur_num, next_nums, concat=False):
if len(next_nums) == 0:
return trg == cur_num
if cur_num > trg:
return False
@rvodden
rvodden / gist:02d8e1fb3a42415d71a15ebfc50feabd
Created December 6, 2024 17:04
2024 Day 6 Part 2 potential logic
O
^------------------->#
|
|
|
|
|
|
@rvodden
rvodden / callback
Created November 3, 2023 11:22
Event Loop Based
import fcw
import camera
import time
import distances
import default_values
def doLaneDepartureWarning():
dashcam.beep(volume.MEDIUM)
dashcam.screen.flash(RED)
@rvodden
rvodden / main.py
Created June 23, 2023 06:36
Dexro Python Discord
import tkinter as tk
from tkinter import messagebox
class MyGUI:
def __init__(self):
self.root = tk.Tk()
self.check_state = tk.IntVar()
Activation Code 2G2b5QUsWGYzsHTVqIWq
Activation ID b8035237-0c6a-4c54-ae73-795227cfb870