Skip to content

Instantly share code, notes, and snippets.

View juzhiyuan's full-sized avatar
👋
Connect me via LinkedIn

Zhi Yuan Ju (琚致远) juzhiyuan

👋
Connect me via LinkedIn
View GitHub Profile
@juzhiyuan
juzhiyuan / agent loop
Created January 4, 2026 05:45 — 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
apiVersion: apisix.apache.org/v2beta3
kind: ApisixRoute
metadata:
name: httpserver-route
spec:
http:
- name: rule1
match:
paths:
- /anything/*
import {parse} from 'query-string'
import sha256 from 'crypto-js/sha256'
import cloneDeep from 'lodash.clonedeep'
const deepSort = (data = {}) =>
Object.keys(data)
.sort()
.reverse()
.map(key => {
if (data[key] === null) {
/22p/contents^state=normal|meta={title:这是测试示例!,jsVersion:17,cssVersion:17,coverSrc:https://qinzi.static.hulaplanet.com/ttp/editor/80d137a61e7093a134e470a992ddafca.png}&extra={originJson:[{type:paragraph,children:[{text:}]},{type:paragraph,children:[{text:宝宝光脚走路好处多,并没有你想的那么糟! }]},{type:paragraph,children:[{text:小宝宝的身体本就比大人怕热,这是因为他们处于生长发育期,新陈代谢更为旺盛。再加上宝宝都非常活泼、好动,出汗也会比较多。 }]},{type:paragraph,children:[{text:如果强迫他们穿着鞋袜,不仅脚丫子出汗多会很不舒服,常常闷在鞋袜里也容易滋生细菌,导致感染。所以大部分宝宝不喜欢这种感觉,本能就是不爱穿鞋袜。 }]},{type:paragraph,children:[{text:既然不爱穿,在保证不会冷的前提下,那就让他光脚吧!毕竟光脚的好处有很多—— }]},{type:paragraph,children:[{text:一、促进宝宝大脑以及感官的发育 }]},{type:paragraph,children:[{text:光脚能让宝宝感受到与地面接触时传来的刺激,有利于促进触觉神经、感官和大脑的发育。最重要的是,还能帮助宝宝完成各种精细动作,提高灵敏度,增强身体灵活性和协调性。 }]},{url:https://qinzi.static.hulaplanet.com/ttp/editor/b15b71bbd8461dad8e7cb1af7dda34fa.jpeg,type:image,children:[{text:}],caption:null},{type:paragraph,children:[{text: }]},{type:paragraph,children:[{text:二、利于宝宝双脚发育 }]},{type:paragraph,children:[{text:宝宝光脚,小脚不需要受到鞋子的束缚,脚形可以自然生成,光脚更能锻炼足底肌肉和韧带,促进足弓的形成,
/22p/contents^state=normal|meta={title:哈哈哈,jsVersion:17,cssVersion:17,coverSrc:https://qinzi.static.hulaplanet.com/ttp/editor/2477fe6b73b3c7303609283da80bbff8.png}&extra={originJson:[{type:paragraph,children:[{text:}]},{type:paragraph,children:[{text:宝宝光脚走路好处多,并没有你想的那么糟! }]},{type:paragraph,children:[{text:小宝宝的身体本就比大人怕热,这是因为他们处于生长发育期,新陈代谢更为旺盛。再加上宝宝都非常活泼、好动,出汗也会比较多。 }]},{type:paragraph,children:[{text:如果强迫他们穿着鞋袜,不仅脚丫子出汗多会很不舒服,常常闷在鞋袜里也容易滋生细菌,导致感染。所以大部分宝宝不喜欢这种感觉,本能就是不爱穿鞋袜。 }]},{type:paragraph,children:[{text:既然不爱穿,在保证不会冷的前提下,那就让他光脚吧!毕竟光脚的好处有很多—— }]},{type:paragraph,children:[{text:一、促进宝宝大脑以及感官的发育 }]},{type:paragraph,children:[{text:光脚能让宝宝感受到与地面接触时传来的刺激,有利于促进触觉神经、感官和大脑的发育。最重要的是,还能帮助宝宝完成各种精细动作,提高灵敏度,增强身体灵活性和协调性。 }]},{url:https://qinzi.static.hulaplanet.com/ttp/editor/331055f72d6657e6a2786e915bdf71d8.jpeg,type:image,children:[{text:}],caption:null},{type:paragraph,children:[{text: }]},{type:paragraph,children:[{text:二、利于宝宝双脚发育 }]},{type:paragraph,children:[{text:宝宝光脚,小脚不需要受到鞋子的束缚,脚形可以自然生成,光脚更能锻炼足底肌肉和韧带,促进足弓的形成,有利于缓
git clone https://github.com/apache/incubator-apisix-dashboard-built.git && \
echo ">>>>> git clone successfully" && \
cd ./incubator-apisix-dashboard-built && \
git rm . -r && \
cd ../dist && \
for file in $(find . -type f \( -iname \*.js -o -iname \*.css \)); do
if [[ "$file" != *"service-worker.js" ]]; then
echo Processing $file
cat ../travis/LICENSE $file > $file.modified
@juzhiyuan
juzhiyuan / hammerjs-patch-ios13.js
Last active October 17, 2019 09:15
使用 hammerjs 实现的 Swiper 在 iOS 13 中出现卡顿,即滑动页面后页面停顿在两个 Swiper Item 中间。
// 将下发代码放置在 HTML 中
document.body.addEventListener('touchmove', function(e) {e.preventDefault()}, {passive: false})
@juzhiyuan
juzhiyuan / git-squash-all-commits.sh
Last active October 17, 2019 09:16
Squash All Commits Into One
git reset $(git commit-tree HEAD^{tree} -m "Initial commit")
const generateQR = data => new Promise((resolve, reject) => {
wx.downloadFile({
url: `https://XXXX/wxacodeunlimit?data=${encodeURI(JSON.stringify(data))}`,
success: res => {
console.log(res)
resolve(res.tempFilePath)
},
fail: () => {
reject()
},