Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++ / OOP or (other) obscuring cruft. View on YouTube
Discover gists
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately - don't keep pushing
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
- Use subagents liberally to keep main context window clean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{"id":1,"cardType":"A","text":"Flying sex snakes.","numAnswers":0,"expansion": "Base"}, | |
| {"id":2,"cardType":"A","text":"Michelle Obama's arms.","numAnswers":0,"expansion": "Base"}, | |
| {"id":3,"cardType":"A","text":"German dungeon porn.","numAnswers":0,"expansion": "Base"}, | |
| {"id":4,"cardType":"A","text":"White people.","numAnswers":0,"expansion": "Base"}, | |
| {"id":5,"cardType":"A","text":"Getting so angry that you pop a boner.","numAnswers":0,"expansion": "Base"}, | |
| {"id":6,"cardType":"A","text":"Tasteful sideboob.","numAnswers":0,"expansion": "Base"}, | |
| {"id":7,"cardType":"A","text":"Praying the gay away.","numAnswers":0,"expansion": "Base"}, | |
| {"id":8,"cardType":"A","text":"Two midgets shitting into a bucket.","numAnswers":0,"expansion": "Base"}, | |
| {"id":9,"cardType":"A","text":"MechaHitler.","numAnswers":0,"expansion": "Base"}, | |
| {"id":10,"cardType":"A","text":"Being a motherfucking sorcerer.","numAnswers":0,"expansion": "Base"}, |
One tap, the package opens on its own page — no wrapper in between.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
The expanded prompt from Samraaj's TV makeover video. Identify your TV, give your coding agent eyes through a phone camera, then build and install a home screen for the platform you actually own.
- Have your TV, its remote, a computer, and a phone ready. Put the TV and computer on the same trusted home network.
- Open a coding agent on your computer with permission to work with local files and development tools, and the ability to inspect images. A text-only chat cannot deploy to your TV by itself.
- Open 01-TV-MAKEOVER-PROMPT.md below, copy its entire contents, and paste it into the agent. Fill in any preferences you already know; leave everything else as unknown.
- Let the agent identify the hardware first. It will then build the camera watcher, show you a QR code, and ask you to grant camera access and point your phone at the TV.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Visual Studio 2022 | |
| Enterprise : | |
| VHF9H-NXBBB-638P6-6JHCY-88JWH | |
| Professional: | |
| TD244-P4NB7-YQ6XK-Y8MMM-YWV2J |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Web.Optimization; | |
| using System.Web.Routing; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using WebApplication16; | |
| using WebApplication16.Controllers; |
If you often connect to your Linux server using VSCode, the "~/.vscode-server/" folder (and sometimes the ~/.cache/ folder too) can get very large because VSCode:
- Does NOT clean its download cache after installing extensions;
- Does NOT delete old extensions after updating them;
- Does NOT remove old VSCode servers after installing a new version.
If your server storage space is limited, you might consider cleaning "~/.vscode-server/" (and ~/.cache/) regularly using the bash script I wrote.
Simply run the following command:
curl -sL https://gist.githubusercontent.com/XDflight/5f3509eb84fc282b88059c909036f5bc/raw/fe2a3e7dab19160c17efc7025d138f5350964c0f/clean_vscode-server.sh | bash -s
NewerOlder
