diff --git a/frontend/static/quotes/code_bash.json b/frontend/static/quotes/code_bash.json index 5a0fefe1cb8b..3e0e21bf6b15 100644 --- a/frontend/static/quotes/code_bash.json +++ b/frontend/static/quotes/code_bash.json @@ -66,6 +66,12 @@ "source": "Monitoring disk usage in Bash", "length": 218, "id": 10 + }, + { + "text": "echo INSTALLING PACKAGES\nsudo apt install python3 --assume-yes\nsudo apt install python3-pip --assume-yes\nsudo apt install python3-flask --assume-yes\nsudo apt install python3-transliterate --assume-yes\nsudo apt install python3-fuzzywuzzy --assume-yes\nsudo apt install vsftpd --assume-yes\nsudo apt install nginx --assume-yes\npip install bext --break-system-packages", + "source": "eChat - Install script line 1-9", + "length": 363, + "id": 11 } ] } diff --git a/frontend/static/quotes/code_css.json b/frontend/static/quotes/code_css.json index 43858902bbf6..b7ed838428cc 100644 --- a/frontend/static/quotes/code_css.json +++ b/frontend/static/quotes/code_css.json @@ -126,6 +126,12 @@ "source": "W3Schools CSS Linear Gradient with Multiple Color Stops", "id": 20, "length": 362 + }, + { + "text": "/* General body styles */\nbody {\n\tfont-family: Arial, sans-serif;\n\tmargin: 0;\n\tpadding: 0;\n\tbackground-color: #f4f4f4;\n\tcolor: #333;\n}", + "source": "eChat - CSS source code line 1-8", + "id": 21, + "length": 134 } ] } diff --git a/frontend/static/quotes/code_python.json b/frontend/static/quotes/code_python.json index a458bc9d3a33..82f7b33f3221 100644 --- a/frontend/static/quotes/code_python.json +++ b/frontend/static/quotes/code_python.json @@ -450,6 +450,18 @@ "source": "https://www.geeksforgeeks.org/python-program-for-dijkstras-shortest-path-algorithm-greedy-algo-7/", "id": 75, "length": 851 + }, + { + "text": "def redirect(link:str, text=\"\"):\n\treturn render_template(\"redirect.html\", link=link, text=text)", + "source": "eChat source code line 35-36", + "id": 76, + "length": 95 + }, + { + "text": "def isEnglish(s):\n\ttry:\n\t\ts.encode(encoding='utf-8').decode('ascii')\n\texcept UnicodeDecodeError:\n\t\treturn False\n\telse:\n\t\treturn True", + "source": "eChat source code line 96-102", + "id": 77, + "length": 132 } ] }