Skip to content

Instantly share code, notes, and snippets.

@shelllee
shelllee / claude-code-tools.md
Created February 11, 2026 15:02 — forked from wong2/claude-code-tools.md
Tools and system prompt of Claude Code

Task

Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.

When to use the Agent tool:

  • If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended

When NOT to use the Agent tool:

  • If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
  • If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
  • If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
// warping hexagons, WIP. @psonice_cw
// I'm sure there's a less fugly way of making a hexagonal grid, but hey :)
// Maybe - Try this...
// Simplify!
#ifdef GL_ES
precision mediump float;
#endif
// ==UserScript==
// @name Wechat Official Accounts Assistant
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Auto load original images and copy information from Wechat Official Accounts articles
// @author Cline
// @match https://mp.weixin.qq.com/s*
// @grant none
// @run-at document-start
// ==/UserScript==

※ PowerShell (Admin) needed ※

Before -> After

Before After

AIO

One-Line Enable

reg.exe add HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /f /ve && taskkill /f /im explorer.exe && explorer
@shelllee
shelllee / sizeof.c
Created October 25, 2024 02:49 — forked from bellbind/sizeof.c
[C][emscripten]sizeof number types
// clang -Wall -Wextra -std=c11 sizeof.c -o sizeof
// emcc -Wall -Wextra -std=c11 sizeof.c -o sizeof.js
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <wchar.h>
#include <time.h>
@shelllee
shelllee / DefineSwitcher.cs
Created March 15, 2024 03:17 — forked from nekomimi-daimao/DefineSwitcher.cs
DefineSwitcher - switch #define in unity
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.Build;
using UnityEngine;
namespace Nekomimi.Daimao
{
/// <summary>
/// Switch #define.
@shelllee
shelllee / For Mac 4.2.6 unlimited trial.md
Created February 4, 2024 15:23 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@shelllee
shelllee / CustomUnityRender.cs
Created August 31, 2023 03:32 — forked from Slaynash/CustomUnityRender.cs
Custom Unity render loop, drawing a magenta quad at 0,0 of 400x400px (hardcoded offsets for Unity 2018.4.23f1)
private delegate void PerformMainLoop(/* HWND__* */ IntPtr param_1, uint param_2, uint param_3, ulong param_4); // These parameters may be inaccurate
private delegate GfxDevice GetGfxDevice();
private delegate IntPtr GetIVRDevice();
private delegate void SetupPixelCorrectCoordinates(bool _0);
private static IntPtr GetFunctionPointerFromMethod(string methodName) =>
typeof(CustomUnityRender).GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Static).MethodHandle.GetFunctionPointer();
internal static void Init()
{
@shelllee
shelllee / PieMenu.cpp
Created February 17, 2023 05:32 — forked from thennequin/PieMenu.cpp
PieMenuAdv
struct PieMenuContext
{
static const int c_iMaxPieMenuStack = 8;
static const int c_iMaxPieItemCount = 12;
static const int c_iRadiusEmpty = 30;
static const int c_iRadiusMin = 30;
static const int c_iMinItemCount = 3;
static const int c_iMinItemCountPerLevel = 3;
struct PieMenu