Skip to content

Instantly share code, notes, and snippets.

@1c3z
1c3z / agent loop
Created March 10, 2025 05:04 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@1c3z
1c3z / golang http.client 发送不带编码的PATH.md
Created March 2, 2023 07:03
利用 URL.Opaque 来发送不编码的PATH

默认情况下PATH会被编码 URL.Opaque是url.URL类型的一个字段,它表示不透明的URI信息,即scheme之后,#符号之前的部分。在RFC 3986中,URI可以被划分为hierarchical和non-hierarchical两种类型,OpaqueURI属于non-hierarchical类型,它不包含主机名和路径等层级信息。 OpaqueURI通常用于某些特定的URI方案中,例如mailto和data等。在url.URL类型中,如果URI是non-hierarchical类型,则Opaque字段会被设置为URI的scheme之后的部分,例如:

	req, err := http.NewRequest("GET", "http://www.example.com", nil)
	if err != nil {
 fmt.Println(err)
@1c3z
1c3z / cartesianProduct.go
Created February 20, 2023 09:37
计算多个字符串数组的笛卡尔积的函数
func cartesianProduct(vars [][]string) [][]string {
if len(vars) == 0 {
return [][]string{}
}
if len(vars) == 1 {
result := make([][]string, 0, len(vars[0]))
for _, value := range vars[0] {
result = append(result, []string{value})