Skip to content

Instantly share code, notes, and snippets.

@gitcloned
gitcloned / flow.md
Last active May 2, 2026 05:50
Claude as Super Agent with Free/Cheaper Models via free-claude-code

Claude as Super Agent with Free/Cheaper Models via FCC

Use Claude Code as your orchestrator while routing the actual LLM work to free or cheap models — perfect for bulk grunt work like content generation, scraping, data analysis, etc.

You can use for different usecase like

  • Generating practice test questions in bulk
  • Parse websites to generate TOFU

The Problem and the Idea

@gitcloned
gitcloned / Simple nodejs code to spawn or exec.md
Created May 20, 2021 14:19
Simple code to measure performance of spawn/exec
const async = require('async')

const LOOP = 100
const MODE = 'SPAWN'

const { exec, spawn } = require('child_process')

let max = -9999999999999999
TABLE_SCHEM TABLE_NAME TABLE_TYPE
BroadMarket NIFTY JUNIOR TABLE
BroadMarket NIFTY MIDCAP 150 TABLE
BroadMarket NIFTY MIDCAP 50 TABLE
BroadMarket NIFTY SMLCAP 250 TABLE
BroadMarket NIFTY SMLCAP 50 TABLE
BroadMarket NIFTY50 TABLE
Others SOVEREIGN GOLD BONDS TABLE
Sectoral NIFTY AUTO TABLE
Sectoral NIFTY BANK TABLE
/**
* Get fields and their types in a row
* @param typeFactory
* @return
*/
public RelDataType getRowType(RelDataTypeFactory typeFactory) {
List<RelDataType> fields = new ArrayList<>();
List<String> fieldNames = new ArrayList<>();
/**
* Gets the table map under this schema
* @return Map of TableName and Table object
*/
@Override protected Map<String, Table> getTableMap() {
final ImmutableMap.Builder<String, Table> builder = ImmutableMap.builder();
builder.put("NIFTY 50", createTable("nifty50"));