Skip to content

Instantly share code, notes, and snippets.

View mkpoli's full-sized avatar

まくぽり mkpoli

View GitHub Profile
@mkpoli
mkpoli / bluescreen.typ
Created December 26, 2024 12:35 — forked from realybin/bluescreen.typ
A blue screen made by typst
#import "@preview/cades:0.3.0": qr-code
#set text(font: "Yu Gothic UI")
#set page(width: 260pt, height: 170pt, fill: rgb("#397eff"), margin: 25pt)
#place(text(size: 40pt, ":(", fill: white), dx: 0pt, dy: 0pt)
#place(
text(
size: 5pt,
@mkpoli
mkpoli / ainu_pos.json
Last active December 28, 2024 15:43
日本語版ウィクショナリーから得られたアイヌ語単語⇆品詞対応表 https://github.com/mkpoli/ainu-corpora-process/blob/main/dictionary/extract_vocabulary.ipynb
{
"wan": [
"num"
],
"tu": [
"num"
],
"rak": [
"verb"
],
@mkpoli
mkpoli / update_changelog.py
Created November 2, 2024 16:04
Update CHANGELOG [Unreleased] to version script
import difflib
import tomllib
import sys
from pathlib import Path
from datetime import datetime
project_file = Path("pyproject.toml")
with open(project_file, "rb") as file:
@mkpoli
mkpoli / 02.md
Last active June 29, 2026 10:45
水科七三郎(1893)「北海氣象瑣談」『氣象集誌』第1輯、第11–13巻 解読:https://note.com/mkpoli/n/ncdcdcec22d7c

author: 水科七三郎 title: 北海氣象鎻談(承前) journal: 氣象集誌 part: 1 volume: 11 issue: 9 date: 1893 page-range: 380-389 doi: 10.2151/jmsj1882.11.9_394

@mkpoli
mkpoli / Torii_1903_Kuril-Ainu_wordlist.tsv
Last active March 22, 2025 08:37
鳥居龍藏(1903)『千島アイヌ』「千島地名普通單語集」
jpn ain notes
Ai.
十勝石 Anji 或は Yes.
釣針 Ap 或 Kon.
立つ Ash.
群集する At 或 Wekari.
Atuika.
Hashiteki.
休む Eshiku.
Abe.
@mkpoli
mkpoli / example.typ
Last active April 22, 2024 02:09
Linguistics example sentence in Typst
#let examples = counter("example")
#let std-numbering = numbering
#let named_examples = state("named-examples", (:))
#let ex(text, tran, name: none, numbering: "1)", asterisk: false) = {
examples.step()
context {
let current_numbering = examples.get()
if name != none {
named_examples.update(x => {
@mkpoli
mkpoli / Svelte.svg
Created April 21, 2024 06:55
VTuber logo for Svelte
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mkpoli
mkpoli / split_ass.py
Created March 28, 2024 02:34
Split ASS subtilte file by style
import regex as re
from pathlib import Path
TARGET_FILE = ".\YourFile.ass"
def split_ass_by_styles(file_path):
# Convert string path to Path object if not already
file_path = Path(file_path)
# Read ASS content from the file
with open(file_path, 'r', encoding='utf-8') as file:
@mkpoli
mkpoli / README.md
Last active July 19, 2026 00:15
アイヌ語基本形態変化一覧表(基本名詞の概念形・所属形、基本動詞の単数形・複数形) / Ainu basic morphological marking (noun possessives and verb plurals) → https://github.com/aynumosir/ainu-morphology-data

アイヌ語基本形態変化一覧表のデータは https://github.com/aynumosir/ainu-morphology-data に移動した。

  • noun_possessives.tsv — 名詞の概念形と所属形
  • verb_plurals.tsv — 動詞の単数形と複数形

各行に出典を付し、辞書・コーパスと照合できなかった形は削除してある。

@mkpoli
mkpoli / inversed.txt
Last active July 5, 2023 09:45
漢字音二字対義語の声調順序
正邪
盛衰
大小
吉凶
古今
是非
疾徐