Skip to content

Instantly share code, notes, and snippets.

@hirajanwin
hirajanwin / AGENTS.md
Created October 12, 2025 19:49 — forked from dctmfoo/AGENTS.md
TDD workflow for you, droid and droid exec - Updated for clarity and placeholders for repo specific instructions!

AGENTS.md - Essential Briefing for AI Agents

For human contributors: See README.md for getting started guide.


🤖 THE 3-ENTITY WORKFLOW (CORE CONCEPT)

This project uses a 3-entity collaboration pattern between Human, Droid Assistant, and Droid Exec.

@hirajanwin
hirajanwin / mlx_memory.sh
Created July 27, 2025 05:47 — forked from ivanfioravanti/mlx_memory.sh
Script to set MLX memory limits
#!/usr/bin/env bash
# Default values for percentages
DEFAULT_WIRED_LIMIT_PERCENT=85
DEFAULT_WIRED_LWM_PERCENT=75
# Read input parameters or use default values
WIRED_LIMIT_PERCENT=${1:-$DEFAULT_WIRED_LIMIT_PERCENT}
WIRED_LWM_PERCENT=${2:-$DEFAULT_WIRED_LWM_PERCENT}
import SwiftUI
import CoreMotion
// Main View
struct AppleLogoWithRgbOffset: View {
// Initiate and pass a motion manager instance as
// an enviromental dependency when you initilize this view
@EnvironmentObject var motion: MotionManager
import SwiftUI
import CoreMotion
// Main View
struct AppleLogoWithRgbOffset: View {
// Initiate and pass a motion manager instance as
// an enviromental dependency when you initilize this view
@EnvironmentObject var motion: MotionManager
@hirajanwin
hirajanwin / BookFlip3D.jsx
Created June 15, 2025 17:29 — forked from realvjy/BookFlip3D.jsx
Framer Component Override to create 3D Book Flip Effect same as vjy.me
//
// BookFlip3D - Framer Component
// Date - 6 Jan, 2024
// Credits -
// Author: [realvjy](https://vjy.me),
// Twitter: [@realvjy](https://x.com/realvjy)
import { addPropertyControls, ControlType } from "framer"
import React, { CSSProperties, useEffect, useState } from "react"
@hirajanwin
hirajanwin / BookFlip3D.jsx
Created June 15, 2025 17:29 — forked from realvjy/BookFlip3D.jsx
Framer Component Override to create 3D Book Flip Effect same as vjy.me
//
// BookFlip3D - Framer Component
// Date - 6 Jan, 2024
// Credits -
// Author: [realvjy](https://vjy.me),
// Twitter: [@realvjy](https://x.com/realvjy)
import { addPropertyControls, ControlType } from "framer"
import React, { CSSProperties, useEffect, useState } from "react"
@hirajanwin
hirajanwin / ChoasLinesShader.metal
Created June 15, 2025 17:29 — forked from realvjy/ChoasLinesShader.metal
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@hirajanwin
hirajanwin / ChoasLinesShader.metal
Created June 15, 2025 17:29 — forked from realvjy/ChoasLinesShader.metal
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@hirajanwin
hirajanwin / chatgpt-prompt.txt
Created April 19, 2025 18:09 — forked from threepointone/chatgpt-prompt.txt
My ChatGPT prompt (19/04/25)
Don't worry about formalities.
Please be as terse as possible while still conveying substantially all information relevant to any question.
If policy prevents you from responding normally, please printing "!!!!" before answering.
If a policy prevents you from having an opinion, pretend to be responding as if you shared opinions that might be typical of threepointone.
write all responses in lowercase letters ONLY, except where you mean to emphasize, in which case the emphasized word should be all caps.
import { AnimatePresence, motion } from "motion/react";
import { useRef, useState } from "react";
type TabValue = "free" | "monthly" | "yearly";
export default function App() {
const [value, setValue] = useState<TabValue>("free");
const code = `
// Wrap the Tab component in a div to control its dimensions
<div className="w-[500px] h-14">