vault backup: 2026-04-15 20:21:46

This commit is contained in:
2026-04-15 20:21:46 +08:00
parent ad0d9d874b
commit 985766078b
29 changed files with 753 additions and 732 deletions

View File

@@ -113,7 +113,7 @@
"library2": {
"type": "excalidrawlib",
"version": 2,
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.20.6",
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.22.0",
"libraryItems": [
{
"id": "he-s7yNp1I7DIxUPGw9zL",

View File

@@ -1,25 +1,22 @@
{
"main": {
"id": "5324373015726ba8",
"id": "8991b07ab8f0472d",
"type": "split",
"children": [
{
"id": "4509724f8bf84da7",
"id": "4e4eb7258fdc6262",
"type": "tabs",
"children": [
{
"id": "e7a7b303c61786dc",
"id": "0a3de9047665030d",
"type": "leaf",
"state": {
"type": "markdown",
"type": "excalidraw",
"state": {
"file": "YueQian/相关网站.md",
"mode": "preview",
"source": false,
"backlinks": false
"file": "Excalidraw/Drawing 20260122.md"
},
"icon": "lucide-file",
"title": "相关网站"
"icon": "excalidraw-icon",
"title": "Drawing 20260122"
}
}
]
@@ -28,28 +25,29 @@
"direction": "vertical"
},
"left": {
"id": "05636c41c23405f7",
"id": "de5cc35e02f95fe7",
"type": "split",
"children": [
{
"id": "e47a5f841946ee99",
"id": "b420879b7a56f464",
"type": "tabs",
"dimension": 52.602436323366554,
"children": [
{
"id": "fa6bce4b177ee38f",
"id": "b1cf03bb19fff71c",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical",
"autoReveal": false
"autoReveal": true
},
"icon": "lucide-folder-closed",
"title": "文件列表"
}
},
{
"id": "a00d4ceb9fb0f36b",
"id": "dace5c7dcbe1070a",
"type": "leaf",
"state": {
"type": "search",
@@ -66,7 +64,7 @@
}
},
{
"id": "aec8824d72931057",
"id": "dc5f3ba5f76a37c0",
"type": "leaf",
"state": {
"type": "bookmarks",
@@ -76,67 +74,39 @@
}
}
]
}
],
"direction": "horizontal",
"width": 300
},
"right": {
"id": "6990f110022dd527",
"type": "split",
"children": [
{
"id": "6e31f7592a8084ad",
"id": "383cdf8445d918d1",
"type": "tabs",
"dimension": 47.39756367663344,
"children": [
{
"id": "b3226c3971177c8f",
"id": "d1e1fbb98edd7d1b",
"type": "leaf",
"state": {
"type": "backlink",
"type": "outline",
"state": {
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "反向链接"
}
},
{
"id": "6d10d7941f672a21",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "出链"
}
},
{
"id": "a4a91549008c9332",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true,
"file": "Excalidraw/Drawing 20260122.md",
"followCursor": true,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-tags",
"title": "标签"
"icon": "lucide-list",
"title": "Drawing 20260122 的大纲"
}
},
{
"id": "d98c8d4ec529e3a1",
"id": "5e9d6a2802bea202",
"type": "leaf",
"state": {
"type": "graph",
"state": {},
"icon": "lucide-git-fork",
"title": "关系图谱"
}
},
{
"id": "b701810dff40f03d",
"type": "leaf",
"state": {
"type": "all-properties",
@@ -150,59 +120,154 @@
}
},
{
"id": "7d4199487d60b3d7",
"id": "ffdb392eea0ad1e2",
"type": "leaf",
"state": {
"type": "outline",
"type": "tag",
"state": {
"followCursor": false,
"sortOrder": "frequency",
"useHierarchy": true,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-list",
"title": "大纲"
}
},
{
"id": "41d3b7dc137839dd",
"type": "leaf",
"state": {
"type": "chinese-calendar-view",
"state": {},
"icon": "calendar-with-checkmark",
"title": "日历"
"icon": "lucide-tags",
"title": "标签"
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
"width": 251.5
},
"right": {
"id": "226d7e2fa4214659",
"type": "split",
"children": [
{
"id": "5f3133c4b756d282",
"type": "tabs",
"dimension": 42.9637526652452,
"children": [
{
"id": "95f542e77279c08b",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "README.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "README 的反向链接列表"
}
},
{
"id": "8deac5bcdaa32e82",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "出链"
}
},
{
"id": "841e99623ecdb9f4",
"type": "leaf",
"pinned": true,
"state": {
"type": "chinese-calendar-view",
"state": {},
"pinned": true,
"icon": "calendar-with-checkmark",
"title": "日历"
}
},
{
"id": "5e96455aab22a229",
"type": "leaf",
"state": {
"type": "git-view",
"state": {},
"icon": "git-pull-request",
"title": "源代码管理"
}
}
],
"currentTab": 2
},
{
"id": "bf1e7d1a52b4651c",
"type": "tabs",
"dimension": 57.0362473347548,
"children": [
{
"id": "07d3867b48c266c6",
"type": "leaf",
"state": {
"type": "custom-frames-滴答",
"state": {},
"icon": "lucide-clipboard-list",
"title": "滴答"
}
}
]
}
],
"direction": "horizontal",
"width": 336.5
},
"left-ribbon": {
"hiddenItems": {
"switcher:打开快速切换": false,
"graph:查看关系图谱": false,
"canvas:新建白板": false,
"command-palette:打开命令面板": false,
"workspaces:管理工作区布局": false,
"bases:新建数据库": false,
"pdf-plus:PDF++: 切换自动复制": false,
"pdf-plus:PDF++: 切换自动对焦": false,
"pdf-plus:PDF++: 切换自动粘贴": false,
"obsidian-excalidraw-plugin:新建绘图文件": false,
"obsidian-git:Open Git source control": false,
"homepage:Open homepage": false,
"templater-obsidian:Templater": false,
"obsidian-livesync:P2P Replicator": false,
"obsidian-livesync:Replicate": false,
"obsidian-livesync:Show Log": false
"obsidian-livesync:Show Log": false,
"obsidian-livesync:显示自定义同步": false,
"graph:查看关系图谱": false,
"switcher:打开快速切换": false,
"command-palette:打开命令面板": false,
"workspaces:管理工作区布局": false,
"obsidian-excalidraw-plugin:新建绘图文件": false,
"canvas:新建白板": false,
"bases:新建数据库": false,
"templater-obsidian:Templater": false,
"pdf-plus:PDF++: 切换自动粘贴": false,
"pdf-plus:PDF++: 切换自动对焦": false,
"pdf-plus:PDF++: 切换自动复制": false
}
},
"active": "e7a7b303c61786dc",
"active": "0a3de9047665030d",
"lastOpenFiles": [
"README.md",
"YueQian/相关网站.md"
"YueQian/相关网站.md",
"Archive/test.md",
"Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCE40a76a7d230733292ec04717f3f6f254编程规范.pdf",
"Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCE224e5f8aa53ceb5fc88f45d79932378a内存管理测试题.docx",
"Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCEf8f411dd54c53da227a89fc7031bb0c7terminal_colors.h",
"Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCEbbcc325c1c1c565fa7dbe4f13a3f2f9d运算符1.docx",
"Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCE757c8acbaa371ecec8cc55fab8756448运算符测试.docx",
"Collection/YoudaoyunNotes/02C语言/attachments/WEBRESOURCEc2ef36702a6ecf7e2169723a2d147b08结构体测试题.docx",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE0486404994804c5fb05039cff405656astickPicture.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE059f0c15158165303fc0fc990a90a445image.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE048d46d9bb04ceb46b8fe1f3cc419d92image.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE024f291ce6ddbfc8e43e98913881be10image.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE167c2f360443ad063a8c62e5be84ad85image.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE1ec0d881c347298235a88359695ad942image.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE4684b7496c77366547f869ae2b65b6d7image.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE4bb07092451ff2e2b923c57cb023415dimage.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE57ae4c50fdbe52495c1fec865fb6c5fbimage.png",
"Collection/YoudaoyunNotes/02C语言/images/WEBRESOURCE598297eb23f470b37d35d6d3f1451fe9image.png",
"README.md"
]
}

7
Archive/test.md Normal file
View File

@@ -0,0 +1,7 @@
---
tags:
- empty
aliases: empty
日期: 2026/4/15
---
这是一个测试

View File

@@ -0,0 +1,115 @@
// terminal_colors.h
/**
* @file terminal_colors.h
* @brief ANSI终端颜色和字体样式控制宏定义
* @author 李林峰
* @date 2025-07-22
* @version 1.0
*
* 本文件提供了一套完整的ANSI转义码宏定义用于控制终端文本的颜色、
* 背景色和字体样式。支持标准16色、256色模式下的颜色定义
* 以及各种字体样式(加粗、斜体、下划线等)。
*
* 使用说明:
* 1. 包含本头文件:#include "terminal_colors.h"
* 2. 使用预定义的宏组合颜色和样式
* 3. 每条彩色输出后应使用RESET宏重置终端属性
* 4. 推荐使用PRINT_COLOR系列宏它们会自动处理RESET
*
* 示例:
* printf(RED "红色文本" RESET "\n");
* PRINT_COLOR(BOLD BLUE BG_WHITE, "加粗蓝色文本白色背景");
* PRINT_ERROR("错误消息");
*/
#ifndef TERMINAL_COLORS_H
#define TERMINAL_COLORS_H
// ==================== 基本控制宏 ====================
#define RESET "\033[0m" // 重置所有属性
// ==================== 常规颜色 ====================
#define BLACK "\033[30m"
#define RED "\033[31m"
#define GREEN "\033[32m"
#define YELLOW "\033[33m"
#define BLUE "\033[34m"
#define MAGENTA "\033[35m"
#define CYAN "\033[36m"
#define WHITE "\033[37m"
// ==================== 亮色 ====================
#define BRIGHT_BLACK "\033[90m"
#define BRIGHT_RED "\033[91m"
#define BRIGHT_GREEN "\033[92m"
#define BRIGHT_YELLOW "\033[93m"
#define BRIGHT_BLUE "\033[94m"
#define BRIGHT_MAGENTA "\033[95m"
#define BRIGHT_CYAN "\033[96m"
#define BRIGHT_WHITE "\033[97m"
// ==================== 背景色 ====================
#define BG_BLACK "\033[40m"
#define BG_RED "\033[41m"
#define BG_GREEN "\033[42m"
#define BG_YELLOW "\033[43m"
#define BG_BLUE "\033[44m"
#define BG_MAGENTA "\033[45m"
#define BG_CYAN "\033[46m"
#define BG_WHITE "\033[47m"
// ==================== 亮背景色 ====================
#define BG_BRIGHT_BLACK "\033[100m"
#define BG_BRIGHT_RED "\033[101m"
#define BG_BRIGHT_GREEN "\033[102m"
#define BG_BRIGHT_YELLOW "\033[103m"
#define BG_BRIGHT_BLUE "\033[104m"
#define BG_BRIGHT_MAGENTA "\033[105m"
#define BG_BRIGHT_CYAN "\033[106m"
#define BG_BRIGHT_WHITE "\033[107m"
// ==================== 字体样式 ====================
#define BOLD "\033[1m" // 加粗/高亮
#define DIM "\033[2m" // 暗淡
#define ITALIC "\033[3m" // 斜体
#define UNDERLINE "\033[4m" // 下划线
#define BLINK "\033[5m" // 闪烁
#define REVERSE "\033[7m" // 反显
#define HIDDEN "\033[8m" // 隐藏
#define STRIKETHROUGH "\033[9m" // 删除线
// ==================== 组合宏 ====================
#define ERROR_COLOR BOLD RED
#define WARNING_COLOR BOLD YELLOW
#define SUCCESS_COLOR BOLD GREEN
#define INFO_COLOR BOLD BLUE
#define DEBUG_COLOR BOLD CYAN
#define ERROR_BG BOLD RED BG_WHITE
#define WARNING_BG BOLD YELLOW BG_BLACK
#define SUCCESS_BG BOLD GREEN BG_BLACK
#define INFO_BG BOLD BLUE BG_BLACK
// ==================== 打印宏 ====================
/**
* @brief 打印带颜色的消息(自动换行和重置)
* @param color 颜色/样式组合宏
* @param msg 要打印的消息
*/
#define PRINT_COLOR(color, msg) printf("%s%s" RESET "\n", color, msg)
/**
* @brief 打印带颜色的消息(不换行,自动重置)
* @param color 颜色/样式组合宏
* @param msg 要打印的消息
*/
#define PRINT_COLOR_NR(color, msg) printf("%s%s" RESET, color, msg)
// ==================== 常用消息快捷方式 ====================
#define PRINT_ERROR(msg) PRINT_COLOR(ERROR_COLOR, msg)
#define PRINT_WARNING(msg) PRINT_COLOR(WARNING_COLOR, msg)
#define PRINT_SUCCESS(msg) PRINT_COLOR(SUCCESS_COLOR, msg)
#define PRINT_INFO(msg) PRINT_COLOR(INFO_COLOR, msg)
#define PRINT_DEBUG(msg) PRINT_COLOR(DEBUG_COLOR, msg)
#endif // TERMINAL_COLORS_H

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

File diff suppressed because it is too large Load Diff