Skip to content

Instantly share code, notes, and snippets.

@badlogic
badlogic / 01-update-docs.md
Last active July 27, 2025 19:31
Yakety Documentation (Ordered) - LLM-optimized docs with concrete file references

Update Documentation

You will generate LLM-optimized documentation with concrete file references and flexible formatting.

Your Task

Create documentation that allows humans and LLMs to:

  • Understand project purpose - what the project does and why
  • Get architecture overview - how the system is organized
  • Build on all platforms - build instructions with file references
@Roasbeef
Roasbeef / cli.mjs
Created February 25, 2025 07:56
claude codes
This file has been truncated, but you can view the full file.
#!/usr/bin/env -S node --no-warnings=ExperimentalWarning --enable-source-maps
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
@snowclipsed
snowclipsed / matmul.zig
Last active May 20, 2025 07:47
Highly Performant Matrix Multiplication in Zig (and Grid Search to find the most optimal parameters!)
// To run tests, do :
// zig test -OReleaseSafe -Dcpu=native -Dtarget=native matmul.zig
// To run main, do :
// zig build-exe -OReleaseFast -Dcpu=native -Dtarget=native matmul.zig
// ./matmul
//
// ███╗ ███╗ █████╗ ████████╗███╗ ███╗██╗ ██╗██╗ ░░░░░░███████╗██╗ ██████╗
// ████╗ ████║██╔══██╗╚══██╔══╝████╗ ████║██║ ██║██║ ░░░░░░╚══███╔╝██║██╔════╝
@bartowski1182
bartowski1182 / calibration_data.txt
Last active July 3, 2024 19:38
Calibration data for GGUF. Includes work from Kalomaze, Turboderp, and Dampf.
In addition to a significant decrease in hepatic lipid accumulation in the IOE group, which inhibited energy intake by propionate enrichment, hepatic lipids were also significantly reduced in the mice in the IOP group, which was largely enriched with butyrate. Compared with the IOE group, IOP had a stronger regulatory effect on hepatic metabolism and triglyceride metabolism and higher levels of TCA cycle in the host. In addition, butyrate has the ability to promote browning of white adipose tissue (WAT) to brown adipose tissue (BAT).^[@ref39],[@ref40]^ WAT stores energy, whereas BAT uses energy for heating and consequently host energy expenditure increases.^[@ref41],[@ref42]^ However, adipose tissue weight does not change after WAT browning.^[@ref43]^ Therefore, the weight of adipose tissue of mice in the IOP group dominated by butyrate was greater than that of the mice in the IOE group dominated by propionate.
In conclusion ([Figure [7](#fig7){ref-type="fig"}](#fig7){ref-type="fig"}C), the improvement of ob
/*
* Copyright (c) 2016 Apple Inc. All rights reserved.
*
* @APPLE_APACHE_LICENSE_HEADER_START@
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@Azoy
Azoy / atomics.md
Last active May 5, 2024 22:44
Low-Level Atomic Operations
@veekaybee
veekaybee / normcore-llm.md
Last active November 2, 2025 20:52
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

//
// ContentView.swift
// SIMDFuturesA15
//
// Created by Philip Turner on 6/9/23.
//
import SwiftUI
import Foundation
import QuartzCore
@philipturner
philipturner / LLaMA.swift
Last active December 8, 2023 19:13
Port of Facebook's LLaMA model in Swift/Metal
//
// LLaMA.swift
// MetalFlashAttention
//
// Created by Philip Turner on 5/24/23.
//
import MetalPerformanceShadersGraph
import simd
@kode54
kode54 / 0000-README.md
Last active May 30, 2023 15:56
Xe KMD uAPI adjustments

These are minimal adjustments to the current uAPI, as inspired by Maarten Lankhorst and his process of running the headers through pahole. But instead, I adjusted them manually, making minimal changes so that the 64-bit uarch would result in the same alignment, so existing userspace software with the previous header will still work. The only difference is that 32-bit userspace software needs the new header, to continue working with the kernel.

I've split it into two patches, like was suggested to @mlankhorst, one with the uAPI header, and one with the validation code.

Edited 2023-05-12 20:42 PDT: Updated against latest rebase.