-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (46 loc) · 4.2 KB
/
setup.py
File metadata and controls
59 lines (46 loc) · 4.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import os
industries = ["Software Engineering", "UX Design", "Web Development", "Literature", "Art", "Music", "Film", "Photography", "Architecture", "Interior Design", "Graphic Design", "Fashion", "Product Design", "Industrial Design", "Game Design", "Animation", "Videography", "Journalism", "Advertising", "Marketing", "Public Relations", "Business", "Economics", "Finance", "Law", "Politics", "Psychology", "Sociology", "History", "Philosophy", "Religion", "Education", "Medicine", "Health", "Nutrition", "Fitness", "Sports", "Travel", "Food", "Cooking", "Crafts", "Home Improvement", "Gardening", "Pets", "Parenting", "Beauty", "Lifestyle", "Science", "Technology", "Mathematics", "Engineering", "Astronomy", "Chemistry", "Physics", "Biology", "Computer Science", "Data Science", "Robotics", "Entrepreneurship", "Personal Development", "Productivity", "Self Improvement", "Career Development", "Hobbies", "Languages", "Other"]
industries = sorted(industries)
industries = [industry.lower().replace(" ", "_") for industry in industries]
def generate_readme(industries, readme_file):
with open(readme_file, "w") as f:
f.write("# chatGPT Prompts For Everyone! *Domain Agnostic Prompts for Savvy Professionals* \n## Industries List\n\n")
for industry in industries:
f.write(f"- [{industry}](./industries/{industry}.md)\n")
# generate readme
#!generate_readme(industries, "README.md")
# create a folder for all of the industries
#// os.remove("industries")
#!os.mkdir("industries")
for industry in industries:
if not os.path.exists(f"./industries/{industry}.md"):
with open(f"./industries/{industry}.md", "w") as f:
f.write(f"# {str(industry).capitalize()}\n")
subfiles = ["JavaScript", "Python", "C#", "Java", "C++", "C", "Ruby", "Swift", "PHP", "Go", "Rust", "Kotlin", "TypeScript", "generator", "mathematician","physicist","professor","R", "Scala", "Perl", "Shell", "Objective-C", "SQL", "Excel Formulas", "Visio", "VBA", "Power BI", "SAS",
"Tableau", "QlikView", "D3.js", "Data Visualization", "Data Analysis", "Machine Learning", "Deep Learning", "algorithm",
"Computer Vision", "Natural Language Processing", "Data Science", "Big Data", "Data Engineering", "DevOps",
"Cloud Computing", "Docker", "Kubernetes", "AWS", "Azure", "Google Cloud", "Linux", "Windows", "macOS", "Detector", "Book",
"iOS", "Android", "Pointers in Computer Science", "Algorithms", "Data Structures", "Operating Systems", "Game", "Advice", ""
"Networking", "Security", "Cryptography", "Blockchain", "IoT", "AR/VR", "Computer Graphics", "Computer Architecture",
"Compilers", "Assembler", "Debugging", "Testing", "Agile", "Scrum", "Kanban", "Lean", "Waterfall", "PMP", "translate",
"PRINCE2", "ITIL", "COBIT", "TOGAF", "SOA", "Microservices", "Monolithic", "Functional Programming", "diet", "coach","english", "Regex", "Full Stack Development", "Front End Development", "Back End Development", "Mobile Development", "Desktop Development",
"Object-Oriented Programming", "Procedural Programming", "Event-Driven Programming", "Concurrent Programming", "Creator",
"Distributed Systems", "Parallel Computing", "High-Performance Computing", "Embedded Systems", "Firmware", "Post"]
subfiles = sorted(subfiles)
subfiles = [sub.replace(" ", "_").replace('.','_').replace('/','').lower() for sub in subfiles]
# remove duplicates
subfiles = list(dict.fromkeys(subfiles))
def generate_readme_topics(industries, readme_file, subfiles):
# Create the specific_topics folder if it doesn't already exist
if not os.path.exists("specific_topics"):
os.makedirs("specific_topics")
with open(readme_file, "w") as f:
f.write("# Industry List\n")
for industry in industries:
# Create subfiles for each programming language and technical program
for subfile in subfiles:
subfile_path = os.path.join("specific_topics", f"{subfile}.md")
with open(subfile_path, "w") as sf:
sf.write(f"# {industry} - {subfile}\n")
f.write(f"- [{industry}](./{industry}.md)\n")
generate_readme_topics(industries, "specific_topics/specific_topics_directory.md", subfiles)