2020-06-27 moved to pwsh
This file contains hidden or 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
| /* | |
| slash command | |
| 多数決を簡単に行う | |
| */ | |
| ///////////////////////////////////////////////////////////////////////// | |
| // グローバル変数 | |
| ///////////////////////////////////////////////////////////////////////// | |
| //token |
This file contains hidden or 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
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
| * { | |
| font-family: "UDEV Gothic" !important; | |
| } | |
| /* ------------------------------ | |
| folder pane | |
| ------------------------------ */ |
This file contains hidden or 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
| /* | |
| 読書記録用 | |
| */ | |
| // ISBN 12桁の末尾にからチェックディジットを追加する関数 | |
| function appendCheckDigit (isbn12) { | |
| var array = String(isbn12).split("") | |
| var total = 0; | |
| // 奇数桁 | |
| for (var i = 0; i <= 10; i += 2) { |
This file contains hidden or 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
| /* | |
| slash command | |
| Microsoft Excel からコピペしたタブ区切りの複数行文字列を名寄せする | |
| */ | |
| // 名寄せ関数 | |
| function nayose (str) { | |
| var table = {}; | |
| var lines = str.split(/[\r\n]+/g); | |
| // 集約 |
This file contains hidden or 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
| hotkeys: | |
| shell: | |
| powershell: | |
| - - Ctrl-T | |
| profile: {} | |
| new-tab: [] | |
| close-tab: | |
| - - Ctrl-W | |
| rename-tab: [] | |
| split-right: [] |
This file contains hidden or 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
| ;; Wheel Scroll Tabs for Google Chrome | |
| #If WinActive ("ahk_class Chrome_WidgetWin_1") || WinActive ("ahk_class SUMATRA_PDF_FRAME") | |
| ~$WheelUp:: | |
| MouseGetPos, x, y | |
| If (y < 45) { | |
| Send, ^+{Tab} | |
| } | |
| else { |
This file contains hidden or 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
| /* | |
| slash command | |
| ISBN から書誌情報を取得する | |
| 自社の本であれば5桁のみでマッチ | |
| */ | |
| // ISBN 12桁の末尾にからチェックディジットを追加する関数 | |
| function appendCheckDigit (isbn12) { | |
| var array = String(isbn12).split("") | |
| var total = 0; |
This file contains hidden or 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
| /* | |
| slash command | |
| ランダムに複数の要素を選ぶ抽選 | |
| */ | |
| // 配列中の複数要素をランダムに取得する関数 | |
| // https://miya2000.hatenadiary.org/entry/20080607/p0 | |
| function randomChoose (array, num) { | |
| var a = array; |
This file contains hidden or 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
| /* | |
| ワークスペースに追加されたチャンネルをシートに追加して定時で slack に通知 | |
| */ | |
| /////////////////////////////////////////////////////// | |
| // グローバル変数 | |
| /////////////////////////////////////////////////////// |