Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagi-Rastar committed Sep 23, 2024
1 parent cfe6593 commit c1569c9
Show file tree
Hide file tree
Showing 283 changed files with 26,905 additions and 126,581 deletions.
2 changes: 1 addition & 1 deletion .obsidian/app.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"attachmentFolderPath": "./C语言八股",
"attachmentFolderPath": "./240918-C语言八股",
"newLinkFormat": "relative",
"useMarkdownLinks": true
}
14 changes: 1 addition & 13 deletions .obsidian/plugins/surfing/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,7 @@
],
"defaultFilterType": "menu"
},
"treeData": [
{
"id": "618432091b6081c6",
"parent": 0,
"droppable": true,
"text": "CVTE个人中心",
"data": {
"fileType": "site",
"fileSize": "",
"icon": {}
}
}
],
"treeData": [],
"enableHtmlPreview": true,
"supportLivePreviewInlineUrl": false,
"enableTreeView": true
Expand Down
105 changes: 59 additions & 46 deletions .obsidian/workspace.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"env": {
"PYTHONPATH": "C:\\msys64\\mingw64\\lib\\python3.11\\lib-dynload"
}
}
]
}
Binary file added __pycache__/mymacros.cpython-39.pyc
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/_CS/240716-内存管理.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 240716-内存管理

1 change: 1 addition & 0 deletions docs/_CS/240829-python操作串口.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 240829-python 操作串口
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# 语法特性
# 240905-语法特性

## 1 240905-复合字面量

Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# C 语言八股
---
tags:
- c
- 八股
- c语言
- 秋招
---

# 240918-C 语言八股



