Andley_BG4e/cheatsheet.md

351 lines
8.7 KiB
Markdown
Raw Normal View History

2021-08-30 02:26:14 +00:00
## vscode
```json
{
"workbench.startupEditor": "newUntitledFile",
"git.enableSmartCommit": true,
"explorer.confirmDelete": false,
"editor.minimap.enabled": false,
"workbench.colorTheme": "Visual Studio Dark",
"markdown-pdf.breaks": true,
"editor.renderWhitespace": "all",
"markdown.extension.toc.levels": "2..5",
"markdown-pdf.quality": 0,
"markdown-pdf.footerTemplate": "<div style=\"font-size:9px; margin-left:1cm;\"></div>",
"markdown-pdf.headerTemplate": "<div style=\"font-size:9px; margin-left:1cm;\"><span class='title'></span></div> <div style=\"font-size:9px; margin-left:auto; margin-right:1cm;\"><span class='pageNumber'></span>/<span class='totalPages'></span></div>",
"MarkdownPaste.path": "./images/",
"editor.maxTokenizationLineLength": 200000,
"editor.renderControlCharacters": true,
"window.menuBarVisibility": "default",
"workbench.statusBar.visible": true,
"markdown.preview.scrollEditorWithPreview": false,
"markdown.preview.scrollPreviewWithEditor": false,
"workbench.editor.enablePreview": false,
"editor.insertSpaces": false,
"markdown-preview-enhanced.scrollSync": false,
"editor.largeFileOptimizations": false,
"security.workspace.trust.untrustedFiles": "open",
"markdown-preview-enhanced.previewTheme": "github-light.css",
"editormacros": {
"interlinear": {
"type": "multiple",
"args": {
"macros": [
{
"type": "replace",
"args": {
"regex": true,
"replaceAll": true,
"searchPattern": "<rt>(... )([0-9])",
"replacePattern": "\n- <rt>$2"
}
},
{
"type": "replace",
"args": {
"regex": true,
"replaceAll": true,
"searchPattern": "<RUBY><ruby><ruby>καὶ",
"replacePattern": "\n- <RUBY><ruby><ruby>καὶ"
}
},
{
"type": "replace",
"args": {
"regex": true,
"replaceAll": true,
"searchPattern": "<RUBY><ruby><ruby>ἵνα",
"replacePattern": "\n- <RUBY><ruby><ruby>ἵνα"
}
},
{
"type": "replace",
"args": {
"regex": true,
"replaceAll": true,
"searchPattern": "<RUBY><ruby><ruby>ὅτι",
"replacePattern": "\n- <RUBY><ruby><ruby>ὅτι"
}
},
{
"type": "replace",
"args": {
"regex": true,
"replaceAll": true,
"searchPattern": "<RUBY><ruby><ruby>ἐὰν",
"replacePattern": "\n- <RUBY><ruby><ruby>ἐὰν"
}
},
{
"type": "replace",
"args": {
"regex": true,
"replaceAll": true,
"searchPattern": "<RUBY><ruby><ruby>ὡς",
"replacePattern": "\n- <RUBY><ruby><ruby>ὡς"
}
},
{
"type": "replace",
"args": {
"regex": true,
"replaceAll": true,
"searchPattern": "<RUBY><ruby><ruby>ἀλλ᾽",
"replacePattern": "\n- <RUBY><ruby><ruby>ἀλλ᾽"
}
}
]
}
}
}
}
```
2021-02-17 03:12:13 +00:00
---
2021-08-30 02:26:14 +00:00
## puppeteer
2021-02-17 03:12:13 +00:00
puppeteer:
displayHeaderFooter: true
printBackground: true
margin: {
top: "2cm",
right: "2cm",
bottom: "2cm",
left: "2cm"
}
2021-08-30 02:26:14 +00:00
2021-02-17 03:12:13 +00:00
---
2021-08-30 02:26:14 +00:00
## html
2021-03-11 10:16:39 +00:00
<div dir="rtl">
2021-08-02 00:03:00 +00:00
שֹׁ֥חַד לָֽקְחוּ־בָ֖ךְ לְמַ֣עַן שְׁפָךְ־דָּ֑ם נֶ֧שֶׁךְ וְתַרְבִּ֣ית לָקַ֗חַתְּ וַתְּבַצְּעִ֤י רֵעַ֙יִךְ֙ בַּעֹ֔שֶׁק וְאֹתִ֣י שָׁכַ֔חַתְּ נְאֻ֖ם אֲדֹנָ֥י יְהוִֽה׃
</div>
2021-03-11 10:16:39 +00:00
<div dir="ltr">
sdcsdcdsc 6
</div>
2021-02-17 03:12:13 +00:00
2021-08-30 02:26:14 +00:00
<div style="page-break-after: always;"></div>
<div style='text-align: left;'>靠左對齊</div>
<div style='text-align: right;'>
- 靠右對齊
- dscdscdsc
</div>
<p style="text-align:left;">靠左對齊<span style="float:right;">靠右對齊</span></p>
---
## Markdown
2021-02-17 03:12:13 +00:00
# 標題 1
## level 2
### level 3
2021-09-12 07:33:50 +00:00
### 4
2021-02-17 03:12:13 +00:00
##### 5
###### 6
[TOC]
2021-09-13 01:06:26 +00:00
<strong>粗體</strong>
<em>斜體</em>
__<em>斜粗體</em>__
2021-02-17 03:12:13 +00:00
==hight light==
<mark>hight light</mark>
---
`code`
2021-05-02 00:19:31 +00:00
2021-02-17 03:12:13 +00:00
---
### px ⇔ pt (Windows)
windows default = 96 DPI
72 pt = 1 inch = 96 px
Points|Pixels
---|---
9pt|12px
10pt|13px
10.5pt|14px
11pt|15px
12pt|16px
13pt|17px
14pt|19px
16pt|22px
18pt|24px
20pt|26px
22pt|29px
24pt|32px
26pt|35px
28pt|37px
30pt|40px
### 引用
> 文字下標<sub>a</sub>
>> 雙重引用上標<sup>b</sup>
---
## 註腳
本文帶註腳<sup id="a1">[1](#%5Ea344fd)</sup>
註腳[^1]
The PDF link should work[^3]
## References
[^1]: But right now I think they are just colored pieces of text
[^2]: I've only seen this kind of feature work in PDFs created via Acrobat Reader.
[^3]: Should it work? I think yes[^1], unless it needs something proprietary to work[^2]
## 連結
[[
2021-02-18 22:11:51 +00:00
[其他文章連結](IGNT/IGNT-01.md)IGNT/01.md
2021-02-17 03:12:13 +00:00
2021-02-18 22:11:51 +00:00
[其他文章內的段落](IGNT/IGNT-01.md#11-%E4%B8%89%E5%80%8B%E5%8B%95%E8%A9%9E%E8%A7%80%E9%BB%9E-The-Three-Verbal-Aspects)1.1 三個動詞觀點 (The Three Verbal Aspects)
2021-02-17 03:12:13 +00:00
[本文內的段落](#bottom)bottom
[qq](#%5E88f4c1)
## 表格
| Markdown Engine | Align Center | Align right |
| :--------------------------- | :----------: | ----------: |
2021-09-13 01:06:26 +00:00
| <em>Still</em> | `renders` | <strong>nicely</strong> |
2021-02-17 03:12:13 +00:00
| 1 | 2 | 3 |
| <li>item1</li><li>item2</li> | 5 | 6 |
## 清單
1. 大點自動編號 (同一段落內)
1. 小點
1. 小小點
1. ssd
1. sddd
1. 小小點
2. sdscsd
2. 小點
3. sdcsdcsd
1. 大點自動編號 (同一段落內)
- 大點
- 小點
- 小小點
- sss
- 小小點
- 小點
- 大點
----
## 可折疊區塊
<details>
2021-09-16 22:47:51 +00:00
<summary>top-level 摘要</summary>
A list
- aaaa
- <details><summary>小摘要 summary</summary>
sdcsd ccsdcsc sdcsd</details>
- Another list item
2021-02-17 03:12:13 +00:00
</details>
------
## 註腳
<sup id="f1">1</sup> 註腳內容 [](#a1) 05793f ^a344fd
2021-07-30 11:31:50 +00:00
- [HOME](README.md)
- [回目錄](README.md)
2021-02-17 03:12:13 +00:00
## vscode markdown-to-pdf
```
---
puppeteer:
landscape: false
format: "A4"
displayHeaderFooter: true
margin: {
top: "1.5cm", bottom: "1.5cm", left: "1.5cm", right: "1.5cm"}
headerTemplate: "<div style='font-size: 9px; margin-left: 1cm;'>中台神學院</div> <div style='font-size: 9px; margin-left: auto;'> <b><span class='title'></span></b></div> <div style='font-size: 9px; margin-left: auto; margin-right: 1cm;'> <span class='date'></span></div>"
footerTemplate: "<div style='font-size: 9px; margin-left:auto; margin-right:1cm;'> <span class='pageNumber'></span> / <span class='totalPages'></span></div>"
printBackground: true
---
```
# GitLab Extension
A footnote reference tag looks like this: [^1]
This reference tag is a mix of letters and numbers. [^footnote-42]
## mermaid diagrams
```mermaid
graph TB
SubGraph1 --> SubGraph1Flow
subgraph "SubGraph 1 Flow"
SubGraph1Flow(SubNode 1)
SubGraph1Flow -- Choice1 --> DoChoice1
SubGraph1Flow -- Choice2 --> DoChoice2
end
subgraph "Main Graph"
Node1[Node 1] --> Node2[Node 2]
Node2 --> SubGraph1[Jump to SubGraph1]
SubGraph1 --> FinalThing[Final Thing]
end
```
```mermaid
gantt
title Adding GANTT diagram to mermaid
section 掃羅
膏抹 (1Sa 9): des1, 2014-01-06,2034-01-08
Active task:des2, 2024-01-09, 2034-01-08
Future task:des3, after des2, 100w
Future task2:des4, after des3, 50w
section 大衛
膏抹 (1Sa 9): des1, 2014-01-06,2034-01-08
Active task:des2, 2024-01-09, 2034-01-08
Future task:des3, after des2, 100w
Future task2:des4, after des3, 50w
```
[^1]: This is the text inside a footnote.
[^footnote-42]: This is another footnote.
## bottom
^88f4c1