Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
XmchxUp committed May 21, 2024
1 parent f7f6a4f commit 1dba9f3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
2 changes: 0 additions & 2 deletions 2024/05/cs61cpu.md
Original file line number Diff line number Diff line change
@@ -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)
36 changes: 36 additions & 0 deletions 2024/05/rc_easeprobe.md
Original file line number Diff line number Diff line change
@@ -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 多对多的关系


10 changes: 10 additions & 0 deletions 2024/05/wiki_start_to_wiki_end.md
Original file line number Diff line number Diff line change
@@ -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数。
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1dba9f3

Please sign in to comment.