Skip to content

Instantly share code, notes, and snippets.

View UNILORN's full-sized avatar
💖

UNILORN UNILORN

💖
View GitHub Profile
function workCount() {
var calendar = CalendarApp.getCalendarById('') // アルバイト用カレンダーID
var startDate = Moment.moment("2017-01-01") // 記録開始年月日
var now = Moment.moment().add(3,'months') // 基本記録終了年月日(default : 現在より3ヶ月先)
var monthCount = now.startOf("month").diff(startDate,"months") // 処理月数
var report = [] // 全データ格納用変数
var HourlyWage = 1000 // 時給
// 処理月数分ループ 月ごと
for (i = 0 ; i < monthCount; i++,startDate.add(1,'months')){
@UNILORN
UNILORN / Client
Last active August 29, 2016 19:52
GitHubを使って、公開環境を半自動更新させてみた ref: http://qiita.com/UNILORN/items/2f5a30829b5ada8db224
$ echo "alias chp='ssh {Serverのユーザ名}@{ServerのIPアドレス} sh ~/autopull.sh'" >> ~/.bashrc
@UNILORN
UNILORN / Bash
Last active September 23, 2016 08:31
Bash on Ubuntu on Windows を導入した話 ref: http://qiita.com/UNILORN/items/e729bce47c83e0336757
Windowsキー → "Bash" → Enter