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
/* | |
* QQ Englishのスケジュールを登録する | |
*/ | |
var CALENDAR_NAME = 'YOUR CALENDAR NAME'; | |
var SEARCH_QUERY = 'is:unread subject:"【QQEnglish】レッスン予約完了"'; | |
var REMIND_MINUTES_BEFORE = 10; | |
function registQQEnglishCalendar() { | |
// 指定したカレンダーを取得 | |
var calendars = CalendarApp.getCalendarsByName(CALENDAR_NAME); |
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
/* | |
* DMM英会話のスケジュールを登録する | |
*/ | |
var CALENDAR_NAME = 'YOUR CALENDAR NAME'; | |
var SEARCH_QUERY = 'is:unread subject:"【DMM英会話】レッスン予約完了のお知らせ"'; | |
var REMIND_MINUTES_BEFORE = 10; | |
function registDMMEikaiwaCalendar() { | |
// 指定したカレンダーを取得 | |
var calendars = CalendarApp.getCalendarsByName(CALENDAR_NAME); |
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
DROP FUNCTION calc_distance; | |
CREATE FUNCTION calc_distance(lat1 DOUBLE, lon1 DOUBLE, lat2 DOUBLE, lon2 DOUBLE) RETURNS double | |
RETURN (ACOS(SIN(lat1 * PI() / 180) * SIN(lat2 * PI() / 180) + COS(lat1 * PI() / 180) * COS(lat2 * PI() / 180) * COS((lon1 - lon2) * PI() / 180)) * 180 / PI()) * 111189.57696; |
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
*~ | |
*.bak | |
Thumbs.db | |
desktop.ini | |
.DS_Store | |
.buildpath | |
.project | |
.settings | |
.tmpoj | |
build |