super simple dom template function
| # ๋์๊ฒ ํ ๋น๋ ์ด์ | |
| assignee = currentUser() AND statusCategory != Done | |
| # ๋ด ๊ฑฐ์ง๋ง ์์ง ์งํ์ค์ด์ง ์์ ์ด์ | |
| assignee = currentUser() AND statusCategory = "To Do" | |
| # ๋ด ์ด์์ค 3๊ฐ์ ๋๊ฒ ์ ๋ฐ์ดํธ ์ ๋ ์ด์ | |
| assignee = currentUser() AND statusCategory != Done AND updatedDate < startOfMonth(-3m) | |
| # ๋ด๊ฐ ์งํ์ค์ธ ์ด์ |
์๋ ํ์ธ์, ์ด๋ฒ ์๋๋งํผ ์ธ๋ฏธ๋์์๋ ๋ธ๋กํน๊ณผ ๋ ผ๋ธ๋กํน์ ์ฐจ์ด, ๊ทธ๋ฆฌ๊ณ ๋ ผ๋ธ๋กํน์ ์ฝ๋ฐฑ ์ง์ฅ์ ๋ํด์ ์์๋ณธ ๋ค, ์ฝ๋ฐฑ ์ง์ฅ์ ํ์ถํ ์ ์๋๋ก ๋๋ Promise ๊ฐ์ฒด์ async / await ๋ฌธ๋ฒ์ ์ดํด๋ณด๊ฒ ์ต๋๋ค.
function blocking_wait(sec, callback) {
var start_time = +new Date;
while (+new Date < (start_time + sec * 1000));
callback();
}์๋ฌธ: TGM randomizer
์๋ฆฌ์นด์ ํ ํธ๋ฆฌ์ค ๊ทธ๋๋ ๋ง์คํฐ ์๋ฆฌ์ฆ์์ ๋๋ถ๋ถ์ ๊ฒ์์ ๊ฐ์ ํ ํธ๋ก๋ฏธ๋ ธ๊ฐ ์ฐ์์ ์ผ๋ก ๋์ค์ง ์๋๋ก ์์๋ฅผ ๋ค์๋๋ค. ํ์คํ ๋ฆฌ์๋ ์ต๊ทผ์ ๋์จ 4 ๊ฐ์ ํ ํธ๋ก๋ฏธ๋ ธ ์กฐ๊ฐ์ ๋ด๊ณ , ๊ฐ๋ฅํ ์ด ์ค์ ์๋ ํ ํธ๋ก๋ฏธ๋ ธ๋ฅผ ๊ณจ๋ผ๋ด๋๋ก ์๋ํ๋ค. ์ด ๋๋๋ง์ด์ ๋ ํ์คํ ๋ฆฌ์ ์๋ ์กฐ๊ฐ์ด ๋์ค์ง ์์ผ๋ฉด ์ฃผ์ด์ง ํ์๋งํผ ๋ค์ "์ฃผ์ฌ์๋ฅผ ๋์ง๋ค". TGM1์ 4 ๋ฒ ์๋ํ๋ค; ์ดํ ๊ฒ์๋ค์ด ์ฌ์ฉํ๋ TGM ๋๋๋ง์ด์ ๋ 6 ๋ฒ ์๋ํ๋ค.
| { | |
| /* home */ | |
| "\UF729" = "moveToBeginningOfLine:"; | |
| "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; | |
| /* end */ | |
| "\UF72B" = "moveToEndOfLine:"; | |
| "$\UF72B" = "moveToEndOfLineAndModifySelection:"; | |
| /* page up */ | |
| "\UF72C" = "pageUp:"; | |
| /* page down */ |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) | |
| #define clearConsole system("cls") | |
| #define get_char _getch() | |
| #include <conio.h> | |
| #include <time.h> | |
| #include <windows.h> |
| [user] | |
| name = JongChan Choi | |
| email = [email protected] | |
| [core] | |
| precomposeunicode = true | |
| [color] | |
| ui = always |
| /* | |
| code | |
| { | |
| char: string, | |
| cho: number, | |
| jung: number, | |
| jong: number, | |
| eliminate: boolean | |
| } | |
| */ |
