Skip to content

Instantly share code, notes, and snippets.

View lenville's full-sized avatar
:octocat:
Happy working!

lenville lenville

:octocat:
Happy working!
  • Stealth Robotics Startup
  • Santa Clara, CA, USA
  • 07:55 (UTC -07:00)
  • X @realLenville
View GitHub Profile
@lenville
lenville / agent loop
Created March 11, 2025 01:33 — 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
@lenville
lenville / rAF.js
Last active August 25, 2022 19:53 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@lenville
lenville / gist:4e3acccfbf629f9735ae
Last active December 25, 2015 10:39
Javascript Send Request
function sendXMLHTTPRequest (successCallback, errorCallback) {
var request = new XMLHttpRequest(),
url = "",
type;
request.open("GET", url);
request.onreadystatechange = function () {
if (request.readyState === 4 && request.status === 200) {
successCallback(request.responseText); // 不判断格式直接回调
} else {
errorCallback("error"); // 出错回调