This file contains hidden or 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
nub :: [Int] -> [Int] | |
nub [] = [] | |
nub [x] = [x] | |
nub (x:xs) = if x `elem` xs then nub xs else x : nub xs |
This file contains hidden or 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
{ | |
"Local Debug": { | |
"prefix": "DEBUG", | |
"body": [ | |
"#define FLAG fprintf(stderr,\"\\033[32;1m#FLAG\\033[0m\\n\");", | |
"#define BIN(x) {fprintf(stderr,\" \\033[33;1m#DEBUG:\\033[0m \"#x\" = \"); \\", | |
"\tfor(int i=15;i>=0;--i)fprintf(stderr,\"%c\",((x)&(1<<i))?'1':'0'); \\", | |
"\tfprintf(stderr,\"\\n\");}", | |
"#define INT(x) fprintf(stderr,\" \\033[33;1m#DEBUG:\\033[0m \"#x\" = %d\\n\", x);", | |
"#define CHR(x) fprintf(stderr,\" \\033[33;1m#DEBUG:\\033[0m \"#x\" = %c\\n\", x);", |
This file contains hidden or 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
// https://developers.google.com/apps-script/reference/properties/properties#deletepropertykey | |
var colMap = PropertiesService.getScriptProperties(); | |
colMap.setProperties({ | |
"時間戳記": 0, | |
"蘆薈洗面乳": 4, | |
"蘆薈水晶凝露": 5, | |
"原味魷魚絲": 7, | |
"水晶魚": 8, | |
"紅豆糕": 9, | |
"泉利鹹餅": 11, |
NewerOlder