Skip to content

Instantly share code, notes, and snippets.

View AWtnb's full-sized avatar
i love coffee

Akira Watanabe AWtnb

i love coffee
View GitHub Profile
@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 / 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 / WHOLE.ps1
Last active December 12, 2024 02:22
pwsh-custom-cmdlets | 個人用バックアップ($Profile から読み込んでいる .ps1 スクリプトを集約)
<# /////////////////////////////////////////////////////////////////
//
// BEGINING OF FILE:
// ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
//
///////////////////////////////////////////////////////////////// #>
<# ==============================
@AWtnb
AWtnb / totalTime2mail.js
Created April 25, 2020 06:16
send mail of total study time
/*
勉強時間の内訳を取得
*/
// グローバル変数としてシートを取得
var sht = SpreadsheetApp.getActiveSpreadsheet().getSheets();
////////////////////////////////////////////////////////
// 集計時処理
@AWtnb
AWtnb / addSearchMenu.gs
Last active March 6, 2020 01:40
googleスプレッドシートに検索メニューを追加
function onOpen() {
var ui = SpreadsheetApp.getUi();
var menu = ui.createMenu('🎃現在の行でWeb検索');
menu.addItem('google', 'searchOnGoogle');
menu.addItem('googleマップ', 'searchOnGoogleMap');
menu.addToUi();
}
function searchOnGoogle() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
@AWtnb
AWtnb / slack_gyotaku_robot.gs
Last active February 10, 2020 03:54
gyotaku robot on slack
/*
slack のカスタムアクションでシートに記入していく。
フルに稼働するためにはそのチャンネルにアプリとして追加する必要あり。
scope: interactive component / users.read / reactions.write / channels:read / groups:read
*/
var PROPERTIES = PropertiesService.getScriptProperties();
var BOT_USER_TOKEN = PROPERTIES.getProperty("BOT_USER_TOKEN");
var SHEET_ID = PROPERTIES.getProperty("SHEET_ID");
@AWtnb
AWtnb / SumatraPDF-settings.txt
Last active November 25, 2019 05:43
sumatra PDF setting
# For documentation, see http://www.sumatrapdfreader.org/settings3.2.html
MainWindowBackground = #fffde7
EscToExit = false
ReuseInstance = false
UseSysColors = false
RestoreSession = true
FixedPageUI [
TextColor = #000000
@AWtnb
AWtnb / style.less
Last active May 20, 2020 01:52
vscode_markdown-preview-enhanced-style
.markdown-preview.markdown-preview {
@accentColor: #3498db;
@backgroundColor: #ffffff;
@foregroundColor: #333333;
@accentFont: 'Source Han Code JP N', Verdana, Arial, Helvetica, Roboto, sans-serif;
@baseFont: "HelveticaNeue", Arial, "HiraginoKakuGothicProN", "HiraginoSans", Meiryo, sans-serif;
@borderColor: #aaa;
@codeDark: #364352;
@codeLight: #f2f2f2;