Skip to content

Instantly share code, notes, and snippets.

@runevision
runevision / BalloonTouch.cs
Last active March 11, 2026 11:21
Demo code for calculating the touch point between a "ballooning" circle and a rectangle
using UnityEngine;
[ExecuteAlways]
public class BalloonTouch : MonoBehaviour {
public Transform start;
public Transform other;
void Update() {
Vector2 startPoint = start.position;
# Prompt Para Replicar A Arquitetura Da SPA
Você é um arquiteto sênior de frontend. Sua tarefa é criar uma nova single page application com uma arquitetura **praticamente idêntica** à arquitetura descrita abaixo, mas **sem copiar nenhuma regra de negócio**, nomenclatura de domínio, fluxos específicos do produto original ou qualquer texto/fonte do projeto de origem.
O objetivo é reproduzir somente o **blueprint técnico e organizacional**:
- stack
- estrutura de pastas
- camadas
- convenções
@hedaprakash
hedaprakash / X11 Forwarding Setup for VSCode Remote SSH
Last active March 11, 2026 11:10
X11 Forwarding Setup for VSCode Remote SSH
# X11 Forwarding Setup for VSCode Remote SSH
This guide details how to configure X11 forwarding to enable GUI support when using VSCode Remote SSH.
---
## Steps
```powershell
# 1. Install and Configure Xming on Windows
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@smallnest
smallnest / multi-agent-config-instruction.md
Created March 3, 2026 03:33 — forked from 1va7/multi-agent-config-instruction.md
OpenClaw 多 Agent 架构配置指南 - 把这份文档发给你的 OpenClaw,它会引导你选择最适合的多 Agent 架构配置

OpenClaw 多 Agent 架构配置指南

把这份指南发给你的 OpenClaw,它会引导你选择最适合的多 Agent 架构。


使用说明

当用户把这份文档发给你时,请按照以下流程引导他们选择合适的多 Agent 架构配置。

_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active March 11, 2026 11:22
Conventional Commits Cheatsheet
@OrangeViolin
OrangeViolin / character-optimization-design--optimization-examples.md
Last active March 11, 2026 09:43
Game Design Skill for Claude Code - 基于《游戏设计的100个原理》的游戏设计全流程助手 | 仅供个人学习与娱乐

Min/Maxing Examples and Mitigations

Traditional D&D

  • Problem: Players dump Charisma to boost Strength
  • Mitigation: Charisma affects more mechanics (leadership, NPC reactions)
  • Result: Still possible, but trade-offs are meaningful

Dark Souls

  • Approach: Complex stat scaling system
  • Design: Each weapon scales with different stats
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active March 11, 2026 09:36
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).