diff --git a/2024/05/cs61cpu.md b/2024/05/cs61cpu.md index 8599455..c14ac7e 100644 --- a/2024/05/cs61cpu.md +++ b/2024/05/cs61cpu.md @@ -1,5 +1,3 @@ -## 如何手搓一个 CPU? - 没错,你想要的都在这里,Lectures 12-14 涉及内容 [Project 3 | CS 61C Spring 2022](https://inst.eecs.berkeley.edu/~cs61c/sp22/projects/proj3/) [cs61c-sp22/projects/sp22-proj3-starter at main · cs-learning-every-day/cs61c-sp22 · GitHub](https://github.com/cs-learning-every-day/cs61c-sp22/tree/main/projects/sp22-proj3-starter) diff --git a/2024/05/rc_easeprobe.md b/2024/05/rc_easeprobe.md new file mode 100644 index 0000000..04a29d4 --- /dev/null +++ b/2024/05/rc_easeprobe.md @@ -0,0 +1,36 @@ + +[# EaseProbe](https://github.com/megaease/easeprobe) +EaseProbe is a simple, standalone, and lightweight tool that can do health/status checking, written in Go. + +## Testing + +- [Monkey](https://github.com/bouk/monkey) 动态的改变函数,建议自在测试环境中使用 +比如对json.MarshlIndent函数修改 + +```go + monkey.Patch(json.MarshalIndent, func(v interface{}, prefix, indent string) ([]byte, error) { + return nil, fmt.Errorf("error") + }) +``` + +- [testify](https://github.com/stretchr/testify) + +## Tool + +[# Go JSON Schema Reflection](https://github.com/invopop/jsonschema) + +[yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor](https://github.com/mikefarah/yq) + +[Chi](https://github.com/go-chi/chi) lightweight, idiomatic and composable router for building Go HTTP services + +## Config + +提供本地,在线文件配置文件,并且支持提供目录多个配置文件合并(yq) + +## Abstraction + +Probers -> Channel -> Notification + +Channel维护 Probers和Notification 多对多的关系 + + diff --git a/2024/05/wiki_start_to_wiki_end.md b/2024/05/wiki_start_to_wiki_end.md new file mode 100644 index 0000000..5290022 --- /dev/null +++ b/2024/05/wiki_start_to_wiki_end.md @@ -0,0 +1,10 @@ +[Code](https://github.com/cs-learning-every-day/CS106L/tree/main/cs106L-assignment1) + +## Problem + +一个start_wiki_page中点击wiki内部连接最终到达想要的end_wiki_page中。 + +## 思想 + +BFS,优先遍历最相关的网站。 +相关性可以简单定义为:start_wiki_page中的所有link,和end_wiki_page中的所有link,共有的link数。 diff --git a/README.md b/README.md index b5358d5..ecd2b2a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ The best thing to do is have fun. - [Hobby Projects](/hobby_projects.md) - [Kata](/kata.md) - **2024-05** + - [RC-EaseProbe 一个优雅的状态检测工具,支持多种协议和通知平台](/2024/05/rc_easeprobe.md) + - [从一个Wiki地址如何一步一步的到另一个Wiki地址](/2024/05/wiki_start_to_wiki_end.md) - [如何手搓一个 CPU?](/2024/05/cs61cpu.md) - [如何搭建新个网段,并配有一台机器挂载](/2024/05/new_nic_with_hub_switch.md) - [RC-incubator-answer 论坛](/2024/05/incubator-answer.md)