This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MakeOption.ps1 - Create an SDDT option file from fumen editor outputs | |
# | |
# Requires PowerShell 7. | |
# | |
# When you first run this script, it will create a file "MakeOption.ini". | |
# You must configure MakeOption.ini before running this script again. | |
# | |
# This script will process all subdirectories of the "SourceDir" that you set in MakeOption.ini. | |
# | |
# If a subdirectory is missing a file called Music.xml, it will be skipped. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"book symbol": "{", | |
"cap value": null, | |
"color empty": "#666666", | |
"color empty descendant": "green", | |
"color zero": false, | |
"columns": [ | |
{ | |
"absolute": true, | |
"color": "black", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# WARNING Argument parsing here is really dumb, be careful when adding any | |
# additional flags. | |
shopt -s nullglob | |
readonly LIBRARY=/mnt/f/Music | |
readonly OUTPUT=/mnt/g/MusicTransfer/out | |
mkdir -v "$OUTPUT" 2>/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pos_map = { | |
"Transitive verb": ['#E03999', "Transitive"], | |
"Godan verb .*": ['#88F0F0', "Godan verb"], | |
"Adverb": ['#EEEEEE', "Adverb"] | |
}; | |
const pos_div = document.getElementById("parts_of_speech"); | |
document.getElementById("pos-temp").innerHTML.split(/\n/).forEach(function(e) { | |
const keysMatching = Object.keys(pos_map) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import requests, bs4 | |
import json | |
from collections import namedtuple | |
JishoSentence = namedtuple('JishoSentence', ['jp', 'en']) | |
JishoLookup = namedtuple('JishoLookup', ['json', 'sentences']) | |
def ac_text(action, params): | |
json_ins = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Generates an alacritty color config from currently loaded X resources. | |
xrdb_grep() { | |
xrdb -query | grep -E '^\*'"$1"':' | |
} | |
color_from_line() { | |
read -r line && readonly line | |
echo "${line/\#/0x}" | tr -d '[:space:]' | cut -d ':' -f 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Script for binding my foot pedal. | |
import sys, os, glob | |
import evdev | |
from evdev import ecodes | |
# Search system devices for a pedal. | |
devices = glob.glob('/dev/input/by-id/usb-VEC_VEC_USB_Footpedal-event-*') |