Skip to content

Instantly share code, notes, and snippets.

"""
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
@dollspace-gay
dollspace-gay / VSDD.md
Last active March 1, 2026 04:38
Verified Spec-Driven Development

Verified Spec-Driven Development (VSDD)

The Fusion: VDD × TDD × SDD for AI-Native Engineering

Overview

Verified Spec-Driven Development (VSDD) is a unified software engineering methodology that fuses three proven paradigms into a single AI-orchestrated pipeline:

  • Spec-Driven Development (SDD): Define the contract before writing a single line of implementation. Specs are the source of truth.
  • Test-Driven Development (TDD): Tests are written before code. Red → Green → Refactor. No code exists without a failing test that demanded it.
@mberman84
mberman84 / prompts.md
Last active March 1, 2026 04:37
Prompts

OpenClaw: Extracted Prompts (Generalized)

22 copy/paste-ready prompts for building your own AI agent system. Each prompt builds a functional system or implements a proven best practice you can hand to an AI coding assistant.

Replace placeholders like <your-workspace>, <your-messaging-platform>, and <your-model> with your own values.


1. Personal CRM

@nommiin
nommiin / input.cpp
Created March 1, 2026 02:47
A basic shim for adding keyboard support to Minecraft Console Edition
#include "stdafx.h"
#include <Windows64\4JLibs\inc\4J_Input.h>
#include <Common\App_enums.h>
#include <Windows.h>
C_4JInput InputManager;
void C_4JInput::Initialise(int iInputStateC, unsigned char ucMapC, unsigned char ucActionC, unsigned char ucMenuActionC)
@oca159
oca159 / tmux.conf
Last active March 1, 2026 04:36
tmux
# Set terminal colors
set-option -sa terminal-overrides ",xterm*:Tc"
# Enable mouse support
set -g mouse on
# don't exit from tmux when closing a session
set -g detach-on-destroy off
# Start windows and panes at 1, not 0

File Format Magic Numbers Cheat Sheet

Detail Explanation

Magic numbers are unique identifiers found at the beginning of files that help determine their format. These byte sequences enable software and operating systems to recognize file types even when the file extension is missing or incorrect. This cheat sheet lists the magic numbers for various file formats, including video, audio, image, archive, document, executable, and database files.

Steps to Read a File in Hex in Terminal

To check the magic number of a file in a terminal, follow these steps:

On Linux/macOS:

  1. Open a terminal.
@inardini
inardini / adk_agent_engine_multimodal_query.py
Last active March 1, 2026 04:34
Sends a multimodal query to ADK agent hosted on Vertex AI Agent Engine.
import os
import vertexai
from vertexai import agent_engines
from typing import Optional, Dict, Any
def query_multimodal_agent(
project_id: str,
location: str,
agent_engine_id: str,
file_gcs_uri: str,
@jlia0
jlia0 / agent loop
Last active March 1, 2026 04:33
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet