
diffcue: closing the AI-CLI review loop
When I vibe-code with an AI CLI (Claude Code, Codebuddy, etc.), the loop is always the same: it makes changes, I read the diff, I want to say “line 42 is wrong, rename this” — and then I’m back in ...

When I vibe-code with an AI CLI (Claude Code, Codebuddy, etc.), the loop is always the same: it makes changes, I read the diff, I want to say “line 42 is wrong, rename this” — and then I’m back in ...

I kept buying tiny M5Stack modules “to try later”, so I finally sat down and turned the pile into actual gadgets. m5stack_toys is where they live — a handful of small, self-contained toys, mostly v...
简介 用于在OSX的.app程序中得到Resources文件夹的绝对路径,来正确载入资源文件 只需链接CoreFoundation即可,代码来自SFML论坛[0] 代码 #if defined(__APPLE__) #include <CoreFoundation/CoreFoundation.h> #endif std::string ResourcePath() {...
简介 使用代码生成圆柱体,可用来表示Spot Light的凸包围体 当圆柱体的某一端闭合时,会产生重复顶点。 可参考Assimp[0]的做法,来剔除潜在重复顶点。 实现 void CreateCylinder(const std::string &name, float topR, float bottomR, float height, int segH, int segV...
简介 用于Unity的UI的简易渐变效果脚本 支持渐变方向选择,支持单独设置Alpha using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; public class Gradiant : BaseVertexEffect { p...
简介 完美转发与分段构造用例 #include <map> #include <functional> #include <typeinfo> #include <typeindex> #include <iostream> class MyClass { public: int a; int b; MyClas...
用法 输入一段类似下面的命令: Namespace.Class.Method(10, 12.5, true, "hello there") 按下回车键两次。 若运行时存在这个类型,并且存在这个需要上述参数的函数。 程序就会调用这个函数,并且将函数的返回值打印出来。 该系统有简单的错误判断机制,若分析过程中出现错误的语法,会抛出异常。 实现 通过Lexer.Analysi...
简介 Light Pre-pass 渲染器 [0] 是延迟渲染的一种修改版。 渲染步骤大致如下: 渲染场景法线与深度到MRT中 计算Light Buffer 从Light Buffer中获得光照参数,重建着色方程 进行Forward Rendering,排序由前至后 此方法的优点有: 更小的G-Buffer 支持MSAA 支持没有MRT的设备 光...