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 / 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 / mokof.go
Last active July 23, 2023 11:38
fuzzy-filter for PowerShell
package main
import (
"bufio"
"flag"
"fmt"
"os"
"github.com/ktr0731/go-fuzzyfinder"
)
@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 / 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 / BackOrOutdent.js
Last active March 18, 2021 10:46
テキストエディタ Mery 用の自作マクロ集。
// ------------------------------------------------------------
// インデント直後では逆インデント、それ以外は直前の1字を削除
// ------------------------------------------------------------
function selectLine() {
document.selection.EndOfLine(false, mePosLogical);
document.selection.StartOfLine(true, mePosLogical);
}
function getIndentDepth(s) {
@AWtnb
AWtnb / qrgen.go
Created October 8, 2020 08:32
qrcode generater with golang
package main
import (
"flag"
"fmt"
"image/png"
"os"
"time"
"github.com/boombuler/barcode"
@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-/, "");
@AWtnb
AWtnb / github-orange.css
Last active August 17, 2020 06:56
typora custom-css based on github theme
:root {
--side-bar-bg-color: #fafafa;
--control-text-color: #777;
}
@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@font-face {
font-family: 'Open Sans';
font-style: normal;
@AWtnb
AWtnb / cobalt-blue.css
Last active September 9, 2020 02:17
typora custom-css based on cobalt theme
:root {
--bg-color: #141d28;
--side-bar-bg-color: #090b10;
--control-text-color: #a9aaab;
--primary-color: #03b1fc;
--primary-btn-border-color: #0295d4;
--active-file-text-color: inherit;
--active-file-border-color: #0295d4;
--active-file-bg-color: #131c29;
--primary-btn-text-color: #0295d4;