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
#!/usr/bin/env python | |
#Reads in RC folder and outputs existing unit-level config files with task types | |
import re | |
import os | |
import sys | |
import glob | |
dir_input = 'path to your alp-workspace' + '/alp-workspace/assets/content/rc' |
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
#!/usr/bin/env python | |
# This program is a fill-in-the blank quiz, prompting for user input at each blank. | |
import os | |
import json | |
with open('questions_and_answers.json', 'r') as f: | |
content = f.read() | |
content_dict = json.loads(content) |
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
#!/usr/bin/env python | |
import re | |
def edit_questions(infile): | |
questions = [] | |
choices = [] | |
fin = open(infile, "r") | |
print "Answers for CSV\n" | |
for line in fin: |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import glob | |
#Names the directory to search (search will include all subdirectories too) | |
dir_input = 'directory' | |
#Names the file that you want to delete |