Skip to content

Instantly share code, notes, and snippets.

View chetgray's full-sized avatar

Chet Gray chetgray

View GitHub Profile
@chetgray
chetgray / LibraryThing programming quiz.md
Last active February 4, 2022 18:54
LibraryThing programming quiz

[...]

Input is a string—a paragraph of text. One of the paragraphs above would be fine.

Output is a report listing how many words there are with X letters, like:

10 words with 1 letter

20 words with 2 letters

@chetgray
chetgray / ipynb_drop_output.py
Last active June 8, 2018 17:28 — forked from pbugnion/ ipython_notebook_in_git.md
Keeping IPython notebooks under Git version control
#!/usr/bin/env python
"""
Suppress output and prompt numbers in git version control.
This script will tell git to ignore prompt numbers and cell output
when looking at ipynb files if their metadata contains:
"git" : { "suppress_outputs" : true }