Skip to content

Instantly share code, notes, and snippets.

View bee-san's full-sized avatar
🌻
Tending to my plants

Autumn (Bee) bee-san

🌻
Tending to my plants
View GitHub Profile
These are published in p3rpc.nativetypes/Xrd777.cs and the message structures later in that file.
So P3R already maintains:
The current visible page.
Its lines and individual UTF-8 characters.
A separate color for every character.
That last field explains the yellow highlight: change the selected letters’ FSprColor, let P3R render its normal frame, then restore the colors.
# Small Experimental Hoshidicts Reader and Mining Integration
## Summary
- Add Hoshidicts behind enable_experimental_features && enable_hoshidicts; both default off. Changing the Hoshidicts toggle requires restarting the overlay.
- When enabled, Hoshidicts handles Japanese term scanning and the Hoshi Reader popup. Yomitan scanning/popups are disabled, but its GSM bridge remains loaded for minimal Anki mining. When
disabled, existing Yomitan behavior is unchanged.
- V1 includes dictionary import/removal, scheduled updates, Japanese word lookup, and one mouse-driven mining button. Exclude controllers, hotkeys, kanji lookup, nested popup scanning,
word audio, dictionary media, frequency/pitch export, note browsing, and multiple mining formats.
import azure.functions as func
import logging
import azure.cognitiveservices.speech as speechsdk
# Azure Speech API key and region
azure_region = "XXXX"
azure_key = "XXXX"
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)

Note: If you are not comfortable with tech / python please do not follow this guide nor ask me for help. I am too busy immersing to teach someone to use Python, but if you are experienced you can ask :)

Why do this?

I work in tech and love tech.

When you love tech, sometimes you make something just because you can. There is no real reason as to why you want to do this, but perhaps if you are not familar with having fun there are some reasons:

  1. You may be in the military and need to go 1+ years without internet.
  2. You are in a country with good internet and have to go back to a country with old internet.
  3. You work as a researcher in Antartica and only have access to the internet for a few minutes a day, and most of that time will be needed for downloading research datasets.
@bee-san
bee-san / english.rs
Created July 23, 2022 18:01
line 36 is the problem
use log::{debug, info, trace};
use crate::checkers::checker_type::{CheckerType, Check};
impl EnglishChecker {
pub fn new() -> Self {
Self {
checker_type: CheckerType {
name: "English Checker",
C='TTL'
B='Uses'
import boto3
G=boto3.resource('dynamodb')
def A(event,context):
L='Hash';K=event[L];C=G.Table('hash_lookup');D={}
for E in K:
A=C.get_item(Key={L:E})['Item']
if not A['Verified']:F=H(A);C.put_item(Item=F)
if B in A:A[B]=A[B]+1
@bee-san
bee-san / tournament.py
Last active December 27, 2020 00:00
3 * n/2 - 2 comparisons, tournament method
x = [1, 5, 3, 9, 10, 6, 0, 11, 21, -10, 5]
small, large = x[0], x[0]
for i in range(1, len(x) - 1):
if x[i] < x[i + 1]:
small = min(x[i], small)
large = max(x[i + 1], large)
print(small, large)
➜ ciphey -t "e098b86310f3eeffff5c04869e145fe72d6434333af997ebefd909024fb29114" -vvv
2020-09-09 13:06:58.355 | DEBUG | ciphey.iface._config:update_log_level:181 - Verbosity set to level 3 (TRACE)
2020-09-09 13:06:58.355 | DEBUG | ciphey.ciphey:main:198 - Opened config file at /home/bee/.config/ciphey/config.yml
2020-09-09 13:06:58.356 | TRACE | ciphey.ciphey:main:199 - Got cmdline args {'text': 'e098b86310f3eeffff5c04869e145fe72d6434333af997ebefd909024fb29114', 'verbose': 3, 'text_stdin': None, 'quiet': None, 'greppable': None, 'checker': None, 'config': None, 'wordlist': None, 'param': (), 'list_params': None, 'searcher': None, 'bytes': None, 'default_dist': None, 'module': (), 'appdirs': False, 'file': None}
2020-09-09 13:06:58.356 | DEBUG | ciphey.iface._config:load_modules:191 - Loaded modules ['regex', 'regexlist', 'brandon', 'jsonchecker', 'humanchecker', 'any', 'ezcheck', 'caesar', 'vigenere', 'xorsingle', 'xorcrypt', 'xandy', 'morsecode', 'base16', 'base32', 'base64', 'base85', 'ascii85',
xwg', 'wfwzmdd', 'syir', 'ngwsloerbpm', 'wlv', 'lwf', 'fepaxl', 'ijikggkbz', 'hrloqsglm', 'ahlnsmt', 'lgcv', 'zhxci', 'foowghvfr'}"
2020-09-09 01:19:28.832 | TRACE | ciphey.basemods.Checkers.brandon:check:226 - {'0': {'dict': 0.5}, '110': {'stop': 0.15}, '150': {'stop': 0.28}}
2020-09-09 01:19:28.832 | TRACE | ciphey.basemods.Checkers.brandon:checker:145 - Checker's chunks are size 18
2020-09-09 01:19:28.832 | TRACE | ciphey.basemods.Checkers.brandon:checker:154 - To analyse is ['qedfvg', 'scyz', 'tlddyrs', 'fewmzraz', 'fzrs', 'zie', 'vttmxwostvc', 'nlsdrvgvtp', 'yluhwfjrkdr', 'hgh', 'sugwhxerd', 'ebx', 'jqlvllsk', 'ertb', 'ncpc', 'phgrqo', 'rzlot', 'gpidksyob']
2020-09-09 01:19:28.911 | TRACE | ciphey.basemods.Checkers.brandon:checker:154 - To analyse is ['ugg', 'umo', 'hzrbtaeq', 'fhmilkff', 'xwg', 'wfwzmdd', 'syir', 'ngwsloerbpm', 'wlv', 'lwf', 'fepaxl', 'ijikggkbz', 'hrloqsglm', 'ahlnsmt', 'lgcv', 'zhxci', 'foowghvfr']
2020-09-09 01:19:28.984 | TRACE | ciphey.basemods.Checkers.brandon:check
➜ ciphey -t "941241298794216421426424464515" -vvv
2020-09-09 00:01:45.130 | DEBUG | ciphey.iface._config:update_log_level:183 - Verbosity set to level 3 (TRACE)
2020-09-09 00:01:45.130 | DEBUG | ciphey.ciphey:main:208 - Opened config file at /home/bee/.config/ciphey/config.yml
2020-09-09 00:01:45.130 | TRACE | ciphey.ciphey:main:209 - Got cmdline args {'text': '941241298794216421426424464515', 'verbose': 3, 'text_stdin': None, 'quiet': None, 'greppable': None, 'checker': None, 'config': None, 'wordlist': None, 'param': (), 'list_params': None, 'searcher': None, 'bytes_input': None, 'bytes_output': None, 'default_dist': None, 'module': (), 'appdirs': False, 'file': None}
2020-09-09 00:01:45.131 | DEBUG | ciphey.iface._config:load_modules:193 - Loaded modules ['regex', 'regexlist', 'brandon', 'jsonchecker', 'humanchecker', 'ezcheck', 'caesar', 'vigenere', 'xorsingle', 'xorcrypt', 'xandy', 'morsecode', 'base16', 'base32', 'base64', 'base85', 'ascii85', 'utf8', 'reverse', 'octal', 'bina