r3hab commited on
Commit
110ab61
Β·
verified Β·
1 Parent(s): 72e7a5a

Upload 50 files

Browse files
Files changed (50) hide show
  1. Advanced_Operating_Systems/UNIT I/Introduction.md +0 -0
  2. Advanced_Operating_Systems/UNIT II/Advanced_Processor_Management_Features.md +0 -0
  3. Advanced_Operating_Systems/UNIT III/Advanced_Memory_Management.md +0 -0
  4. Advanced_Operating_Systems/UNIT IV/Advanced_Device_Management_Features.md +0 -0
  5. Advanced_Operating_Systems/UNIT V/Advanced_File_Management_Features.md +0 -0
  6. C++/UNIT I/Language_Fundamentals.md +0 -0
  7. C++/UNIT II/Arrays.md +0 -0
  8. C++/UNIT II/Functions.md +0 -0
  9. C++/UNIT II/Structures.md +0 -0
  10. C++/UNIT III/Inheritance.md +0 -0
  11. C++/UNIT III/Object_Classes.md +0 -0
  12. C++/UNIT IV/Pointers.md +0 -0
  13. C++/UNIT V/Files.md +0 -0
  14. C++/UNIT V/Streams.md +0 -0
  15. C++/UNIT V/Virtual_Functions.md +0 -0
  16. Computer_Architecture/UNIT I/Representation_of_Information.md +0 -0
  17. Computer_Architecture/UNIT II/Micro-Operations.md +0 -0
  18. Computer_Architecture/UNIT II/Register_Transfer_Language.md +0 -0
  19. Computer_Architecture/UNIT III/Basic_Computer_Organization.md +0 -0
  20. Computer_Architecture/UNIT III/Design.md +0 -0
  21. Computer_Architecture/UNIT IV/Central_Processor_Organization.md +0 -0
  22. Computer_Architecture/UNIT IV/Computer_Software.md +0 -0
  23. Computer_Architecture/UNIT V/Input-Output.md +0 -0
  24. Computer_Architecture/UNIT V/Memory_Organization.md +0 -0
  25. Data_Structures_using_C/UNIT I/Introduction_and_Preliminaries.md +0 -0
  26. Data_Structures_using_C/UNIT II/Arrays.md +0 -0
  27. Data_Structures_using_C/UNIT II/Pointers.md +0 -0
  28. Data_Structures_using_C/UNIT II/Records.md +0 -0
  29. Data_Structures_using_C/UNIT II/String_Processing.md +0 -0
  30. Data_Structures_using_C/UNIT III/Linked_Lists.md +0 -0
  31. Data_Structures_using_C/UNIT III/Queues.md +0 -0
  32. Data_Structures_using_C/UNIT III/Recursion.md +0 -0
  33. Data_Structures_using_C/UNIT III/Stacks.md +0 -0
  34. Data_Structures_using_C/UNIT IV/Graphs.md +0 -0
  35. Data_Structures_using_C/UNIT IV/Trees.md +0 -0
  36. Data_Structures_using_C/UNIT V/Searching.md +0 -0
  37. Data_Structures_using_C/UNIT V/Sorting.md +0 -0
  38. Mathematics/UNIT I/Functions.md +0 -0
  39. Mathematics/UNIT I/Mathematical_Logic.md +0 -0
  40. Mathematics/UNIT I/Relations.md +0 -0
  41. Mathematics/UNIT I/Sets.md +0 -0
  42. Mathematics/UNIT II/Boolean_Algebra.md +0 -0
  43. Mathematics/UNIT II/Lattices.md +0 -0
  44. Mathematics/UNIT III/Fields.md +0 -0
  45. Mathematics/UNIT III/Groups.md +0 -0
  46. Mathematics/UNIT III/Rings.md +0 -0
  47. Mathematics/UNIT IV/Graphs.md +0 -0
  48. Mathematics/UNIT V/Trees.md +0 -0
  49. app.py +133 -0
  50. prompt +155 -0
