This file contains 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
function fish_greeting | |
end |
This file contains 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
CompileFlags: | |
// Add: -Wno-unknown-warning-option | |
Remove: [-mpreferred-stack-boundary=3, -mindirect-branch=thunk-extern, -mindirect-branch-register, -fno-allow-store-data-races, -fconserve-stack, -mrecord-mcount, -fmin-function-alignment=16] |
This file contains 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
"*": | |
core: | |
autoHideMenuBar: true | |
disabledPackages: [ | |
"wrap-guide" | |
] | |
editor: | |
showIndentGuide: true | |
showInvisibles: true | |
softWrap: true |
This file contains 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
let EMAIL = { | |
'recipient': '', | |
'subject': '作業繳交驗證碼', | |
'body': '請在作業提交表單填入以下驗證碼:\n' | |
} | |
function getSignature(str){ | |
// second argument is a RSA private key in pem format, which could e generated by $ openssl genrsa | |
let sig = Utilities.computeRsaSha256Signature(str, | |
"-----BEGIN PRIVATE KEY-----\nYOUR_KEY\n-----END PRIVATE KEY-----\n"); |
This file contains 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
/* Concate lists in arr. No dummy head required for the list */ | |
struct list_head *b16sort(struct list_head *arr[]) | |
{ | |
struct list_head *begin = 0, *end = 0, *tmp = 0; | |
int size = 0; | |
for (int i = 0; i < 15; i++) { | |
if (arr[i] != 0) { | |
tmp = arr[i]->prev; | |
if (size != 0) { | |
end->next = arr[i]; |
This file contains 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
let HOMEWORK_NOTE_ID = '' // hackmd note to write to | |
let HACKMD_API_KEY = '' // your hackmd api key | |
let GITHUB_PERSONAL_ACCESS_TOKEN = '' // currently not in use | |
let EMAIL = { | |
'recipient': '', | |
'subject': 'Linux 核心課程: 已收到第 4 次作業的提交', | |
'body': '(本信件是自動產生,請不要回覆)\n請詳閱 https://hackmd.io/@sysprog/linux2024-lab0 的說明,確認 HackMD 筆記的存取權限及內容規範符合預期,若登記成功,應可在 https://hackmd.io/@sysprog/linux2024-homework4 見到你提交的 GitHub/HackMD 超連結。\n\n' | |
} | |
let PUBLISHED_LINKS = []; // kind of ugly but it works |
This file contains 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
let HOMEWORK_NOTE_ID = 'your note id'; | |
let HACKMD_API_KEY = 'your api key'; | |
let EMAIL = { | |
'recipient': '', | |
'subject': 'Thanks for handing in your home work!', | |
'body': '' | |
} | |
let PUBLISHED_LINKS = []; // kind of ugly but it works | |
function setupForm() { |
This file contains 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
let HOMEWORK_NOTE_ID = 'your note id'; | |
let HACKMD_API_KEY = 'your key'; | |
let EMAIL = { | |
'recipient': '', | |
'subject': 'Thanks for handing in your home work!', | |
'body': '' | |
} | |
let PUBLISHED_LINKS = []; // kind of ugly but it works | |
function onOpen(e) { |
This file contains 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
let HOMEWORK_NOTE_ID = 'your note id'; | |
let HACKMD_API_KEY = 'your key'; | |
let EMAIL = { | |
'recipient': '', | |
'subject': 'Thanks for handing in your home work!', | |
'body': '' | |
} | |
function onOpen(e) { | |
let currentForm = FormApp.getActiveForm(); |
This file contains 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
( | |
selected_tab: Reset, | |
command_fg: Rgb(76, 79, 105), //original 198, 208, 245 | |
selection_bg: Rgb(98, 104, 128), | |
selection_fg: Rgb(198, 208, 245), | |
cmdbar_bg: Rgb(230, 233, 239), //original 41, 44, 60 | |
cmdbar_extra_lines_bg: Rgb(230, 233, 239), | |
disabled_fg: Rgb(180, 183, 191), //original 131, 139, 167 | |
diff_line_add: Rgb(166, 209, 137), | |
diff_line_delete: Rgb(231, 130, 132), |
NewerOlder