Skip to content

Instantly share code, notes, and snippets.

@UserUnknownFactor
UserUnknownFactor / Japanese SFX.md
Last active May 31, 2025 17:56
Japanese game and manga text sound effect (SFX) database

Japanese SFX

Introduction

This is a compiled collection of common Japanese SFXs (sound effects or onomatopoeia).

This collection uses mostly Romaji transliterations. Some of them can be used in combination with other SFXs; some of them, or combinations thereof, can be written separately for emphasis within the same panel (example: do-ki-, ドッ キッ ), but can be considered part of the same action; some use repeated sub-elements or prolongation characters (ー) within them. All interjections can be written differently, usually to indicate particularly strong or repeated stimulation. For example, a cho in isolation is almost certainly a truncated version of chotto, where the speaker was distracted from finishing the word. A prolongation of a character, on the other hand, often implies lazy, harsh, or sloppy pronunciation, or possibly even a scream. Because of this, many SFXs can have multiple meanings, depending on the action drawn, as well as one's interpretation of that action.

@UserUnknownFactor
UserUnknownFactor / get_sfx_table.py
Created September 9, 2020 13:48
Translation dictionary of SFXes for filetranslate
# -*- coding:utf-8 -*-
import requests, re
from bs4 import BeautifulSoup
from filetranslate.service_fn import write_csv_list
url_addr ='https://thejadednetwork.com/sfx/index/'
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
bs = BeautifulSoup(requests.get(url_addr, headers=headers).content, features="lxml")
data = []
links = bs.select('a.tip.sfx-menu')
@UserUnknownFactor
UserUnknownFactor / replacers.py
Last active September 7, 2023 06:10
Repacers for multiple files by regexp
# -*- coding:utf-8 -*-
# Python 3.9+ tool to replace strings using regular expression(s) in many files with specified encoding at once
import argparse, os, sys, traceback, re, csv
from glob import fnmatch
VERSION_STRING = '1.0.3'
# tabs are friggin invisible so using → instead as field separator
# copy&paste it from here to the CSV & external table importer
DELIMITER_CHAR = '→'
@UserUnknownFactor
UserUnknownFactor / wrapper_only_code.js
Last active October 14, 2022 12:46
Nagato's automatic word wrapper for KiriKiri Z games (added to MainWindow.tjs)
// inside MainWindow.tjs right after:
// class KAGWindow extends Window
// {
var wrapNum = 0;
var wrapPos = 0;
var wrapPosHist = 0;
var wrapOldLine = void;
var wrapSplitLine = void;
var wrapBreakWrap = 0;
var wrapNewPage = 0;
@UserUnknownFactor
UserUnknownFactor / HDDGeometry.md
Last active September 8, 2022 12:55
Discovering Hard Disk Physical Geometry through Microbenchmarking

Discovering Hard Disk Physical Geometry through Microbenchmarking

By Henry, on September 6th, 2019

Modern hard drives store an incredible amount of data in a small space, and are still the default choice for high-capacity (though not highest-performance) storage. While hard drives have been around since the 1950s, the current 3.5″ form factor (actually 4″ wide) appeared in the early 1980s. Since then, the capacity of a 3.5″ drive has increased by about 106 times (from 10 MB to about 10 TB), sequential throughput by about 103 times, and access times by about 101 times. Although the basic concept of spinning magnetic disks accessed by a movable stack of disk heads has not changed, hard drives have become much more complex to enable the increased density and performance. Early drives had tens of thousands of sectors arranged in hundreds of concentric tracks (sparse enough for a stepper motor to accurately position the disk head), while current d

@UserUnknownFactor
UserUnknownFactor / unity_dump.py
Created October 23, 2020 08:17
Unity game translation tools
import os, sys
from glob import glob
from UnityPy import AssetsManager
from collections import Counter
import zipfile
from string import Template
from filetranslate.service_fn import write_csv_list
USE_YAML = False
try:
@UserUnknownFactor
UserUnknownFactor / Disable_Charms_Panel.reg
Last active January 8, 2024 07:26
Various useful Windows batches
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\EdgeUI]
"DisableCharmsHint"=dword:00000001
"DisableTRCorner"=dword:00000001
@UserUnknownFactor
UserUnknownFactor / xor2.py
Last active June 19, 2022 08:50
XOR two files in Python
#!/usr/bin/env python
# coding: utf-8
#####################################################################
# Python XOR 2 Files (xor.py)
# Use: xor.py file1 file2 [outputFile]
# Example: xor.py a.txt b.txt C:\result.txt
#####################################################################
import sys, os, re
@UserUnknownFactor
UserUnknownFactor / furiganizer.user.js
Last active June 9, 2022 14:08
GreaseMonkey browser userscript to add furigana to some kanji and kana on web-pages
// ==UserScript==
// @name Furiganizer
// @description Romanize hiragana/katakana in selected sites
// @match https://ja.wikipedia.org/*
// @version v1
// @grant none
// @run-at document-body
// ==/UserScript==
(function() {
@UserUnknownFactor
UserUnknownFactor / pck_unpack.py
Last active April 8, 2023 15:10
Godot Engine 3 .pck file unpacker/repacker (unencrypted only)
import io, os, argparse, sys, textwrap, re, enum
from struct import unpack, pack
# NOTE: Repacking mode adds file to the end of the previous archive if it's
# larger than old or replaces old one if less.
# WARNING: It MODIFIES ORIGINAL FILE on repack so BACKUP it BEFORE REPACKING!!!
class EndianBinaryReader:
endian: str
Length: int