Skip to content

Instantly share code, notes, and snippets.

@liuhualh
liuhualh / agent loop
Created March 10, 2025 15:14 — 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
@liuhualh
liuhualh / testRegex.js
Created February 25, 2025 06:52 — forked from hanxiao/testRegex.js
Regex for chunking by using all semantic cues
// Updated: Aug. 20, 2024
// Run: node testRegex.js whatever.txt
// Live demo: https://jina.ai/tokenizer
// LICENSE: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
// COPYRIGHT: Jina AI
const fs = require('fs');
const util = require('util');
// Define variables for magic numbers
const MAX_HEADING_LENGTH = 7;
@liuhualh
liuhualh / postFile.lua
Created September 22, 2022 13:59 — forked from Maqiushi/postFile.lua
simple wrk benchmark for posting binary file
--Read the binary file, lua takes binary files with no difference to strings(all UNIX;https://www.lua.org/pil/21.2.2.html). But, use 'b' tag
local inp = assert(io.open("xxxx.xml.gz", "rb"))
local data = inp:read("*all")
--HTTP custom settings
--Remember to set the schema, host and port here otherwise it will use default.
wrk.scheme = "http"
wrk.host = "localhost"
wrk.port = 3000
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# 1. Download SVG
if [ ! -f logo.svg ]; then
curl https://www.python.org/static/community_logos/python-logo-inkscape.svg > logo.svg
fi
# -----------------------------------------------------------------------------