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
// 快捷键加持 for 中国船舶党校 (https://www.csscdx.com/) | |
document.addEventListener("keydown", (event) => { | |
if (event.key == "1") { | |
$("[value=0]")[0].click() | |
} else if (event.key == "2") { | |
$("[value=1]")[0].click() | |
} else if (event.key == "3") { | |
$("[value=2]")[0].click() | |
} else if (event.key == "4") { | |
$("[value=3]")[0].click() |
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 () { | |
const initWithBody = (body = {}) => { | |
return { | |
"credentials": "include", | |
headers: { | |
"accept": "*/*", | |
"cache-control": "no-cache", | |
"content-type": "application/json", | |
"pragma": "no-cache", | |
"sec-fetch-mode": "cors", |
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
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf |
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
'' Go to "Development Tools > Macro > Visual Basic Editor", select "Insert > | |
'' Module", copy following text in the blank page. Then choose "File > Close | |
'' > Return to PPT", go to "Tools > Macro > Macros", then select AddProcessBar | |
'' and press Execute. | |
Sub AddProgressBar() | |
On Error Resume Next | |
With ActivePresentation | |
sHeight = .PageSetup.SlideHeight - 10 | |
n = 0 |
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
require 'notion-sdk-ruby' | |
class Notion::Block | |
def to_md | |
prefix = '' | |
suffix = '' | |
case type | |
when 'paragraph' | |
# do nothing |