> [参考 1](https://blog.csdn.net/qq_43706223/article/details/133301198)
> [参考 2](https://blog.csdn.net/weixin_50591371/article/details/141286333?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-2-141286333-blog-133301198.235%5Ev43%5Econtrol&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-2-141286333-blog-133301198.235%5Ev43%5Econtrol&utm_relevant_index=5)
Expand Down Expand Up @@ -669,4 +679,21 @@ int length = strlen (mystrcpy (str, "Hello World"));
实现思路:计算地址偏移量,从而得出 val 的类型数据大小。
## 12 刷题
![](C语言八股/image-20240918182242548.png)
![](C语言八股/image-20240918182229739.png)
本题选 B。考察对指针的理解。首先明确:指针变量加 1,即向后移动 1 个位置表示指针变量指向下一个数据元素的首地址。而不是在原地址基础上加 1。下面这句代码中,相当于传入 point 函数的参数是数组第 2 个元素 `c[1]` 的首地址。 `point (p+1);` 因此在函数中: `*p=p[2];` `p[2]` 是相对于传入的元素向后移动了两个数据元素的位置,因此这个 `p[2]` 实际是数组中的 `c[3]` 。所以在这里函数的作用是将数组 c 的第4个元素的值赋值给数组的第2个元素。所以数组变为1,4,3,4,5。下面设法将数组的数据遍历输出即可。 `*p++ ` 的作用是先取 p 指向的值,再将指针向后移动一个数据元素。因此下列代码可以将数组中的数据遍历输出。 ` for(;p<c+5;) printf(“%d”,*p++); ` 综上,本题选 B。
![](C语言八股/image-20240918182444530.png)
![](C语言八股/image-20240918183053871.png)
设每行有n个元素,初始地址为x; 则:4n+4=140-x; 9n+9=21c-x;相减得 5n+5=dc转换为十进制为220,故2n+2=88,转换为十六进制为58,21c-58=1c4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# 240603-韦根协议 Wiegand


韦根协议是一种数据传输协议,常常应用在门禁控制系统中,实现读卡器和控制器之间的通信。

## 物理层
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 240820-SolidWorks开螺纹孔

>参考博客: https://blog.csdn.net/haigear/article/details/111504639
开孔向导选择螺纹孔
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# 概述

# ESP32项目汇总

## 1 蓝牙WIFI双模门禁控制器

Expand Down
File renamed without changes.
File renamed without changes.
79 changes: 79 additions & 0 deletions docs/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
- '2024':
- '2024-09-18':
- newpage:
text: ' [ CS ] > C语言八股'
href: /_CS/240918-C语言八股
- '2024-09-05':
- newpage:
text: ' [ Embedded ] > 更新storage以及mqtt模块部分,逐步实现私有json协议'
href: /_Embedded/240905-更新storage以及mqtt模块部分,逐步实现私有json协议
- newpage:
text: ' [ CS ] > 语法特性'
href: /_CS/240905-语法特性
- '2024-08-30':
- newpage:
text: ' [ Embedded ] > 缺陷检测光源控制器开发笔记'
href: /_Embedded/240830-缺陷检测光源控制器开发笔记
- newpage:
text: ' [ Embedded ] > 各种通用串口总线标准'
href: /_Embedded/240830-各种通用串口总线标准
- '2024-08-29':
- newpage:
text: ' [ CS ] > python操作串口'
href: /_CS/240829-python操作串口
- '2024-08-23':
- newpage:
text: ' [ Web ] > HTTPS与OpenSSL'
href: /_Web/240823-HTTPS与OpenSSL
- '2024-08-22':
- newpage:
text: ' [ Embedded ] > ESP32分区表及OTA'
href: /_Embedded/240822-ESP32分区表及OTA
- '2024-08-20':
- newpage:
text: ' [ Embedded ] > SolidWorks开螺纹孔'
href: /_Embedded/240820-SolidWorks开螺纹孔
- '2024-08-18':
- newpage:
text: ' [ Embedded ] > 蓝牙配网以及softAP方式配网探索'
href: /_Embedded/240818-蓝牙配网以及softAP方式配网探索
- '2024-08-14':
- newpage:
text: ' [ Embedded ] > CubeMX+FreeRTOS开发笔记'
href: /_Embedded/240814-CubeMX+FreeRTOS开发笔记
- '2024-07-19':
- newpage:
text: ' [ Embedded ] > LEDPWM及常用指示函数封装'
href: /_Embedded/240719-LEDPWM及常用指示函数封装
- '2024-07-16':
- newpage:
text: ' [ CS ] > 内存管理'
href: /_CS/240716-内存管理
- '2024-06-26':
- newpage:
text: ' [ Embedded ] > BM8563 驱动移植,IDF-I2C 笔记'
href: /_Embedded/240626-BM8563 驱动移植,IDF-I2C 笔记
- '2024-06-25':
- newpage:
text: ' [ Embedded ] > 卡关系存储设计'
href: /_Embedded/240625-卡关系存储设计
- '2024-06-19':
- newpage:
text: ' [ Embedded ] > 蓝牙开发'
href: /_Embedded/240619-蓝牙开发
- '2024-06-18':
- newpage:
text: ' [ Embedded ] > SNTP 获取时间、AES 加密'
href: /_Embedded/240618-SNTP 获取时间、AES 加密
- '2024-06-17':
- newpage:
text: ' [ Embedded ] > IDF 的事件循环,及 wifi 运行流程'
href: /_Embedded/240617-IDF 的事件循环,及 wifi 运行流程
- '2024-06-15':
- newpage:
text: ' [ Embedded ] > smartconfig配网'
href: /_Embedded/240615-smartconfig配网
- '2024-06-03':
- newpage:
text: ' [ Embedded ] > 韦根协议Wiegand'
href: /_Embedded/240603-韦根协议Wiegand
5 changes: 0 additions & 5 deletions docs/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
--md-code-font: "JetBrains Mono", "Noto Serif SC";
}

.md-content {
max-width: 800px;
/* 或你希望的任何宽度 */
margin: auto;
}

.md-typeset strong {
color: var(--md-typeset-a-color);
Expand Down
75 changes: 8 additions & 67 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,83 +3,24 @@ hide:
- navigation
- toc
icon: material/home
render_macros: true
changelog: true
---

# :material-home: 欢迎

用于存储各类感兴趣的、 以及日常开发的技术文档
欢迎来到我的个人笔记库,这里旨在妥善管理我平日里所积累的各类技术相关笔记、参考文档以及需要反复查阅的内容

旨在妥善管理平日所积累的各类技术相关笔记、参考文档等需要反复查阅的内容。

??? note "MKDocs速查"
- `mkdocs new [dir-name]` - 创建一个新项目
- `mkdocs serve` - 本地调试web界面
- `mkdocs build` - 构建项目
- `mkdocs -h` - 帮助
笔记库会较为杂乱,不定期进行更新与整理,大致分为三个大类——CS、Embedded、Web。

各种小类将会以Tag的形式进行标注,方便查找。

<div id="grid-cards-container" class="grid cards" markdown>
<!-- JavaScript will insert cards here -->
{{m generate_grid_cards('docs') m}}
</div>

<script>
document.addEventListener("DOMContentLoaded", function() {
const container = document.getElementById('grid-cards-container');

// 假设你有一个API可以返回目录结构
fetch('/api/get-directory-structure')
.then(response => response.json())
.then(data => {
data.forEach(category => {
const card = `
- :octicons-dot-16:{ .lg .middle } [__${category.name}__](${category.link})
---
偏向实际开发的分类
> “${category.name}”:描述...
`;
container.innerHTML += card;
});
})
.catch(error => console.error('Error fetching directory structure:', error));
});
</script>

<!--
<div class="grid cards" markdown>
- :simple-formspree:{ .lg .middle } [__平台__](平台/index.md)
---
偏向实际开发的分类
> “平台”:ARM/MCU/x86平台…
- :simple-opensourcehardware:{ .lg .middle } [__硬件__](硬件/index.md)
---
偏向理论知识、硬件模块参考的分类
> “硬件”:基础理论/电路模块/机械/材料…
- :simple-gnubash:{ .lg .middle } [__软件__](软件/index.md)
---
偏向软件知识的分类
> “软件”:数据结构/嵌软/Linux/WEB/AI/语言…
<!--
- :simple-gnubash:{ .lg .middle } [__个人主页__](https://sagi-rastar.github.io/about/)
---
{{m generate_changelog_yaml() m}}

个人主页主要用来存放碎碎念
{{ 2024 }}

> “个人主页”:Blog/图集/关于… -->

19 changes: 0 additions & 19 deletions docs/平台/00-MCU/Debug/240828-Jlink.md

This file was deleted.

Diff not rendered.
Empty file.
24 changes: 0 additions & 24 deletions docs/平台/00-MCU/STM32/test.pu

This file was deleted.

24 changes: 0 additions & 24 deletions docs/平台/00-MCU/index.md

This file was deleted.

Empty file.
2 changes: 0 additions & 2 deletions docs/平台/01-SOC/index.md

This file was deleted.

Loading

0 comments on commit c1569c9

Please sign in to comment.