Skip to content

Instantly share code, notes, and snippets.

@yy
yy / prepare_student_notebook.py
Created May 7, 2023 22:05
A script to remove solutions from a Jupyter notebook.
"""This script removes solutions from a given notebook and saves it as a new notebook.
Input: a Jupyter notebook with solutions
The solutions are marked according to the nbgrader's format:
### BEGIN SOLUTION
...
### END SOLUTION
Output: a path to a new notebook without solutions."""
@yy
yy / howto
Last active January 18, 2026 14:20
howto: Natural language to shell commands using Claude Code
#!/bin/bash
set -euo pipefail
# howto - Natural language to shell command using Claude Code
MODEL="haiku"
while getopts "m:" opt; do
case $opt in
m) MODEL="$OPTARG" ;;