Advanced_Operating_Systems/UNIT I/Introduction.md ADDED
File without changes
Advanced_Operating_Systems/UNIT II/Advanced_Processor_Management_Features.md ADDED
File without changes
Advanced_Operating_Systems/UNIT III/Advanced_Memory_Management.md ADDED
File without changes
Advanced_Operating_Systems/UNIT IV/Advanced_Device_Management_Features.md ADDED
File without changes
Advanced_Operating_Systems/UNIT V/Advanced_File_Management_Features.md ADDED
File without changes
C++/UNIT I/Language_Fundamentals.md ADDED
File without changes
C++/UNIT II/Arrays.md ADDED
File without changes
C++/UNIT II/Functions.md ADDED
File without changes
C++/UNIT II/Structures.md ADDED
File without changes
C++/UNIT III/Inheritance.md ADDED
File without changes
C++/UNIT III/Object_Classes.md ADDED
File without changes
C++/UNIT IV/Pointers.md ADDED
File without changes
C++/UNIT V/Files.md ADDED
File without changes
C++/UNIT V/Streams.md ADDED
File without changes
C++/UNIT V/Virtual_Functions.md ADDED
File without changes
Computer_Architecture/UNIT I/Representation_of_Information.md ADDED
File without changes
Computer_Architecture/UNIT II/Micro-Operations.md ADDED
File without changes
Computer_Architecture/UNIT II/Register_Transfer_Language.md ADDED
File without changes
Computer_Architecture/UNIT III/Basic_Computer_Organization.md ADDED
File without changes
Computer_Architecture/UNIT III/Design.md ADDED
File without changes
Computer_Architecture/UNIT IV/Central_Processor_Organization.md ADDED
File without changes
Computer_Architecture/UNIT IV/Computer_Software.md ADDED
File without changes
Computer_Architecture/UNIT V/Input-Output.md ADDED
File without changes
Computer_Architecture/UNIT V/Memory_Organization.md ADDED
File without changes
Data_Structures_using_C/UNIT I/Introduction_and_Preliminaries.md ADDED
File without changes
Data_Structures_using_C/UNIT II/Arrays.md ADDED
File without changes
Data_Structures_using_C/UNIT II/Pointers.md ADDED
File without changes
Data_Structures_using_C/UNIT II/Records.md ADDED
File without changes
Data_Structures_using_C/UNIT II/String_Processing.md ADDED
File without changes
Data_Structures_using_C/UNIT III/Linked_Lists.md ADDED
File without changes
Data_Structures_using_C/UNIT III/Queues.md ADDED
File without changes
Data_Structures_using_C/UNIT III/Recursion.md ADDED
File without changes
Data_Structures_using_C/UNIT III/Stacks.md ADDED
File without changes
Data_Structures_using_C/UNIT IV/Graphs.md ADDED
File without changes
Data_Structures_using_C/UNIT IV/Trees.md ADDED
File without changes
Data_Structures_using_C/UNIT V/Searching.md ADDED
File without changes
Data_Structures_using_C/UNIT V/Sorting.md ADDED
File without changes
Mathematics/UNIT I/Functions.md ADDED
File without changes
Mathematics/UNIT I/Mathematical_Logic.md ADDED
File without changes
Mathematics/UNIT I/Relations.md ADDED
File without changes
Mathematics/UNIT I/Sets.md ADDED
File without changes
Mathematics/UNIT II/Boolean_Algebra.md ADDED
File without changes
Mathematics/UNIT II/Lattices.md ADDED
File without changes
Mathematics/UNIT III/Fields.md ADDED
File without changes
Mathematics/UNIT III/Groups.md ADDED
File without changes
Mathematics/UNIT III/Rings.md ADDED
File without changes
Mathematics/UNIT IV/Graphs.md ADDED
File without changes
Mathematics/UNIT V/Trees.md ADDED
File without changes
app.py ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import os
3
+
4
+ DATA_DIR = "/" # Replace with your actual data directory
5
+
6
+ def get_subjects():
7
+ """Returns a list of subject directories."""
8
+ return [
9
+ name
10
+ for name in os.listdir(DATA_DIR)
11
+ if os.path.isdir(os.path.join(DATA_DIR, name))
12
+ ]
13
+
14
+ def get_units(subject):
15
+ """Returns a list of unit directories within a subject."""
16
+ subject_path = os.path.join(DATA_DIR, subject)
17
+ return [
18
+ name
19
+ for name in os.listdir(subject_path)
20
+ if os.path.isdir(os.path.join(subject_path, name))
21
+ ]
22
+
23
+ def get_notes(subject, unit):
24
+ """Returns a list of note files within a unit."""
25
+ unit_path = os.path.join(DATA_DIR, subject, unit)
26
+ return [
27
+ name
28
+ for name in os.listdir(unit_path)
29
+ if name.endswith(".md")
30
+ ]
31
+
32
+ def load_note(subject, unit, note):
33
+ """Loads the content of a note file."""
34
+ note_path = os.path.join(DATA_DIR, subject, unit, note)
35
+ try:
36
+ with open(note_path, "r", encoding="utf-8") as f:
37
+ return f.read()
38
+ except Exception as e:
39
+ st.error(f"Error loading note: {e}")
40
+ return None
41
+
42
+ st.set_page_config(
43
+ page_title="Beautiful Notes App",
44
+ page_icon="πŸ“",
45
+ layout="wide",
46
+ initial_sidebar_state="expanded",
47
+ )
48
+
49
+ st.title("πŸ“ Beautiful Notes App")
50
+
51
+ # Sidebar for navigation
52
+ with st.sidebar:
53
+ st.header("Navigation")
54
+ subjects = get_subjects()
55
+ selected_subject = st.selectbox("Select Subject", subjects)
56
+
57
+ if selected_subject:
58
+ units = get_units(selected_subject)
59
+ if units:
60
+ selected_unit = st.selectbox("Select Unit", units)
61
+ if selected_unit:
62
+ notes = get_notes(selected_subject, selected_unit)
63
+ if notes:
64
+ selected_note = st.selectbox("Select Note", notes)
65
+ else:
66
+ st.info("No notes found in this unit.")
67
+ selected_note = None
68
+ else:
69
+ st.info("No units found in this subject.")
70
+ selected_note = None
71
+ else:
72
+ st.info("No units found in this subject.")
73
+ selected_note = None
74
+ else:
75
+ st.info("No subjects found in the data directory.")
76
+ selected_note = None
77
+
78
+ # Main area to display notes
79
+ if selected_subject and selected_unit and selected_note:
80
+ st.header(f"{selected_subject} / {selected_unit} / {selected_note[:-3]}") # Remove .md extension
81
+ note_content = load_note(selected_subject, selected_unit, selected_note)
82
+ if note_content:
83
+ st.markdown(note_content, unsafe_allow_html=True)
84
+ elif selected_subject and selected_unit:
85
+ st.info("Select a note from the sidebar to view it.")
86
+ elif selected_subject:
87
+ st.info("Select a unit from the sidebar to view notes.")
88
+ else:
89
+ st.info("Select a subject from the sidebar to start exploring your notes.")
90
+
91
+ # --- Styling ---
92
+ st.markdown(
93
+ """
94
+ <style>
95
+ /* Add custom styling here */
96
+ .streamlit-expander {
97
+ border: 1px solid #ccc;
98
+ border-radius: 5px;
99
+ margin-bottom: 10px;
100
+ }
101
+ .streamlit-expander-header {
102
+ font-weight: bold;
103
+ padding: 10px;
104
+ }
105
+ .streamlit-expander-content {
106
+ padding: 10px;
107
+ }
108
+ body {
109
+ font-family: sans-serif;
110
+ color: #333;
111
+ background-color: #f4f4f4;
112
+ }
113
+ .stApp {
114
+ max-width: 900px;
115
+ margin: 0 auto;
116
+ padding: 20px;
117
+ background-color: white;
118
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
119
+ border-radius: 10px;
120
+ }
121
+ h1 {
122
+ color: #007bff;
123
+ }
124
+ h2, h3, h4, h5, h6 {
125
+ color: #0056b3;
126
+ }
127
+ .st-bf { /* Styling for selectbox labels */
128
+ font-weight: bold;
129
+ }
130
+ </style>
131
+ """,
132
+ unsafe_allow_html=True,
133
+ )
prompt ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ i want to make a web app using typescript, react and vite
2
+
3
+ the name of the app will be msc 1 semester
4
+
5
+ here it some additional information
6
+
7
+ syllabus
8
+
9
+ Mathematics
10
+
11
+ UNIT I: Mathematical Logic, Sets, Relations, and Functions
12
+
13
+ UNIT II: Lattices & Boolean Algebra
14
+
15
+ UNIT III: Groups, Fields, & Rings
16
+
17
+ UNIT IV: Graphs
18
+
19
+ UNIT V: Trees
20
+
21
+ Advanced Operating Systems
22
+
23
+ UNIT I: Introduction
24
+
25
+ UNIT II: Advanced Processor Management Features
26
+
27
+ UNIT III: Advanced Memory Management
28
+
29
+ UNIT IV: Advanced Device Management Features
30
+
31
+ UNIT V: Advanced File Management Features
32
+
33
+ Data Structures using C
34
+
35
+ UNIT I: Introduction and Preliminaries
36
+
37
+ UNIT II: String Processing, Arrays, Records, and Pointers
38
+
39
+ UNIT III: Linked Lists, Stacks, Queues, Recursion
40
+
41
+ UNIT IV: Trees and Graphs
42
+
43
+ UNIT V: Sorting and Searching
44
+
45
+ C++
46
+
47
+ UNIT I: Language Fundamentals
48
+
49
+ UNIT II: Structures, Functions & Arrays
50
+
51
+ UNIT III: Object Classes and Inheritance
52
+
53
+ UNIT IV: Pointers
54
+
55
+ UNIT V: Virtual Functions, Files & Streams
56
+
57
+ Computer Architecture
58
+
59
+ UNIT I: Representation of Information
60
+
61
+ UNIT II: Register Transfer Language and Micro-Operations
62
+
63
+ UNIT III: Basic Computer Organization and Design
64
+
65
+ UNIT IV: Computer Software and Central Processor Organization
66
+
67
+ UNIT V: Input-Output & Memory Organization
68
+
69
+
70
+
71
+
72
+ so i have completed storing my notes in project folder
73
+
74
+ i have stored my notes like this i want a streamlit app which uses and displayes as beautiful notes app
75
+
76
+
77
+ data/notes/
78
+ β”œβ”€β”€Mathematics/
79
+ β”œβ”€β”€ UNIT_I/
80
+ β”‚ β”œβ”€β”€ Mathematical_Logic.md
81
+ β”‚ β”œβ”€β”€ Sets.md
82
+ β”‚ β”œβ”€β”€ Relations.md
83
+ β”‚ └── Functions.md
84
+ β”œβ”€β”€ UNIT_II/
85
+ β”‚ β”œβ”€β”€ Lattices.md
86
+ β”‚ └── Boolean_Algebra.md
87
+ β”œβ”€β”€ UNIT_III/
88
+ β”‚ β”œβ”€β”€ Groups.md
89
+ β”‚ β”œβ”€β”€ Fields.md
90
+ β”‚ └── Rings.md
91
+ β”œβ”€β”€ UNIT_IV/
92
+ β”‚ └── Graphs.md
93
+ └── UNIT_V/
94
+ └── Trees.md
95
+ Advanced_Operating_Systems/
96
+ β”œβ”€β”€ UNIT_I/
97
+ β”‚ └── Introduction.md
98
+ β”œβ”€β”€ UNIT_II/
99
+ β”‚ └── Advanced_Processor_Management_Features.md
100
+ β”œβ”€β”€ UNIT_III/
101
+ β”‚ └── Advanced_Memory_Management.md
102
+ β”œβ”€β”€ UNIT_IV/
103
+ β”‚ └── Advanced_Device_Management_Features.md
104
+ └── UNIT_V/
105
+ └── Advanced_File_Management_Features.md
106
+ Data_Structures_using_C/
107
+ β”œβ”€β”€ UNIT_I/
108
+ β”‚ └── Introduction_and_Preliminaries.md
109
+ β”œβ”€β”€ UNIT_II/
110
+ β”‚ β”œβ”€β”€ String_Processing.md
111
+ β”‚ β”œβ”€β”€ Arrays.md
112
+ β”‚ β”œβ”€β”€ Records.md
113
+ β”‚ └── Pointers.md
114
+ β”œβ”€β”€ UNIT_III/
115
+ β”‚ β”œβ”€β”€ Linked_Lists.md
116
+ β”‚ β”œβ”€β”€ Stacks.md
117
+ β”‚ β”œβ”€β”€ Queues.md
118
+ β”‚ └── Recursion.md
119
+ β”œβ”€β”€ UNIT_IV/
120
+ β”‚ β”œβ”€β”€ Trees.md
121
+ β”‚ └── Graphs.md
122
+ └── UNIT_V/
123
+ └── Sorting.md
124
+ └── Searching.md
125
+ C++/
126
+ β”œβ”€β”€ UNIT_I/
127
+ β”‚ └── Language_Fundamentals.md
128
+ β”œβ”€β”€ UNIT_II/
129
+ β”‚ β”œβ”€β”€ Structures.md
130
+ β”‚ β”œβ”€β”€ Functions.md
131
+ β”‚ └── Arrays.md
132
+ β”œβ”€β”€ UNIT_III/
133
+ β”‚ β”œβ”€β”€ Object_Classes.md
134
+ β”‚ └── Inheritance.md
135
+ β”œβ”€β”€ UNIT_IV/
136
+ β”‚ └── Pointers.md
137
+ └── UNIT_V/
138
+ β”œβ”€β”€ Virtual_Functions.md
139
+ β”œβ”€β”€ Files.md
140
+ └── Streams.md
141
+ Computer_Architecture/
142
+ β”œβ”€β”€ UNIT_I/
143
+ β”‚ └── Representation_of_Information.md
144
+ β”œβ”€β”€ UNIT_II/
145
+ β”‚ β”œβ”€β”€ Register_Transfer_Language.md
146
+ β”‚ └── Micro-Operations.md
147
+ β”œβ”€β”€ UNIT_III/
148
+ β”‚ β”œβ”€β”€ Basic_Computer_Organization.md
149
+ β”‚ └── Design.md
150
+ β”œβ”€β”€ UNIT_IV/
151
+ β”‚ β”œβ”€β”€ Computer_Software.md
152
+ β”‚ └── Central_Processor_Organization.md
153
+ └── UNIT_V/
154
+ β”œβ”€β”€ Input-Output.md
155
+ └── Memory_Organization.md