├── mgit ├── sample.md ├── functions.pdf └── floor_ceil_assignment ├── CMR FDP ├── readme.md ├── ai_agents.md ├── differences.md └── rag.md ├── assignments ├── nodejs │ ├── files │ │ ├── b.txt │ │ ├── a.txt │ │ └── c.html │ ├── solutions │ │ ├── todos.json │ │ ├── fileServer.solution.js │ │ ├── todoServer.solution.simple.js │ │ ├── todoServer.solution.file.js │ │ ├── index.html │ │ └── todoServer.solution.js │ ├── .gitignore │ ├── package.json │ ├── fileServer.js │ ├── readme.md │ ├── authenticationServer.js │ ├── todoServer.js │ └── tests │ │ ├── authenticationServer.test.js │ │ ├── todoServer.test.js │ │ └── fileServer.test.js ├── react │ ├── solutions │ │ ├── courses.json │ │ ├── users.json │ │ └── admins.json │ ├── 01-reconciler │ │ ├── dom-advance.test.js │ │ ├── .gitignore │ │ ├── jest.config.js │ │ ├── dom-simple.test.js │ │ ├── solution │ │ │ └── script.solution.js │ │ ├── index.html │ │ ├── README.md │ │ ├── package.json │ │ ├── script-ugly.js │ │ ├── script-less-ugly.js │ │ ├── script-vdom.js │ │ ├── script-vdom-batch.js │ │ └── script-vdom-comparision.js │ ├── package.json │ ├── README.md │ ├── 02-course-app-easy-2 │ │ ├── package.json │ │ ├── index.js │ │ └── README.md │ ├── 02-course-app-easy │ │ ├── package.json │ │ ├── index.js │ │ └── README.md │ ├── 03-course-app-medium │ │ ├── package.json │ │ ├── index.js │ │ └── README.md │ └── 04-course-app-hard │ │ ├── package.json │ │ ├── index.js │ │ └── README.md ├── full_stack │ ├── 01-easy-todo-app │ │ ├── src │ │ │ ├── App.css │ │ │ ├── index.css │ │ │ ├── main.jsx │ │ │ ├── App.jsx │ │ │ └── assets │ │ │ │ └── react.svg │ │ ├── vite.config.js │ │ ├── .gitignore │ │ ├── index.html │ │ ├── README.md │ │ ├── .eslintrc.cjs │ │ ├── package.json │ │ └── public │ │ │ └── vite.svg │ ├── 02-medium-course-selling-app-admin-dashboard │ │ ├── src │ │ │ ├── App.css │ │ │ ├── index.css │ │ │ ├── main.jsx │ │ │ ├── components │ │ │ │ ├── Register.jsx │ │ │ │ ├── ShowCourses.jsx │ │ │ │ ├── CreateCourse.jsx │ │ │ │ ├── Login.jsx │ │ │ │ └── Landing.jsx │ │ │ ├── App.jsx │ │ │ └── assets │ │ │ │ └── react.svg │ │ ├── vite.config.js │ │ ├── .gitignore │ │ ├── index.html │ │ ├── .eslintrc.cjs │ │ ├── package.json │ │ ├── README.md │ │ └── public │ │ │ └── vite.svg │ ├── 04-hard-use-mui │ │ └── README.md │ └── 03-hard-course-selling-app-user-side │ │ └── README.md ├── fs_typescript │ ├── assignment-2 │ │ ├── src │ │ │ ├── App.css │ │ │ ├── store │ │ │ │ └── authState.js │ │ │ ├── main.jsx │ │ │ ├── index.css │ │ │ ├── Components │ │ │ │ ├── Login.jsx │ │ │ │ ├── Signup.jsx │ │ │ │ └── TodoList.jsx │ │ │ ├── App.jsx │ │ │ └── assets │ │ │ │ └── react.svg │ │ ├── vite.config.js │ │ ├── .gitignore │ │ ├── index.html │ │ ├── .eslintrc.cjs │ │ ├── package.json │ │ ├── public │ │ │ └── vite.svg │ │ └── README.md │ ├── assignment-1 │ │ ├── .gitignore │ │ ├── package.json │ │ ├── db │ │ │ └── index.js │ │ ├── index.js │ │ ├── middleware │ │ │ └── index.js │ │ ├── routes │ │ │ ├── todo.js │ │ │ └── auth.js │ │ └── README.md │ └── README.md ├── async-js │ ├── easy │ │ ├── 4-write-to-file.md │ │ ├── 1-counter.md │ │ ├── 3-read-from-file.md │ │ └── 2-counter.md │ ├── hard (promises) │ │ ├── 1-promisify-setTimeout.js │ │ ├── 2-sleep-completely.js │ │ ├── 3-promise-all.js │ │ └── 4-promise-chain.js │ ├── medium │ │ ├── 2-clock.md │ │ └── 1-file-cleaner.md │ └── README.md └── js │ ├── medium │ ├── times.js │ └── palindrome.js │ ├── hard │ ├── todo-list.js │ └── calculator.js │ ├── easy │ ├── expenditure-analysis.js │ └── anagram.js │ ├── README.md │ ├── package.json │ └── tests │ ├── anagram.test.js │ ├── palindrome.test.js │ ├── todo-list.test.js │ ├── expenditure-analysis.test.js │ └── calculator.test.js ├── attendance_app ├── data.json ├── students.json └── server.js ├── backend ├── .gitignore ├── prompts.md ├── Basic_FSD │ ├── database.json │ ├── package.json │ ├── index.html │ ├── styles.css │ ├── server.js │ └── script.js └── command_notes.md ├── groq_code ├── cognizant.md ├── dsa_resource _ elevatebox.pdf ├── ml_projects └── Heart failure detection through ecg analysis using CNN │ ├── README.md │ └── ECG Testing_GUI.py ├── AppointmentApp ├── style.css ├── index.html ├── script.js └── server.js ├── visaa_oa ├── assignments.md ├── input.md ├── trees.md ├── sample_questions.md └── strings2.md ├── nodejs └── file.js ├── anurag_hackathon └── final_prompt.md ├── MRU_FDP ├── ai_agents.md ├── differences.md └── rag.md ├── crewai_experiments └── README.md ├── mongodb └── server.js ├── nnrg_workshop └── index.html └── Finishing School └── fullstack_app.md /mgit/sample.md: -------------------------------------------------------------------------------- 1 | xys 2 | -------------------------------------------------------------------------------- /CMR FDP/readme.md: -------------------------------------------------------------------------------- 1 | - test 2 | -------------------------------------------------------------------------------- /assignments/nodejs/files/b.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /attendance_app/data.json: -------------------------------------------------------------------------------- 1 | [ 2 | 3 | ] -------------------------------------------------------------------------------- /backend/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /assignments/nodejs/solutions/todos.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assignments/react/solutions/courses.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /assignments/react/solutions/users.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /assignments/nodejs/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /assignments/nodejs/files/a.txt: -------------------------------------------------------------------------------- 1 | hello from a.txt -------------------------------------------------------------------------------- /assignments/full_stack/01-easy-todo-app/src/App.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assignments/full_stack/01-easy-todo-app/src/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assignments/react/01-reconciler/dom-advance.test.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assignments/fs_typescript/assignment-2/src/App.css: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assignments/react/01-reconciler/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /assignments/fs_typescript/assignment-1/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .idea/ 3 | node_modules 4 | -------------------------------------------------------------------------------- /assignments/full_stack/02-medium-course-selling-app-admin-dashboard/src/App.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assignments/full_stack/02-medium-course-selling-app-admin-dashboard/src/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mgit/functions.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elevatebox/opensource/HEAD/mgit/functions.pdf -------------------------------------------------------------------------------- /backend/prompts.md: -------------------------------------------------------------------------------- 1 | Chat : https://chatgpt.com/share/67210311-5120-8001-bba4-170c094550a4 2 | 3 | -------------------------------------------------------------------------------- /assignments/react/01-reconciler/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | testEnvironment: 'jsdom', 3 | }; 4 | 5 | -------------------------------------------------------------------------------- /groq_code: -------------------------------------------------------------------------------- 1 | https://colab.research.google.com/drive/10AqZ04Ca0UvXmDKdARnJnnyBIdjKW8ng#scrollTo=VJr52wYeA-dx 2 | -------------------------------------------------------------------------------- /cognizant.md: -------------------------------------------------------------------------------- 1 | ** 2 | https://docs.google.com/document/d/1Yh33rnVy65Hiqxsi0O8LZxsH9OqDbxBSESy5R6L5nGY/edit?tab=t.0** 3 | -------------------------------------------------------------------------------- /dsa_resource _ elevatebox.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elevatebox/opensource/HEAD/dsa_resource _ elevatebox.pdf -------------------------------------------------------------------------------- /assignments/react/01-reconciler/dom-simple.test.js: -------------------------------------------------------------------------------- 1 | { 2 | "status":200, 3 | "data":{ 4 | "queue_length":"5", 5 | } 6 | } -------------------------------------------------------------------------------- /assignments/react/01-reconciler/solution/script.solution.js: -------------------------------------------------------------------------------- 1 | 2 | // What are u looking for? 3 | // You'll get it on Friday you lazy porson 4 | -------------------------------------------------------------------------------- /assignments/react/solutions/admins.json: -------------------------------------------------------------------------------- 1 | [{"username":"harkirat1@gmail.com","password":"123456"},{"username":"harkirat1@gmail1.com","password":"123456"}] -------------------------------------------------------------------------------- /assignments/react/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "express": "^4.18.2", 4 | "jsonwebtoken": "^9.0.0", 5 | "mongoose": "^7.3.1" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /assignments/nodejs/files/c.html: -------------------------------------------------------------------------------- 1 | 2 |
${appt.name} - ${appt.reason}
12 |${appt.time} on ${appt.date}
13 |${slot}
`) 25 | .join(""); 26 | } 27 | 28 | // Book an appointment 29 | async function bookAppointment(e) { 30 | e.preventDefault(); 31 | const name = document.getElementById("name").value; 32 | const reason = document.getElementById("reason").value; 33 | const time = document.getElementById("time").value; 34 | const date = document.getElementById("date-picker").value; 35 | 36 | const res = await fetch(`${baseUrl}/book`, { 37 | method: "POST", 38 | headers: { "Content-Type": "application/json" }, 39 | body: JSON.stringify({ name, reason, time, date }), 40 | }); 41 | const result = await res.json(); 42 | alert(result.message); 43 | fetchAppointments(); 44 | } 45 | 46 | document.addEventListener("DOMContentLoaded", fetchAppointments); 47 | -------------------------------------------------------------------------------- /assignments/fs_typescript/assignment-2/src/Components/Signup.jsx: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react'; 2 | import {Link, useNavigate} from 'react-router-dom'; 3 | import {useSetRecoilState} from "recoil"; 4 | import {authState} from "../store/authState.js"; 5 | 6 | const Signup = () => { 7 | const [username, setUsername] = useState(''); 8 | const [password, setPassword] = useState(''); 9 | 10 | const handleSignup = async () => { 11 | const response = await fetch('http://localhost:3000/auth/signup', { 12 | method: 'POST', 13 | headers: { 'Content-Type': 'application/json' }, 14 | body: JSON.stringify({ username, password }) 15 | }); 16 | // Todo: Create a type for the response that you get back from the server 17 | const data = await response.json(); 18 | if (data.token) { 19 | localStorage.setItem("token", data.token) 20 | window.location = "/todos"; 21 | } else { 22 | alert("Error while signing up"); 23 | } 24 | }; 25 | 26 | return ( 27 |{todo.description}
61 | 62 |