Skip to content

Instantly share code, notes, and snippets.

<div class="fonts">
<span style="font-family:YUMIN">{{Kanji}}</span>
<span style="font-family:YUGOTHB">{{Kanji}}</span>
<span style="font-family:HGRKK">{{Kanji}}</span>
<span style="font-family:HGRGY">{{Kanji}}</span>
<span style="font-family:AoyagiSosekiFont">{{Kanji}}</span>
<span style="font-family:PixelMplus12px-Regular">{{Kanji}}</span>
</div>
@kanjieater
kanjieater / kanjiVocab.css
Created June 9, 2019 17:14
KanjiVocab Styles
/* KanjiVocab*/
.kv_kanji_known, .kv_kana_known {
border: 3px solid #b6d7a2 ;
border-radius: 3px;
}
.kv_kanji_mature, .kv_kana_mature {
border: 3px solid #569056;
border-radius: 3px;
@kanjieater
kanjieater / __init__.py
Last active August 18, 2019 21:20
automate mia japanese calls
from aqt import mw
from aqt.qt import QAction, QKeySequence
from anki.hooks import addHook
buttonText = "-------------Bulk-add Routine------------"
ROUTE_1_KEY = 'Ctrl+9'
def setupMenu(browser):
from importlib import reload
# -*- coding: utf-8 -*-
"""
Anki Add-on: Hint Hotkeys
Adds two hotkeys to the reviewer: 'H' to reveal hints one by one,
'G' to reveal all hints at once.
Based on "Hint-peeking Keyboard Bindings" by Ben Lickly
Copyright: (c) Ben Lickly 2012 <blickly at berkeley dot edu>
@kanjieater
kanjieater / web.py
Created November 27, 2020 22:44
ankiconnect but without crashing on client disconnects
# Copyright 2016-2020 Alex Yatskov
#
# This program 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 Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 PURPOSE. See the
@kanjieater
kanjieater / __init__.py
Last active April 11, 2021 20:05
Kindle Highlights to Anki Exporter for Japanese
from datetime import datetime
import re
from collections import namedtuple
from bs4 import BeautifulSoup
from anki.notes import Note
from aqt import mw
from aqt.utils import getFile, showInfo, showText
from aqt.qt import QAction
@kanjieater
kanjieater / __init__.py
Created March 22, 2021 01:56
Create Sentence Cards from Books (WIP) - Better japanese parsing
import sys
import io
import os
from aqt import mw
from aqt.utils import getFile, tooltip
from aqt.qt import *
sys.path.append(os.path.join(os.path.dirname(__file__), "vendor"))
FROM python:3.7.0
RUN set -x \
&& apt-get update \
&& apt-get install -y espeak espeak-ng ffmpeg libsndfile1 libsndfile1-dev python python-dev python-pip python-numpy python-lxml python-beautifulsoup \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
@kanjieater
kanjieater / ComicEater.yml
Last active September 28, 2023 17:06
ComicEater.yml
---
seriesFolders:
- seriesRoot: W:\Collection\シリーズ\
queueFolders:
- W:\Collection\シリーズキュー\
maintenanceFolder:
W:\Collection\シリーズキューの準備中\
folderPatterns:
- "{{authors}}「{{seriesName}} 全{{totalVolumes}}巻」/**/*"
- "{{authors}}「{{seriesName}}」/**/*"
@kanjieater
kanjieater / input.conf
Created February 19, 2023 21:13
Supported GAMEPAD inputs for mpv
input-gamepad=yes
# GAMEPAD_ACTION_DOWN
# GAMEPAD_ACTION_RIGHT
# GAMEPAD_ACTION_LEFT
# GAMEPAD_ACTION_UP
# GAMEPAD_BACK
# GAMEPAD_MENU
# GAMEPAD_START
# GAMEPAD_LEFT_SHOULDER