Skip to content

Instantly share code, notes, and snippets.

View nityeshaga's full-sized avatar

Nityesh Agarwal nityeshaga

View GitHub Profile
@nityeshaga
nityeshaga / prompting-framework-2025.md
Last active November 16, 2025 02:57
Field guide for communicating with SOTA AI models in 2025 • The Genius Intern Framework

Writing Great AI Prompts: The Genius Intern Framework

Imagine This

A genius alien with PhDs in every field just landed on Earth and is now your intern. They can figure out anything... but they have NO idea what "good" looks like in your business context, what your priorities are, or which of the infinite possible approaches you'd prefer. And they're cursed to execute whatever you ask, even if your instructions are vague.

This framework is your guide to communicating with that genius alien intern.


@nityeshaga
nityeshaga / privacy-policy.md
Last active December 5, 2024 13:10
Attention Rehab extension: Privacy Policy

Privacy Policy for Attention Rehab

Last updated: June 28, 2024

Introduction

This Privacy Policy describes how Attention Rehab ("we", "our", or "us") collects, uses, and shares information about you when you use our Chrome extension, Attention Rehab ("the Extension").

Information We Collect

@nityeshaga
nityeshaga / sample.y
Created November 24, 2018 03:06
Sample yacc
%{
#include<stdio.h>
#include<stdlib.h>
%}
%token IF ELSE ob cb sc tt vb nu op ass
%left '+' '-'
%left '*' '/'
%%
S: IF cond stat efs ELSE stat {printf("correct\n");}
@nityeshaga
nityeshaga / sample.l
Last active November 24, 2018 03:08
lex sample
%{
#include <stdio.h>
#include "y.tab.h"
void yyerror(char *s);
%}
letter [a-zA-Z]
digit [0-9]
%%
{letter}({letter}|{digit})* {countt++;}