2020-06-27 moved to pwsh
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
# For documentation, see http://www.sumatrapdfreader.org/settings3.2.html | |
MainWindowBackground = #fffde7 | |
EscToExit = false | |
ReuseInstance = false | |
UseSysColors = false | |
RestoreSession = true | |
FixedPageUI [ | |
TextColor = #000000 |
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
.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; |
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
/* | |
シートからその日に終わらせた仕事を取得して記録 | |
*/ | |
///////////////////////////////////////////// | |
// グローバル変数 | |
///////////////////////////////////////////// | |
// シート | |
var SHEET_ID = PropertiesService.getScriptProperties().getProperty("SHEET_ID"); |
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
/* | |
googleスプレッドシート内の情報を返すAPI | |
*/ | |
function getDataOnSheet() { | |
var SHEET_ID = PropertiesService.getScriptProperties().getProperty("SHEET_ID"); | |
var sht = SpreadsheetApp.openById(SHEET_ID).getSheets(); | |
var maxRow = sht[0].getLastRow(); | |
var data = sht[0].getRange(2, 1, maxRow - 1, 4).getValues(); | |
var ret = []; |
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
/* | |
今日のトレーニングを slack で確認してカレンダーに登録 | |
incomming webhook | |
interactive component | |
*/ | |
/////////////////////////////////////////////////////// | |
// global variables | |
/////////////////////////////////////////////////////// |
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
/* | |
ワークスペースに追加されたチャンネルをシートに追加して定時で slack に通知 | |
*/ | |
/////////////////////////////////////////////////////// | |
// グローバル変数 | |
/////////////////////////////////////////////////////// |
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
/* | |
slash command | |
ランダムに複数の要素を選ぶ抽選 | |
*/ | |
// 配列中の複数要素をランダムに取得する関数 | |
// https://miya2000.hatenadiary.org/entry/20080607/p0 | |
function randomChoose (array, num) { | |
var a = array; |
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
/* | |
slash command | |
ISBN から書誌情報を取得する | |
自社の本であれば5桁のみでマッチ | |
*/ | |
// ISBN 12桁の末尾にからチェックディジットを追加する関数 | |
function appendCheckDigit (isbn12) { | |
var array = String(isbn12).split("") | |
var total = 0; |
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
;; 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 { |