Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / PopfulMail (Japan).csv
Created January 5, 2026 07:12
PopfulMail (Japan).csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
このままゲームを始める。 We're going to start the game.
何番にコピーしますか? What number would you like to copy?
(上下に動かし番号を変えます) (I'll move it up and down and change the number.)
消してもよろしいですか? May I turn it off?
Yes Yes. Yes.
メモリーベース128に書き込むことが出来ません。 You can't write on memory base 128.
メモリーベース128のファイルを読むことが出来ません。 I can't read the memory base 128 file.
内蔵ラムに書き込むことが出来ません。 I can't write it in my internal ram.
このファイルは実行出来ません。 This file cannot be executed.
ぽっぷるメイルのファイルでないとコピー出来ません。 You can't copy it unless it's a pop-up mail file.
@eadmaster
eadmaster / jstringstxt2csv.py
Created January 25, 2026 23:06
jstringstxt2csv.py
import sys
def translate_with_sugoi_bulk(raw_list):
# https://huggingface.co/entai2965/sugoi-v4-ja-en-ctranslate2
import ctranslate2
import sentencepiece