Skip to content

Commit

Permalink
update SUMMARY.md, Introduction.md and so on, nearly ok.
Browse files Browse the repository at this point in the history
  • Loading branch information
houhuawei23 committed Dec 29, 2024
1 parent 6211b9a commit 74f2158
Show file tree
Hide file tree
Showing 20 changed files with 164 additions and 62 deletions.
29 changes: 29 additions & 0 deletions ConfigExamples/ConfigExamples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Configuration Examples

- [Configuration Examples](#configuration-examples)
- [`.clang-format`](#clang-format)
- [`.gitignore`](#gitignore)

## `.clang-format`

```yaml
---
Language: Cpp
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments: true
...
```

---

## `.gitignore`

[import](./.gitignore)
9 changes: 9 additions & 0 deletions ConfigExamples/t.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# load_code.py
def load_code(file_path):
with open(file_path, 'r') as file:
return f"```python\n{file.read()}\n```"

if __name__ == "__main__":
code_block = load_code("xx.py")
with open("README.md", 'a') as md_file:
md_file.write("\n" + code_block)
58 changes: 15 additions & 43 deletions Introduction.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,15 @@
# My Notes for nearly Everything

- Learn
- Linux
- Programming
- ReadingNotes
- Network
- Papers
- ConfigExamples
- Git
- Misc


<details> <summary>Learn</summary>

- LearnGPU2CPU-by-GPT
- LearnMLIR
- LearnMocCUDA
- LearnPolygeist
- LearnPolyhedralModel

</details>

<details> <summary>Linux</summary>

- LinuxFamily
- Display
- UserManagement
- InputMethod: Fcitx
- Nautlius: Debian File Explorer

</details>

<details> <summary>Programming</summary>

- CRTP: Compile-Time-Reflection-Programming
</details>

<details> <summary>ConfigExamples</summary>

- `.clang-format`
- `.gitignore`
</details>
# My Notes for nearly Everything, by [hhw](https://github.com/houhuawei23)

- [`Learn`](Learn/Learn.md): Record learning resources, environment configuration, common questions and precautions when learning something or a certain skill
- [`Linux`](Linux/Linux.md): Linux related notes, including Linux distribution, display, user management, input method, etc.
- [`PythonLibs`](PythonLibs)
-
- [`Programming`](Programming/Programming.md): Programming related notes, about design patterns and so on.
- [`ReadingNotes`](ReadingNotes/ReadingNotes.md): Personal reading notes, including books and articles.
- [`Network`](Network/Network.md): Network related notes, including network protocols, network architecture, etc.
- [`Papers`](Papers/Papers.md): Papers I read and want to remember.
- [`ConfigExamples`](ConfigExamples/ConfigExamples.md): Configuration examples for different tools and editors.
- [`Git`](Git): Git related notes, including basic usage, branch management, etc.
- [`Misc`](Misc/Misc.md): Miscellaneous notes, uncategorized notes.

⭐ If you think this repository is helpful to you, please give me a [star](https://github.com/houhuawei23/Notes)! 😚
14 changes: 14 additions & 0 deletions Learn/LearnConda/Conda.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pypi: https://pypi.tuna.tsinghua.edu.cn/simple

https://mirrors.tuna.tsinghua.edu.cn/help/pypi/


anaconda:

https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/


```bash
conda config --set custom_channels.auto https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/

```
3 changes: 3 additions & 0 deletions Learn/LearnJinJia2/Jinjia2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Jinjia2

[include](./jinjia.py)
Empty file added Learn/LearnMocCUDA/MocCUDA.md
Empty file.
Empty file added Linux/Linux.md
Empty file.
Empty file.
4 changes: 1 addition & 3 deletions Misc/Bochs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Bochs
---

欢迎来到Bochs IA-32仿真器项目

Bochs是一个用C++编写的高度可移植的开源`IA-32(x86)PC仿真器`,可以在大多数流行的平台上运行。它包括对英特尔x86 CPU、普通I/O设备和自定义BIOS的仿真。Bochs可以编译模拟许多不同的x86 CPU,从早期的386到最新的x86-64英特尔和AMD处理器,甚至可能还没有进入市场。
Expand All @@ -16,9 +16,7 @@ Bochs是一个**仿真器**(emulator)--不是**虚拟化软件**(virtualiz
**Bochs的仿真提供了一个可控的、精确的执行环境,但代价是速度/性能。**这在某些情况下可能是有利的,例如:

- 在开发操作系统或引导程序时

- 当处理非常老的、关键任务的软件时

- 当对系统级代码进行逆向工程时


Expand Down
14 changes: 0 additions & 14 deletions Misc/Conda.md

This file was deleted.

File renamed without changes.
5 changes: 5 additions & 0 deletions Misc/GitBook.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Forget building your own custom docs platform. With GitBook you get beautiful do
- [gitbook-documentation zh](https://chrisniael.gitbooks.io/gitbook-documentation/content/index.html)
- [gitbook-cli](https://github.com/GitbookIO/gitbook-cli)

## Extensions

- [include-codeblock](https://github.com/azu/gitbook-plugin-include-codeblock)
- `[include](test.py)`
## Install

```bash
Expand Down Expand Up @@ -44,3 +48,4 @@ GitBook 约定了下面这些文件的作用:
- GLOSSARY:术语描述的清单

至少需要一个 README 和 SUMMARY 文件来构建一本书。

Empty file added Misc/Misc.md
Empty file.
Empty file added Network/Network.md
Empty file.
Empty file added Papers/Papers.md
Empty file.
Empty file added Programming/Programming.md
Empty file.
Empty file added PythonLibs/PythonLibs.md
Empty file.
File renamed without changes.
62 changes: 61 additions & 1 deletion SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,64 @@
# Notes for Nearly Everything, by hhw

- [Learn](Learn/Learn.md)
- [LearnAIMA](Learn/LearnAIMA/index.md)
- [Learn AIMA](Learn/LearnAIMA/index.md)
- [Learn Conda](Learn/LearnConda/Conda.md)
- [Learn CUDA](Learn/LearnCUDA/CUDA.md)
- [Learn Computer Vision](Learn/LearnCV/ComputerVisoin.md)
- [Learn Docker](Learn/LearnDocker/docker.md)
- [Learn Drones](Learn/LearnDrones/Note.md)
- [Learn GameDev](Learn/LearnGameDev/Note.md)
- [Learn Game Theory](Learn/LearnGameTheory/GameTheory.md)
- [Learn Lalrpop (Rust)](Learn/LearnLalrpop/Lalrpop.md)
- [Learn Pest (Rust)](Learn/LearnPest/pest.md)
- [Learn MLIR](Learn/LearnMLIR/MLIR-LanRef.md)
- [Learn Rust](Learn/LearnRust/Resources.md)
- [Learn ROS](Learn/LearnROS/ROS.md)
- [Learn Personal Website](Learn/PersonalWebsite/Note.md)
- [Learn MocCUDA](Learn/LearnMocCUDA/MocCUDA.md)
- [Learn Polygeist](Learn/LearnPolygeist/Note.md)
- [Learn Polyhedral Compilation](Learn/LearnPolyhedralModel/Note.md)
- [Learn ROCm](Learn/LearnROCm/ROCm.md)
- [Learn JinJia2](Learn/LearnJinJia2/Jinjia2.md)
- [Misc](Misc/Misc.md)
- [Useful Links](Misc/00_Links.md)
- [Github Reps](Misc/01_GitHubReps.md)
- [Gitbook](Misc/GitBook.md)
- [Typst](Misc/Typst.md)
- [Markdown](Misc/Markdown.md)
- [VScode](Misc/VScode.md)
- [Bochs](Misc/Bochs.md)
- [Regular Exp](Misc/RegularExp.md)
- [FuzzTesting](Misc/FuzzTesting/FuzzTesting.md)
- [PowerShell](Misc/PowerShell.md)
- [NPM](Misc/NPM.md)
- [Fonts](Misc/Fonts.md)
- [Drawing](Misc/Drawing.md)
- [Flatpack](Misc/Flatpack)
- [Linux](Linux/Linux.md)
- [Display](Linux/Display/Display.md)
- [LinuxFamily](Linux/LinuxFamily/LinuxFamily.md)
- [UserManagement](Linux/UserManagement.md)
- [InputMethod](Linux/InputMethod.md)
- [PrintingDrivers](Linux/PrintingDrivers.md)
- [PythonLibs](PythonLibs/PythonLibs.md)
- [ArgParse](PythonLibs/ArgParse.md)
- [Network](Network/Network.md)
- [Tailscale](Network/Tailscale.md)
- [Cxxxh](Network/Clash.md)
- Git
- [git](Git/git.md)
- [githttps](Git/githttps.md)
- [git-branch](Git/git-branch.md)
- [GitHub](Git/Github.md)
- [Papers](Papers/Papers.md)
- [Attention Is Turing Complete](Papers/AttentionIsTuringComplete.md)
- [Programming](Programming/Programming.md)
- [ConfigExamples](ConfigExamples/ConfigExamples.md)
- [ReadingNotes](ReadingNotes/ReadingNotes.md)
- [青年在选择职业时的考虑-马克思](ReadingNotes/青年在选择职业时的考虑-马克思-1835.md)
- [研究与学风-张申府-1948](ReadingNotes/研究与学风-张申府-1948.md)
- [论青年修养-张申府-1946](ReadingNotes/论青年修养-张申府-1946.md)
- [论青年的修养-张闻天-1938](ReadingNotes/论青年的修养-张闻天-1938.md)
- [计算之魂](ReadingNotes/计算之魂-吴军/index.md)
- [Mao](ReadingNotes/语录-毛泽东.md)
28 changes: 27 additions & 1 deletion book.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
{
"plugins": ["-search", "katex-pp", "code"],
"description": "This is such a great book!",
"language": "cn",
"structure": {
"readme": "Introduction.md"
},
"plugins": [
"include-codeblock",
"-lunr",
"-search",
"search-pro",
"expandable-chapters",
"code",
"chapter-fold",
"splitter",
"github",
"-highlight",
"prism",
"prism-themes",
"theme-comscore",
"katex-pp"
],
"pluginsConfig": {
"github": {
"url": "https://github.com/houhuawei23/Notes"
},
"prism": {
"lang": {
"shell": "bash"
},
"css": ["prism-themes/themes/prism-synthwave84.css"]
}
}
}

0 comments on commit 74f2158

Please sign in to comment.