Skip to content

Instantly share code, notes, and snippets.

View nyawach's full-sized avatar
🍜
一双

himeno-yusuke nyawach

🍜
一双
View GitHub Profile
def uniq(items: list):
'''
元の順序を保持したままuniqにする
'''
return sorted(set(items), key=items.index)
def not_none_items(items: list):
'''
Noneなアイテムを除外する
'''
/**
* @return {Boolean} 祝日かどうか
*/
function isJapaneseHoliday() {
var startDate = new Date();
startDate.setHours(0, 0, 0, 0);
var endDate = new Date();
endDate.setHours(23, 59, 59, 999);
// google calenderの提供している祝日カレンダーを取得する
var cal = CalendarApp.getCalendarById("ja.japanese#[email protected]");