Fix a large number of formatting errors

This commit is contained in:
rangersly 2025-05-10 09:56:15 +08:00
parent cf4b2cb324
commit a511eff1cd
29 changed files with 108 additions and 131 deletions

View File

@ -1,10 +1,10 @@
# 电子硬件参数 # 电子硬件参数
## 目录 ## index
- [电阻](#电阻) - [电阻](#)
- [电容](#电容) - [电容](#)
- [电感](#电感) - [电感](#)
- [微控制器](#微控制器) - [微控制器](#)
- [逻辑器件](#逻辑器件) - [逻辑器件](#)
- [晶体管](#晶体管) - [晶体管](#)

View File

@ -1,9 +1,9 @@
# website # website
+ [game](# game) + [game](#game)
+ [live](# live) + [live](#live)
+ [program](# program) + [program](#program)
+ [study](# study) + [study](#study)
+ [tool](# tool) + [tool](#tool)
## game ## game
- indienova.com # 冰与火之舞 - indienova.com # 冰与火之舞

View File

@ -10,7 +10,7 @@
+ `-u` 升级已有安装包 + `-u` 升级已有安装包
+ `-R` 卸载 + `-R` 卸载
+ `-Q` 查看已安装 + `-Q` 查看已安装
> 示例 > example
+ `pacman -Sy` 同步数据库 + `pacman -Sy` 同步数据库
+ `pacman -S <package_name>` 安装软件包 + `pacman -S <package_name>` 安装软件包
+ `pacman -Syu` 更新系统 + `pacman -Syu` 更新系统

View File

@ -5,12 +5,12 @@
- [修改控制台字体](#修改控制台字体) - [修改控制台字体](#修改控制台字体)
- [验证引导](#验证引导) - [验证引导](#验证引导)
- [验证网络和更改系统时间](#验证网络和更改系统时间) - [验证网络和更改系统时间](#验证网络和更改系统时间)
- [硬盘分区](#硬盘分区) - [硬盘分区](#disk)
- [安装基础软件包](#安装基础软件包) - [安装基础软件包](#安装基础软件包)
- [生成fstab](#生成fstab) - [生成fstab](#fstab)
- [chroot配置](#chroot) - [chroot配置](#chroot)
- [新系统](#新系统) - [新系统](#新系统)
- [换源](#换源) - [换源](#mirrors)
- [普通用户](#普通用户) - [普通用户](#普通用户)
- [KDE](#kde) - [KDE](#kde)
@ -30,7 +30,7 @@
`ip addr` `ip addr`
`timedatectl` `timedatectl`
### 硬盘分区 ### disk
```bash ```bash
parted /dev/sdX # 进入parted交互界面 parted /dev/sdX # 进入parted交互界面
@ -81,7 +81,7 @@ mount --mkdir /dev/sdX1 /mnt/boot
+ alsa-utils # 声卡驱动 + alsa-utils # 声卡驱动
+ 其他固件 + 其他固件
### 生成fstab ### fstab
`genfstab -U /mnt > /mnt/etc/fstab` `genfstab -U /mnt > /mnt/etc/fstab`
@ -113,7 +113,7 @@ reboot
## 新系统 ## 新系统
### 换源 ### mirrors
- `/etc/pacman.d/mirrorlist` - `/etc/pacman.d/mirrorlist`
``` ```
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch

View File

@ -2,7 +2,7 @@
--- ---
## INDEX ## index
- [文件操作](#文件操作) - [文件操作](#文件操作)
- [打包压缩](#打包压缩) - [打包压缩](#打包压缩)
@ -46,7 +46,7 @@
- [objdump](../../program/tool/objdump) - [objdump](../../program/tool/objdump)
- [INDEX](#INDEX) - [index](#index)
--- ---
@ -59,7 +59,7 @@
- [dd](#dd) - [dd](#dd)
- [INDEX](#INDEX) - [index](#index)
--- ---
@ -74,7 +74,7 @@
- [parted](#parted) - [parted](#parted)
- [INDEX](#INDEX) - [index](#index)
--- ---
@ -91,7 +91,7 @@
- [last](#last) : 查看用户登陆记录 - [last](#last) : 查看用户登陆记录
- [INDEX](#INDEX) - [index](#index)
--- ---
@ -110,7 +110,7 @@
- [ulimit](#ulimit) - [ulimit](#ulimit)
- [INDEX](#INDEX) - [index](#index)
--- ---
@ -124,7 +124,7 @@
- [NetworkManager](#networkmanager) - [NetworkManager](#networkmanager)
- [INDEX](#INDEX) - [index](#index)
--- ---
@ -138,14 +138,14 @@
- [编解码工具](#编解码工具) - [编解码工具](#编解码工具)
- [INDEX](#INDEX) - [index](#index)
--- ---
## 其他 ## 其他
- [INDEX](#INDEX) - [index](#index)
--- ---

View File

@ -1,22 +0,0 @@
## 配置dhcp
vim /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
## 手动配置
iface eth0 inet static
address 192.168.0.108
netmask 255.255.255.0
gateway 192.168.0.101
network 192.168.0.108
service network restart //cpwl
2.配置dns
vim /etc/resolv.conf
nameserver 114.114.114.114
nameserver 8.8.8.8
search localdomain

View File

@ -1,8 +1,8 @@
# MY CODE SPECIFICATION # MY CODE SPECIFICATION
## INDEX ## index
- [Naming](# naming) - [Naming](#naming)
- [Code](# code) - [Code](#code)
--- ---

View File

@ -2,8 +2,8 @@
## 目录 ## 目录
- [非修改性算法](#) - [非修改性算法](#)
- [find](#) - [find](#find)
- [conut](#) - [conut](#conut)
- [二分查找](#binary-search) - [二分查找](#binary-search)
- [修改性算法](#) - [修改性算法](#)
- [copy](#) - [copy](#)

View File

@ -1,6 +1,6 @@
# STL 容器 # STL 容器
## 目录 ## index
- [概念](#) - [概念](#)
- [通性](#) - [通性](#)
@ -14,10 +14,10 @@
- [map](#) - [map](#)
- [multimap](#) - [multimap](#)
- [无序容器](#) - [无序容器](#)
- [`unordered_set`](#unordered_set) - [unordered-set](#unordered-set)
- [`unordered_multiset`](#unordered_multiset) - [unordered-multiset](#unordered-multiset)
- [`unordered_map`](#unordered_map) - [unordered-map](#unordered-map)
- [`unordered_multimap`](#unordered_multimap) - [unordered-multimap](#unordered-multimap)
- [预定义函数符](#) - [预定义函数符](#)
## 概念 ## 概念

View File

@ -2,9 +2,9 @@
--- ---
## INDEX ## index
- [C](#C) - [C](#c)
- [输入/输出 stdio](#stdio) - [输入/输出 stdio](#stdio)
- [资源管理和系统交互 stdlib](#stdlib) - [资源管理和系统交互 stdlib](#stdlib)
- [字符串处理 string](#string) - [字符串处理 string](#string)
@ -26,10 +26,10 @@
- [多线程支持(C11) threads](#threads) - [多线程支持(C11) threads](#threads)
- [原子操作(C11) stdatomic](#stdatomic) - [原子操作(C11) stdatomic](#stdatomic)
- [Unicode支持(C11) uchar](#uchar) - [Unicode支持(C11) uchar](#uchar)
- [CPP](#CPP) - [CPP](#cpp)
- [STL](../STL/) - [STL](../STL/)
- [POSIX](#unistd) - [POSIX](#unistd)
- [SELF](#SELF) - [SELF](#self)
- [offsetof](./self/offsetof.h) - [offsetof](./self/offsetof.h)
- [string hash](./self/string_hash.c) - [string hash](./self/string_hash.c)
- [thread pool](./self/thread-pool.cpp) - [thread pool](./self/thread-pool.cpp)

View File

@ -1,3 +1,4 @@
# net
```cpp ```cpp
#include <iostream> #include <iostream>
#include <cstring> #include <cstring>

View File

@ -2,8 +2,8 @@
从系统熵池进行获取 从系统熵池进行获取
## index ## index
- [random-urandom](# random-urandom) - [random-urandom](#random-urandom)
- [note](# note) - [note](#note)
## random-urandom ## random-urandom
/dev/random 和 /dev/urandom 的区别 /dev/random 和 /dev/urandom 的区别

View File

@ -4,7 +4,7 @@
- [访问控制](#访问控制) - [访问控制](#访问控制)
- [作用域运算符](#作用域运算符) - [作用域运算符](#作用域运算符)
- [类的六大特殊成员函数](#类的六大特殊成员函数) - [类的六大特殊成员函数](#类的六大特殊成员函数)
- [RAII](#RAII) - [RAII](#raii)
- [move语义](#move) - [move语义](#move)
- [右值引用](#右值引用) - [右值引用](#右值引用)
- [初始化列表](#初始化列表) - [初始化列表](#初始化列表)
@ -20,7 +20,7 @@
- [虚函数](#virtual) - [虚函数](#virtual)
- [设计理念](#) - [设计理念](#)
- [is a](#) - [is a](#)
- [AbstactBaseClass](#ABC) - [AbstactBaseClass](#abc)
## 访问控制 ## 访问控制
@ -53,7 +53,7 @@ demo& demo::operator = (demo&&); // 移动赋值构造函数
`demo::demo() = delete;`显式声明为禁用 `demo::demo() = delete;`显式声明为禁用
### RAII ### **raii**
在类的构造函数中申请堆内存,在析构函数中释放,这样可以保证类失效时内存被释放 在类的构造函数中申请堆内存,在析构函数中释放,这样可以保证类失效时内存被释放
@ -192,7 +192,7 @@ __保护成员在派生类中的访问性__
## 设计理念 ## 设计理念
### is-a ### is-a
### ABC ### **abc**
即使用[纯虚函数](#virtual)构造的抽象类 即使用[纯虚函数](#virtual)构造的抽象类
无法构建对象,只能用于构造其他派生类 无法构建对象,只能用于构造其他派生类

View File

@ -1,6 +1,6 @@
# 预编译指令 # 预编译指令
## 目录 ## index
- [define](#define) - [define](#define)
- [预定义宏](#预定义宏) - [预定义宏](#预定义宏)
- [defined](#defined) - [defined](#defined)

View File

@ -3,7 +3,7 @@
--- ---
## INDEX ## index
- [字符串库函数](#std-string) - [字符串库函数](#std-string)
- [内存操作标准库函数](#std-mem) - [内存操作标准库函数](#std-mem)

View File

@ -2,17 +2,17 @@
--- ---
## INDEX ## index
- [C](# C) - [C](#c)
- [malloc](# malloc) - [malloc](#malloc)
- [calloc](# calloc) - [calloc](#calloc)
- [realloc](# realloc) - [realloc](#realloc)
- [aligned-alloc](#aligned-alloc) - [aligned-alloc](#aligned-alloc)
- [free](#) : 传入动态分配的指针地址,记得释放完赋NULL - [free](#) : 传入动态分配的指针地址,记得释放完赋NULL
- [CPP](# CPP) - [CPP](#cpp)
- [new](# new) - [new](#new)
- [delete](# delete) - [delete](#delete)
--- ---

View File

@ -1,6 +1,6 @@
# c-cpp function # c-cpp function
## 目录 ## index
- [extern](#extern) - [extern](#extern)
- [noexcept](#noexcept) - [noexcept](#noexcept)
- [重载](#) - [重载](#)

View File

@ -1,24 +1,24 @@
# c with cpp io # c with cpp IO
# INDEX # INDEX
- [标准IO流](#IOstream) - [标准IO流](#iostream)
- [C](#C) - [C](#c)
- [格式化IO](#格式化IO) - [格式化IO](#format-io)
- [字符IO](#charIO) - [字符IO](#char-io)
- [Cstring](#Cstring) - [Cstring](#cstring)
- [C二进制IO](#Cbin) - [C二进制IO](#cbin)
- [C文件操作](#C-FILE) - [C文件操作](#c-file)
- [error](#c-error) - [error](#c-error)
- [cpp stdio](#cpp stdio) - [cpp stdio](#cpp-stdio)
- [cpp fio](#cpp fio) - [cpp fio](#cpp-fio)
- [关闭缓冲区读取](#../linux/ncurses.c) - [关闭缓冲区读取](#../linux/ncurses.c)
- [ANSI](#./ansi.md) - [ANSI](#./ansi.md)
--- ---
## **IOstream** ## **iostream**
+ stdin + stdin
+ stdout + stdout
@ -26,13 +26,13 @@
--- ---
## **C** ## **c**
`#include <stdio.h>` `#include <stdio.h>`
--- ---
### 格式化IO ### **format-io**
- scanf 格式化输入函数 - scanf 格式化输入函数
- printf 格式化输出函数 - printf 格式化输出函数
@ -48,7 +48,7 @@ __控制符__
--- ---
### charIO ### char-io
+ IN + IN
|function prototype |remark | |function prototype |remark |
@ -67,7 +67,7 @@ __控制符__
--- ---
### Cstring ### **cstring**
|function prototype |remark | |function prototype |remark |
|---------------------------------------------------------|--------------------------------| |---------------------------------------------------------|--------------------------------|
@ -76,14 +76,16 @@ __控制符__
--- ---
### Cbin ### cbin
`size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);` `size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);`
+ size 读写的块大小 + size 读写的块大小
+ nmemb 读写的块数量 + nmemb 读写的块数量
`size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);` `size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);`
### C-FILE ---
### c-file
- `FILE *fp` 文件指针 - `FILE *fp` 文件指针
- `FILE *fopen(const char *pathname, const char *mode);` 错误返回NULL - `FILE *fopen(const char *pathname, const char *mode);` 错误返回NULL
@ -133,7 +135,7 @@ __控制符__
--- ---
## cpp stdio ## cpp-stdio
> 头文件 > 头文件
#include <iostream> #include <iostream>
@ -155,7 +157,7 @@ __控制符__
``` ```
________________________________________________ ________________________________________________
## file IO ## cpp-fio
> 头文件 > 头文件
#include <fstream> #include <fstream>

View File

@ -2,12 +2,12 @@
## 目录 ## 目录
- [NULL and nullptr](#NULL-nullptr) - [NULL and nullptr](#null-nullptr)
- [cpp智能指针](#cpp智能指针) - [cpp智能指针](#cpp-pointer)
- [注意事项](#注意事项) - [注意事项](#注意事项)
- [some example](#some-example) - [some example](#some-example)
## NULL-nullptr ## null-nullptr
在C和CPP中,NULL并不相同 在C和CPP中,NULL并不相同
@ -25,7 +25,7 @@
因此cpp中应使用nullptr,否则函数重载中会出现选择错误问题 因此cpp中应使用nullptr,否则函数重载中会出现选择错误问题
## cpp智能指针 ## cpp-pointer
1. `std::unique_ptr` 1. `std::unique_ptr`

View File

@ -1,12 +1,12 @@
# 说明符 # 说明符
## 目录 ## index
- [static](#static) - [static](#static)
- [extern](#extern):引用声明 - [extern](#extern):引用声明
- [mutable](#mutable) - [mutable](#mutable)
- [thread local](#`thread_local`) - [thread local](#thread-local)
- [const](#const) - [const](#const)
-[const with point](# const-with-point) -[const with point](#const-with-point)
- [volatile](#volatile):强制读内存 - [volatile](#volatile):强制读内存
- [restrict](#restrict) : 指示编译器优化指针(C99) - [restrict](#restrict) : 指示编译器优化指针(C99)

View File

@ -1,6 +1,6 @@
# 模板 # 模板
## 目录 ## index
- [函数模板](#) - [函数模板](#)
- [生成](#) - [生成](#)
- [类模板](#) - [类模板](#)

View File

@ -1,12 +1,12 @@
# python基础合集 # python基础合集
## 目录 ## index
- [程序之始](#run) - [程序之始](#run)
- [IO](#IO) - [IO](#io)
- [格式化输出](#) - [格式化输出](#)
- [字符串](#string) - [字符串](#string)
- [DEBUG](#Debug) - [DEBUG](#debug)
- [变量](#) - [变量](#)
- [数值类型](#) - [数值类型](#)
@ -14,7 +14,7 @@
`if __name__ == '__main__'` 判断程序是否在主函数内(区别与模块等) `if __name__ == '__main__'` 判断程序是否在主函数内(区别与模块等)
## IO ## io
`print(values, sep, end)` 值, 分割符, 结尾符 `print(values, sep, end)` 值, 分割符, 结尾符
> `print("hello", sep=',', end='_')` > `print("hello", sep=',', end='_')`
@ -66,7 +66,7 @@ s.swapcase() # 转换大小写
eval('12+3') # 计算值 返回15 eval('12+3') # 计算值 返回15
``` ```
## Debug ## debug
1. pdb 1. pdb
`import pdb; pdb.set_trace()` 程序运行到这行代码时会进入调试模式 `import pdb; pdb.set_trace()` 程序运行到这行代码时会进入调试模式

View File

@ -1,7 +1,7 @@
# docker # docker
是一个开源的应用容器引擎 是一个开源的应用容器引擎
## 目录 ## index
- [核心组件](#) - [核心组件](#)
- [install](#) - [install](#)
- [基本命令](#) - [基本命令](#)

View File

@ -1,11 +1,11 @@
# gcc-g++ 编译器 # gcc-g++ 编译器
## 目录 ## 目录
- [编译选项](#编译选项) - [编译选项](#option)
- [优化等级](# 优化等级) - [优化等级](#level)
- [制作库文件](#制作库文件) - [制作库文件](#make-lib)
## 编译选项 ## **option**
- `g++ -S test.s test.cpp` 编译成汇编文件 - `g++ -S test.s test.cpp` 编译成汇编文件
- `g++ -c test.o test.s` 目标文件 - `g++ -c test.o test.s` 目标文件
- `g++ -o test test.o` 链接 - `g++ -o test test.o` 链接
@ -21,7 +21,7 @@
--- ---
### **优化等级** ### **level**
- **O0** 不进行任何优化 - **O0** 不进行任何优化
- **O1** 基础优化 - **O1** 基础优化
- 删除未使用的变量和函数 - 删除未使用的变量和函数
@ -51,7 +51,7 @@
--- ---
## 制作库文件 ## make-lib
--- ---

View File

@ -2,7 +2,7 @@
使用 -g 生成调试文件,不可以加 -O 选项 使用 -g 生成调试文件,不可以加 -O 选项
## 目录 ## 目录
- [基础使用](#基础使用) - [基础使用](#base)
- [run](#run) - [run](#run)
- [set](#set) - [set](#set)
- [mem](#mem) - [mem](#mem)
@ -10,7 +10,7 @@
- [info](#info) - [info](#info)
- [core](#core) - [core](#core)
## 基础使用 ## base
`l n` 列出源码 `l n` 列出源码
`b n` 在第n行打断点 `b n` 在第n行打断点
`break main if var_name > 10` 满足条件时打断点 `break main if var_name > 10` 满足条件时打断点

View File

@ -1,7 +1,7 @@
# make # make
## 目录 ## 目录
- [参数](#参数) - [参数](#argv)
- [makefile](#makefile) - [makefile](#makefile)
- [变量与赋值](#变量和赋值) - [变量与赋值](#变量和赋值)
- [自动变量](#自动变量) - [自动变量](#自动变量)
@ -25,7 +25,7 @@
--- ---
## **参数** ## **argv**
- `-n` 参数可以打印出make会执行的命令但不真正执行 - `-n` 参数可以打印出make会执行的命令但不真正执行
- `-f <filename>` 指定makefile - `-f <filename>` 指定makefile
- `-i` 忽略错误 - `-i` 忽略错误

View File

@ -1,4 +1,5 @@
objdump # objdump
-f 显示文件头 -f 显示文件头
-h 显示段(section)信息 -h 显示段(section)信息
-x 文件头和信息 -x 文件头和信息

View File

@ -1,5 +0,0 @@
# 正则表达式
## 学习工具
+ https://regexr.com 查询网站
+ regex-vis.com 可视化表达式