Skip to content

Instantly share code, notes, and snippets.

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

wendeehsu

🇹🇼
Fighting 💨
View GitHub Profile
function addUser(userId) {
remindSheet.appendRow([userId]);
}
function deleteRowAt(index) {
remindSheet.deleteRow(index);
}
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 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++){
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.
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,
};