Skip to content

Instantly share code, notes, and snippets.

View chunpu's full-sized avatar
🎯
Focusing

chunpu chunpu

🎯
Focusing
  • 360
  • China
View GitHub Profile
@chunpu
chunpu / blend.html
Last active April 21, 2021 08:13
blend color with alpha 层叠混合带透明度的颜色, 支持任意层叠数
<canvas width="800" height="600" style="border: 1px solid red"></canvas>
<script>
var canvas = document.querySelector('canvas')
var ctx = canvas.getContext("2d")
var color1 = [255, 152, 0, 0.5]
var color2 = [76, 175, 80, 0.5]
var color3 = [33, 150, 243, 0.5]
var blended = blend(color1, color2, color3)
console.log({ blended })
@chunpu
chunpu / chatgpt-long-text.js
Last active May 14, 2023 02:55
ChatGPT Long Text
!(function () {
// ai.com console input
// 使用方法 q(`long text`)
var $ = function (val) {
return document.querySelector(val)
}
window.q = q
async function q(longStr) {
var sendIndex = 0
var maxOnce = 300 // 每次最多300个中文
@chunpu
chunpu / agent loop
Created May 6, 2025 08:23 — 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