diff --git a/EmojiKitchen-main/EmojiKitchen-main/.gitignore b/EmojiKitchen-main/EmojiKitchen-main/.gitignore new file mode 100644 index 00000000..8300b6c3 --- /dev/null +++ b/EmojiKitchen-main/EmojiKitchen-main/.gitignore @@ -0,0 +1,162 @@ +.DS_Store + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ \ No newline at end of file diff --git a/EmojiKitchen-main/EmojiKitchen-main/README.md b/EmojiKitchen-main/EmojiKitchen-main/README.md new file mode 100755 index 00000000..a45ddd2b --- /dev/null +++ b/EmojiKitchen-main/EmojiKitchen-main/README.md @@ -0,0 +1 @@ +# EmojiKitchen diff --git a/EmojiKitchen-main/EmojiKitchen-main/config.py b/EmojiKitchen-main/EmojiKitchen-main/config.py new file mode 100755 index 00000000..a901018d --- /dev/null +++ b/EmojiKitchen-main/EmojiKitchen-main/config.py @@ -0,0 +1,2 @@ +SERVER_NAME = "localhost:5000" +DEBUG = True \ No newline at end of file diff --git a/EmojiKitchen-main/EmojiKitchen-main/kitchen.py b/EmojiKitchen-main/EmojiKitchen-main/kitchen.py new file mode 100755 index 00000000..74b43be9 --- /dev/null +++ b/EmojiKitchen-main/EmojiKitchen-main/kitchen.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python3 + +# -*- coding: utf-8 -*- + +import requests +from flask import Flask, render_template + +# Flask Goodness +app = Flask(__name__, instance_relative_config = True) +app.config.from_object("config") +app.config.from_pyfile("config.py", silent = True) + +def getEmojiCombinations(): + try: + return { emoji : { (left if left != emoji else right) : (left.replace("-", "-u"), right.replace("-", "-u"), date) for left, right, date in map(lambda c: c.values(), combinations) } for emoji, combinations in requests.get("https://raw.githubusercontent.com/xsalazar/emoji-kitchen/main/src/Components/emojiData.json").json().items() } + except: + return {} + +@app.route("/") +def index(): + return render_template("index.html", combinations = getEmojiCombinations(), size = 64) + +if __name__ == "__main__": + app.run() diff --git a/EmojiKitchen-main/EmojiKitchen-main/static/favicon.ico b/EmojiKitchen-main/EmojiKitchen-main/static/favicon.ico new file mode 100644 index 00000000..1e2cfc2f Binary files /dev/null and b/EmojiKitchen-main/EmojiKitchen-main/static/favicon.ico differ diff --git a/EmojiKitchen-main/EmojiKitchen-main/static/img/background.png b/EmojiKitchen-main/EmojiKitchen-main/static/img/background.png new file mode 100644 index 00000000..0b5b88af Binary files /dev/null and b/EmojiKitchen-main/EmojiKitchen-main/static/img/background.png differ diff --git a/EmojiKitchen-main/EmojiKitchen-main/static/img/logo.png b/EmojiKitchen-main/EmojiKitchen-main/static/img/logo.png new file mode 100644 index 00000000..6ec10630 Binary files /dev/null and b/EmojiKitchen-main/EmojiKitchen-main/static/img/logo.png differ diff --git a/EmojiKitchen-main/EmojiKitchen-main/static/img/origin.png b/EmojiKitchen-main/EmojiKitchen-main/static/img/origin.png new file mode 100644 index 00000000..b73eace4 Binary files /dev/null and b/EmojiKitchen-main/EmojiKitchen-main/static/img/origin.png differ diff --git a/EmojiKitchen-main/EmojiKitchen-main/static/robots.txt b/EmojiKitchen-main/EmojiKitchen-main/static/robots.txt new file mode 100644 index 00000000..eb053628 --- /dev/null +++ b/EmojiKitchen-main/EmojiKitchen-main/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/EmojiKitchen-main/EmojiKitchen-main/static/style.css b/EmojiKitchen-main/EmojiKitchen-main/static/style.css new file mode 100644 index 00000000..feb86676 --- /dev/null +++ b/EmojiKitchen-main/EmojiKitchen-main/static/style.css @@ -0,0 +1,53 @@ + +html, +body { + margin: 0; + padding: 0; + height: 100%; + width: 100%; +} + +body { + background-image: url('img/background.png'); + background-attachment: fixed; + font-family: 'Open Sans', sans-serif; + margin: 20px; +} + +.full-size { + overflow: scroll; + height: 100%; + width: 100%; +} + +.sticky-table-headers-top { + /* Stick to the left */ + top: 0; + position: sticky; + + /* Displayed on top of other rows when scrolling */ + z-index: 1; +} + +.sticky-table-headers-left { + /* Stick to the left */ + left: 0; + position: sticky; + + /* Displayed on top of other rows when scrolling */ + z-index: 0; +} + +.emojiSquared { + background-color: #9ca3af; + box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034), + 0 6.7px 5.3px rgba(0, 0, 0, 0.048), + 0 12.5px 10px rgba(0, 0, 0, 0.06), + 0 12.3px 7.9px rgba(0, 0, 0, 0.072), + 0 11.8px 3.4px rgba(0, 0, 0, 0.086), + 0 10px 8px rgba(0, 0, 0, 0.12); +} + +a { + color: inherit; +} \ No newline at end of file diff --git a/EmojiKitchen-main/EmojiKitchen-main/templates/index.html b/EmojiKitchen-main/EmojiKitchen-main/templates/index.html new file mode 100644 index 00000000..b63302f2 --- /dev/null +++ b/EmojiKitchen-main/EmojiKitchen-main/templates/index.html @@ -0,0 +1,44 @@ + + + + Emoji Kitchen + + + + + +
+ + + + {% for emoji in combinations.keys() %} + + {% endfor %} + + {% for rowEmoji in combinations.keys() %} + + + + {% for columnEmoji in combinations.keys() %} + + {% endfor %} + + {% endfor %} +
+ + + {{ emoji }} +
+ {{ rowEmoji }} + + {% if columnEmoji not in combinations[rowEmoji] %} + + {% else %} + {% for left, right, date in [combinations[rowEmoji][columnEmoji]] %} + u{{ left }}_u{{ right }} + {% endfor %} + {% endif %} +
+
+ + diff --git a/index.html b/index.html index 036c30b4..abf40e52 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,9 @@

this site is under construction

-home games bata games +try me out well site is down diff --git a/index2.html b/index2.html index 015b3a22..a3d7aaea 100644 --- a/index2.html +++ b/index2.html @@ -2,6 +2,7 @@ Classwork + hi