Skip to content

Instantly share code, notes, and snippets.

View wendeehsu's full-sized avatar
🇹🇼
Fighting 💨

wendeehsu

🇹🇼
Fighting 💨
View GitHub Profile
import { ReactComponent as Filter } from './filter.svg';
import { ReactComponent as Folder } from './folder.svg';
import { ReactComponent as Grade } from './grade.svg';
export default {
Filter,
Folder,
Grade,
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function sendReminder() {
console.log(checkDay());
if (checkDay() == false) { // weekend
return;
}
var lastRow = remindSheet.getLastRow();
if (lastRow > 0) {
var ids = remindSheet.getSheetValues(1,1,lastRow,1);
for(var i = 0; i < lastRow; i++){
function pushMsg(message, usrId) {
var opt = {
'headers': {
'Content-Type': 'application/json; charset=UTF-8',
'Authorization': 'Bearer ' + channelToken,
},
'method': 'post',
'payload': JSON.stringify({
'to': usrId,
'messages': [{'type': 'text', 'text': message}]
function addUser(userId) {
remindSheet.appendRow([userId]);
}
function deleteRowAt(index) {
remindSheet.deleteRow(index);
}