Skip to content

Instantly share code, notes, and snippets.

View JungeAlexander's full-sized avatar
👨‍💻

Alexander Junge JungeAlexander

👨‍💻
View GitHub Profile
@aaronvg
aaronvg / gist:75596a0063588440d47f5db1361c8a5f
Last active April 16, 2026 08:20
BAML Gist Dec 20, 2025
# BAML (Basically, A Made-Up Language) Reference Guide for AI Agents
<Overview>
BAML is a domain-specific language for building type-safe LLM prompts as functions. It provides:
- Strongly-typed inputs and outputs for LLM calls
- Automatic JSON parsing and validation
- Jinja-based prompt templating
- Multi-language code generation (Python, TypeScript, Go, Ruby)
The workflow is: Define BAML files → Run `baml-cli generate` → Import generated client in your code.
@swedishmike
swedishmike / gist:902fb27d627313c31a95e31c44e302ac
Created October 17, 2019 13:07
Adding and removing virtual environments to Jupyter notebook
## Create the virtual environment
conda create -n 'environment_name'
## Activate the virtual environment
conda activate 'environment_name'
## Make sure that ipykernel is installed
pip install --user ipykernel
## Add the new virtual environment to Jupyter