Skip to content

Instantly share code, notes, and snippets.

View qqEnglish.js
/*
* 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);
@toshiaki-h
toshiaki-h / dmmEikaiwa.js
Last active Dec 29, 2019 — forked from yoonchulkoh/dmmEikaiwa.js
DMM英会話スケジュール自動登録スクリプト
View dmmEikaiwa.js
/*
* 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);
View calc_distance.sql
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;
View .gitignore
*~
*.bak
Thumbs.db
desktop.ini
.DS_Store
.buildpath
.project
.settings
.tmpoj
build
You can’t perform that action at this time.