Skip to content

Instantly share code, notes, and snippets.

View AWtnb's full-sized avatar
i love coffee

AWtnb AWtnb

i love coffee
View GitHub Profile
@AWtnb
AWtnb / userChrome.css
Last active October 21, 2022 08:40
thunderbird css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
* {
font-family: "UDEV Gothic" !important;
}
/* ------------------------------
folder pane
------------------------------ */
@AWtnb
AWtnb / WHOLE.ps1
Last active October 11, 2022 02:44
pwsh-custom-cmdlets | 個人用バックアップ($Profile から読み込んでいる .ps1 スクリプトを集約)
<# /////////////////////////////////////////////////////////////////
//
// BEGINING OF FILE:
// ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
//
///////////////////////////////////////////////////////////////// #>
<# ==============================
@AWtnb
AWtnb / WHOLE.py
Last active September 28, 2022 05:13
python-script-called-from-PowerShell | 個人用バックアップ($Profile から呼び出す .py スクリプトを集約)
""" #############################################################
##
## BEGINING OF FILE:
## ~\Documents\PowerShell\cmdlets\python\sudachi_tokenizer.py
##
############################################################# """
"""
@AWtnb
AWtnb / markdown.less
Last active September 9, 2022 03:00
personal markdown style less
// ------------------------------------------------------------
// original style sheet for markdown-compiled document.
// ------------------------------------------------------------
@import url('https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp_s-noto.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1+Code&display=swap');
@AWtnb
AWtnb / config.py
Last active August 3, 2022 02:37
keyhac setting
import datetime
import os
import fnmatch
import re
import time
import urllib.parse
from pathlib import Path
from winreg import HKEY_CURRENT_USER, HKEY_CLASSES_ROOT, OpenKey, QueryValueEx
import pyauto
@AWtnb
AWtnb / diff-wrapper.css
Last active May 31, 2022 05:51
Stylesheet to decorate Python HtmlDiff-generated html
* {font-family: "PlemolJP";}
table {
margin: 20px auto;
border: 1px solid #aaa;
}
thead, th, tbody {border: 1px solid #aaa;}
th {background:#e0e0e0;}
td {
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
@AWtnb
AWtnb / setting.json
Last active May 19, 2022 07:38
Thunderbird tbkeys-lite setting
{
"0": "unset",
"1": "unset",
"2": "unset",
"3": "unset",
"4": "unset",
"5": "unset",
"6": "unset",
"7": "unset",
"8": "unset",
@AWtnb
AWtnb / ToggleSplitPaneVertical2.js
Created April 23, 2022 03:31
Tablacus explorer customize: Duplicate the current tab to the side pane (開いているタブを横のペインに複製する)
// https://gist.github.com/tablacus/b706707ae86aa4fd7d126d5d117a853d
// Toggle split pane (Vertical) Require "Split" - Tablacus Explorer
function ToggleSplitPaneVertical() {
if (te.Ctrls(CTRL_TC, true).Count > 1) {
Addons.Split.Exec(1, 1);
} else {
Addons.Split.Exec(2, 3);
// https://github.com/tablacus/TablacusExplorerAddons/wiki/switchpane
Sync.SwitchPane.NextFV().Navigate(GetFolderView(), SBSP_NEWBROWSER);
}
@AWtnb
AWtnb / bank-code.py
Created March 14, 2022 06:26
search bank name and branch name with zengin-py
"""
銀行と支店コードを検索
"""
import argparse
from zengin_code import Bank
def format_name(s:str):
from_letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-ャュョッ"
@AWtnb
AWtnb / script.js
Last active December 1, 2021 09:15
javascript for formatting markdown-compiled html
// ------------------------------------------------------------
// format markdown-compiled html with js
// ------------------------------------------------------------
const getElems = (query) => {
return Array.from(document.querySelectorAll(query));
};
const insertFilename = (elm) => {
const filename = elm.className.replace(/^language-/, "");