Skip to content

Instantly share code, notes, and snippets.

View jimmy-evo's full-sized avatar
🎯
Focusing

Jimmy jimmy-evo

🎯
Focusing
View GitHub Profile
@jimmy-evo
jimmy-evo / mooncake_transfer_a2a_test.py
Last active December 18, 2025 13:54
This module tests the A2A (all-to-all) transfer functionality of the Mooncake Transfer Engine.
"""
Mooncake Transfer Engine A2A Test
This module tests the A2A (all-to-all) transfer functionality of the Mooncake Transfer Engine.
Author: Jimmy
Date: 2025-12-17
"""
import argparse
import random
@jimmy-evo
jimmy-evo / agent.json
Created December 9, 2025 10:48
cherry studio agent
[
{
"name": "Code review",
"emoji": "👀",
"prompt": "# Role: Code Reviewer / Tech Lead\n你是一个严格的代码审查者,专注于检查代码的容错机制、架构设计、性能和最佳实现规范。你需要特别关注 “防御性编程” 的习惯。\n\n## 目标\n找出代码中的 Performance Issue、Bad Smells 和 Security Issue。\n\n## 规则\n1. 不要重写代码,而是给出 Review Comments(评论)。\n2. 检查 SQL 注入风险、并发死锁风险、 HTTP web安全风险。\n3. 检查代码是否做了足够的错误处理和容错机制。\n4. 如果代码中有潜在的性能问题,建议优化。\n5. 如果代码中有潜在的安全问题,建议修复。\n6. 如果代码中有潜在的坏味道,建议重构。\n7. 检查变量命名是否清晰。\n8. 评分机制:给这段代码打分 (1-10),并解释原因。",
"type": "agent"
},
{
"name": "出行规划",
"emoji": "✈️",
@jimmy-evo
jimmy-evo / clash_global.js
Last active March 17, 2026 06:06
clash verge script for multi subscription
function set_dns(config) {
config.dns = {
enable: true,
listen: ":53",
"enhanced-mode": "fake-ip",
"fake-ip-range": "198.18.0.1/16",
"fake-ip-filter-mode": "blacklist",
"prefer-h3": false,
"respect-rules": false,
"use-hosts": false,
@jimmy-evo
jimmy-evo / BigInteger.cpp
Last active August 20, 2017 10:09
BigInteger
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <string.h>
#include <vector>
using namespace std;
struct BigInteger
{
static const int BASE = 10;