Skip to content

Instantly share code, notes, and snippets.

@vishal-h
vishal-h / README.md
Last active July 20, 2025 09:24
Elixir Mix Task: LLM Ingest - Generate LLM-friendly code exports. [vibe coded with Claude Sonnet 4]

Mix Task: LLM Ingest

A powerful Mix task for generating LLM-friendly code ingestion files from Elixir projects. Creates well-structured markdown files containing your source code, making it easy to share context with Large Language Models for code analysis, debugging, or feature development.

✨ Features

  • 🎯 Feature-based filtering - Focus on specific parts of your codebase
  • 📁 Smart directory traversal - ASCII tree structure with proper organization
  • 🎨 Markdown output - Clean formatting with syntax highlighting
  • 🚫 Intelligent exclusions - Built-in patterns for common artifacts
@vishal-h
vishal-h / .gitignore.example
Created July 20, 2025 09:16
Elixir Mix Task: LLM Ingest - Generate LLM-friendly code exports
# Add these lines to your .gitignore to exclude LLM ingest files from version control
# LLM Ingest generated files
doc/llm-ingest*.md
# Alternative: if you want to commit some but not others
# doc/llm-ingest-sensitive-feature.md
# doc/llm-ingest-private-*.md
# Optional: exclude the feature configuration if it contains sensitive patterns
@vishal-h
vishal-h / compare
Created December 24, 2014 11:47
Date.compare
Date.prototype.compare=function(dt,inclTime){
var dt1 = new Date(this.getTime());
var dt2 = new Date(dt.getTime());
dt1 = inclTime ? dt1.getTime() : dt1.setHours(0,0,0,0);
dt2 = inclTime ? dt2.getTime() : dt2.setHours(0,0,0,0);
if (dt1 > dt2) {return 1;}
else if (dt1 < dt2) {return -1;}
else return 0;
};