Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

SnapCode 🦥: I stopped retyping code from lecture slides. One hotkey, offline, Gemma does the rest

Description and use

SnapCode automates copying code from lecture slides to Colab using Tesseract OCR and Gemma, cutting per‑cell time from 60–90 s to 5–15 s.

Problem

Copying code from lecture slides into Colab was slow, error‑prone, and required an internet connection.

Outcome

SnapCode reduced per‑cell copy time from 60–90 s to 5–15 s, achieving 100 % exact code matches on four real lecture screenshots and eliminating the need for an internet connection.

Workflow

  • Press hotkey to capture region
  • Tesseract OCR extracts raw text
  • Gemma refines text (quotes, brackets, indentation)
  • Python ast verifies syntax, retry if needed
  • Copy cleaned code to clipboard (Cmd+V)

Evidence

Press a hotkey, drag a box around code on a lecture slide or video, then press Cmd+V. The clean, correctly indented code is already on your clipboard.

Source

SnapCode (Tesseract + Gemma): ... It matches the slide exactly.

Source

Results on 4 real lecture screenshots ... 100% exact match.

Source

My old Google Lens routine took about 60–90 seconds per cell... With SnapCode it's a hotkey and a 5–15 second wait.

Source

  • Record date: 2026-10-25T07:26:12.551Z