Skip to content

Instantly share code, notes, and snippets.

@samsheffield
samsheffield / UnityCodingCheatSheet.txt
Last active December 31, 2024 20:18
Unity C# Cheat Sheet
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting
from deepspeed.launcher.runner import main
import sys
import os
if sys.platform == "win32":
os.environ["PL_TORCH_DISTRIBUTED_BACKEND"] = "gloo"
if __name__ == '__main__':
main()
# .cursorrules
Components & Naming
- Use functional components with `"use client"` if needed.
- Name in PascalCase under `src/components/`.
- Keep them small, typed with interfaces.
- Use Tailwind for common UI components like textarea, button, etc. Never use radix or shadcn.
Prisma
@kleneway
kleneway / gist:c50903b277b159c313400d29b30f6298
Created January 21, 2025 22:10
Template to give to o1-pro to generate instructions for cursor composer agent mode (use sonnet 3.5 new)
<TEMPLATE>
<INSTRUCTIONS>
Use the <CODEBASE> code as reference, and convert the high-level <TASK> into a set of very detailed step-by-step instructions that an AI coding agent can complete.
Only includes steps an AI coding agent can take. Do not include testing or any other work a human would do to confirm the task has been completed.
ALWAYS have the agent run a build when it is complete. Be specific and decisive about what the agent should do.
Do not include any additional meta instructions to the user. Use markdown formatting.
</INSTRUCTIONS>
<TASK>