Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move chapters to an occasional scripts folder
- Loading branch information
1 parent
93e8d0c
commit c419a12
Showing
3 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)) |