Skip to content

Instantly share code, notes, and snippets.

@eadmaster
eadmaster / RetroGuides.lua
Last active November 24, 2025 23:41
RetroGuides.lua
-- RetroGuides - Online guide for retro games.
-- Copyright (C) 2025 - eadmaster
-- https://github.com/eadmaster/eadmaster/
--
-- RetroGuides is free software: you can redistribute it and/or modify it under the terms
-- of the GNU General Public License as published by the Free Software Found-
-- ation, either version 3 of the License, or (at your option) any later version.
--
-- RetroGuides is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-- without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
@eadmaster
eadmaster / tasmotairjson2flipperir.py
Last active August 5, 2024 01:41
tasmotairjson2flipperir.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# converts tasmota irsend commands to flipper ir files
# example usage: python tasmotairjson2flipperir.py <<< '{"Protocol":"NEC","Bits":32,"Data":"0x20DF10EF"}'
import sys
import json
@eadmaster
eadmaster / rcswitch2flippersub.py
Last active July 21, 2024 02:39
rcswitch2flippersub.py
#!/usr/bin/env python3
# derived from https://gist.github.com/jinschoi/f39dbd82e4e3d99d32ab6a9b8dfc2f55
from typing import Iterable, Union, Any
# freq: frequency in Hz
# zerolen: length of space bit in μs
# onelen: length of mark bit in μs
@eadmaster
eadmaster / lines2vfd2002.py
Created July 20, 2024 19:34
lines2vfd2002.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# derived from https://github.com/cnorlander/USB2VFD-Deck/
# for use with EVC20X02 VFD display controller https://it.aliexpress.com/item/1005006110081409.html
import serial
import time
import pytz
@eadmaster
eadmaster / ESP32-HUB75-MatrixPanel-DMA_test.ino
Last active July 13, 2024 18:21
ESP32-HUB75-MatrixPanel-DMA_test.ino
// Example sketch which shows how to display some patterns
// on a 64x32 LED matrix
//
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
#define PANEL_RES_X 128 // Number of pixels wide of each INDIVIDUAL panel module.
#define PANEL_RES_Y 64 // Number of pixels tall of each INDIVIDUAL panel module.
//Version 1.02
#include <WiFi.h>
#include <Adafruit_MLX90640.h>
Adafruit_MLX90640 mlx;
//#include <U8g2lib.h>
/*
#define SDA_PIN 41
@eadmaster
eadmaster / ConfigurableFirmata_neopixel_test.py
Last active June 23, 2024 00:43
control neopixel leds with ConfigurableFirmata (WIP)
import pyfirmata
import time
class SPI:
START_SYSEX = 0xF0
END_SYSEX = 0xF7
SPI_DATA = 0x68
SPI_TRANSFER = 0x02
@eadmaster
eadmaster / main.go
Created May 15, 2024 04:13
lrctransliterate_kagome
package main
import (
"fmt"
"strings"
"unicode"
"bufio"
"os"
"github.com/gojp/kana"
@eadmaster
eadmaster / lines2vfd.py
Created May 14, 2024 17:42
lines2vfd.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# derived from https://github.com/cnorlander/USB2VFD-Deck/
import serial
import time
import pytz
from datetime import datetime, timezone
@eadmaster
eadmaster / pythonic.hpp
Created September 11, 2023 13:17
python stdlib ported to cpp
/* usage examples:
*
#include <bits/stdc++.h>
using namespace std;
#include "pythonic.hpp"
auto x = 4;
auto y = 3.37;