mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-30 11:57:35 +08:00
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. <!-- label(optional scope): pull request title (@your_github_username) --> <!-- I know I know they seem boring but please do them, they help us and you will find out it also helps you.--> <!-- the issue(s) your PR resolves if any (delete if that is not the case) --> <!-- please also reference any issues and or PRs related to your pull request --> <!-- Also remove it if you are not following any issues. --> <!-- pro tip: you can mention an issue, PR, or discussion on GitHub by referencing its hash number e.g: [#1234](https://github.com/monkeytypegame/monkeytype/pull/1234) --> <!-- pro tip: you can press . (dot or period) in the code tab of any GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
This commit is contained in:
parent
c2691b334e
commit
a875aa6ede
3 changed files with 24 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue