Skip to content

Instantly share code, notes, and snippets.

@Oluwasetemi
Oluwasetemi / COMPUTATION-OWNERSHIP-MAP.md
Last active September 8, 2026 13:48
Atlas Forager Signal Engine Computation Map

Signal Engine Computation Map

Purpose: Define the functions the Signal Engine must own, how each function works at a high level, and the callable interfaces needed by the Next.js app, Atlas, scheduled jobs, and a Sprouts-rebuilt UI.

Scope: This is the proposed future-state capability list, with a same-table snapshot of how each function is implemented today. Current formulas remain documented in docs/METRICS.md; production statistical methods remain in docs/COMPUTATION-METHODS.md.

@Oluwasetemi
Oluwasetemi / combobox.tsx
Created August 26, 2026 22:06 — forked from devhammed/combobox.tsx
ShadCN UI Combobox (based on Command and Popover components).
import {
Command,
CommandEmpty,
CommandGroup,
CommandItem,
CommandList,
} from '@/components/ui/command'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
import { useControlledState } from '@/hooks/use-controlled-state'
import { useIsomorphicLayoutEffect } from '@/hooks/use-isomorphic-layout-effect'
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@Oluwasetemi
Oluwasetemi / app.jsx
Last active April 23, 2026 21:30
routing
import { BrowserRouter as Router, Routes, Route, Link, Outlet, useParams, useSearchParams, useLocation } from "react-router-dom";
import './styles.css';
const users = [
{ name: 'Ken', id: 1 },
{ name: 'Favour', id: 2 }
]
function Home() {
return <h2>Home Page</h2>;
@Oluwasetemi
Oluwasetemi / transcript.txt
Created April 9, 2026 21:25
ai personal productivity - ed watal
We all know about user personas. You've heard about personas, buyer personas. So imagine if you as your business created a buyer persona agent that you could ask customers to. It's like literally hiring a customer and having them sit in your business all day. And they'll answer all your questions. And just imagine the power of doing that for your business. So now, and that's something we recommend any business should do. Now the question is, how many do you create? And literally, we could do this exercise today if you want to. And let's do that. If you have your computers, let's pull them up. Let's go and create a buyer persona agent. And let's see if it works. You want to do this exercise? Yeah? OK, let's do it. Let's pull up ChatGPT again. Yeah, you need the paid version. Yes, you need the paid version. So yeah, you could use Claude. Yeah, again, you could use Gemini. Yeah, I just keep gravitating to ChatGPD because that's what I use all the time. No, I have faith in Sam Altman but no stock in him. That's g
@Oluwasetemi
Oluwasetemi / README.md
Created March 29, 2026 23:35 — forked from kettanaito/README.md
Publishing to npm in 2026

Prerequisites

  • Use Node.js v24. Trusted Publishing does not work on earlier versions of Node.js.

Steps

  1. Go to "Account > Access Tokens" and click "Generate Access Token".
  2. Give the new token "read and write" persmissions to "All packages".
  3. If you have 2FA enabled on npm (which you should), check the "Bypass 2FA" checkbox neatly hidden in the UI. Otherwise, npm will fail with an error demanding an OTP during automatic publishing.
  4. Create the token.
@Oluwasetemi
Oluwasetemi / crud.jsx
Created March 27, 2026 18:05
CRUD - Create Read Update Delete - Array - UseState
// CRUD - Create Read Update Delete
function SimpleCrud() {
// array of names of student in the class @ this very moment
const [name, setName] = React.useState('');
const [names, setNames] = React.useState([]);
const handleNameChange = (e) => {
setName(e.target.value);
@Oluwasetemi
Oluwasetemi / README.md
Created November 12, 2025 22:37
something to reproduce the deploy bug

PartyKit Servers

This directory contains PartyKit server implementations for real-time multiplayer features.

Available Servers

1. Polls Server (polls.ts)

Real-time polling system where users can create polls, vote, and see results update live.

@Oluwasetemi
Oluwasetemi / index.html
Created November 7, 2025 18:41
teaching modules to my student. To run this code becareful with the comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Learning ES Modules</title>
</head>
<body>
<h1>Learning ES Modules</h1>
<script type="module" src="index.js"></script>
@Oluwasetemi
Oluwasetemi / clone.sh
Created October 29, 2025 14:55
An iterated version of my git clone or gh repo clone
function clone() {
if [[ -z $1 ]]; then
echo "Error: Repository name or URL is required."
return 1
fi
input_url="$1"
branch=""
repo_url=""
github_user=""