Skip to content

Commit

Permalink
move chapters to an occasional scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 4, 2019
1 parent 93e8d0c commit c419a12
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
13 changes: 0 additions & 13 deletions chapters.py

This file was deleted.

2 changes: 0 additions & 2 deletions chapters.sh

This file was deleted.

17 changes: 17 additions & 0 deletions occasional-scripts/chapters.py
@@ -0,0 +1,17 @@
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
import argparse

parser = argparse.ArgumentParser()
parser.add_argument('num_chapters', type=int)
args = parser.parse_args()

task_templates = [
"read chapter {}",
"make chapter summary for chapter {}",
"make flashcards for chapter {}",
]

for i in range(1, args.num_chapters+1):
for template in task_templates:
print(template.format(i))

0 comments on commit c419a12

Please sign in to comment.