From a875aa6edeccd3b2f02e0244aa1dbbebcb596343 Mon Sep 17 00:00:00 2001 From: sapbotgit <120243584+sapbotgit@users.noreply.github.com> Date: Thu, 27 Nov 2025 03:33:32 +0500 Subject: [PATCH] impr(quotes): Add quotes from eChat source code (@sapbotgit) (#7154) ### Description Different snippets of code from my old, dead project. ### Checks - [X] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [ ] Adding a language? - Make sure to follow the [languages documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LANGUAGES.md) - [ ] Add language to `packages/schemas/src/languages.ts` - [ ] Add language to exactly one group in `frontend/src/ts/constants/languages.ts` - [ ] Add language json file to `frontend/static/languages` - [ ] Adding a theme? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/THEMES.md) - [ ] Add theme to `packages/schemas/src/themes.ts` - [ ] Add theme to `frontend/src/ts/constants/themes.ts` - [ ] Add theme css file to `frontend/static/themes` - [ ] Add some screenshot of the theme, especially with different test settings (colorful, flip colors) to your pull request - [ ] Adding a layout? - [ ] Make sure to follow the [layouts documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LAYOUTS.md) - [ ] Add layout to `packages/schemas/src/layouts.ts` - [ ] Add layout json file to `frontend/static/layouts` - [ ] Adding a font? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/FONTS.md) - [ ] Add font file to `frontend/static/webfonts` - [ ] Add font to `packages/schemas/src/fonts.ts` - [ ] Add font to `frontend/src/ts/constants/fonts.ts` - [ ] Check if any open issues are related to this PR; if so, be sure to tag them below. - [ ] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [ ] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title. --- frontend/static/quotes/code_bash.json | 6 ++++++ frontend/static/quotes/code_css.json | 6 ++++++ frontend/static/quotes/code_python.json | 12 ++++++++++++ 3 files changed, 24 insertions(+) diff --git a/frontend/static/quotes/code_bash.json b/frontend/static/quotes/code_bash.json index 5a0fefe1c..3e0e21bf6 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 43858902b..b7ed83842 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 a458bc9d3..82f7b33f3 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 } ] }