From b09562c371423a52970f04a97afc1c761bea35ae Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Fri, 6 Sep 2024 17:16:27 +0530 Subject: [PATCH] chore: remove unused files --- .../01-init/code/.codecrafters/compile.sh | 11 -- .../python/01-init/code/.codecrafters/run.sh | 11 -- solutions/python/01-init/code/.gitignore | 153 ------------------ solutions/python/01-init/code/app/main.py | 10 -- solutions/python/01-init/code/your_program.sh | 15 -- solutions/python/01-init/explanation.md | 18 --- 6 files changed, 218 deletions(-) delete mode 100755 solutions/python/01-init/code/.codecrafters/compile.sh delete mode 100755 solutions/python/01-init/code/.codecrafters/run.sh delete mode 100644 solutions/python/01-init/code/.gitignore delete mode 100644 solutions/python/01-init/code/app/main.py delete mode 100755 solutions/python/01-init/code/your_program.sh delete mode 100644 solutions/python/01-init/explanation.md diff --git a/solutions/python/01-init/code/.codecrafters/compile.sh b/solutions/python/01-init/code/.codecrafters/compile.sh deleted file mode 100755 index c6e646f..0000000 --- a/solutions/python/01-init/code/.codecrafters/compile.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# -# This script is used to compile your program on CodeCrafters -# -# This runs before .codecrafters/run.sh -# -# Learn more: https://codecrafters.io/program-interface - -set -e # Exit on failure - -# (This file is empty since Python programs don't use a compile step) diff --git a/solutions/python/01-init/code/.codecrafters/run.sh b/solutions/python/01-init/code/.codecrafters/run.sh deleted file mode 100755 index af13576..0000000 --- a/solutions/python/01-init/code/.codecrafters/run.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# -# This script is used to run your program on CodeCrafters -# -# This runs after .codecrafters/compile.sh -# -# Learn more: https://codecrafters.io/program-interface - -set -e # Exit on failure - -exec python3 -m app.main "$@" diff --git a/solutions/python/01-init/code/.gitignore b/solutions/python/01-init/code/.gitignore deleted file mode 100644 index 06109db..0000000 --- a/solutions/python/01-init/code/.gitignore +++ /dev/null @@ -1,153 +0,0 @@ -# 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/ diff --git a/solutions/python/01-init/code/app/main.py b/solutions/python/01-init/code/app/main.py deleted file mode 100644 index 3061538..0000000 --- a/solutions/python/01-init/code/app/main.py +++ /dev/null @@ -1,10 +0,0 @@ -import socket # noqa: F401 - - -def main(): - server_socket = socket.create_server(("localhost", 6379), reuse_port=True) - server_socket.accept() # wait for client - - -if __name__ == "__main__": - main() diff --git a/solutions/python/01-init/code/your_program.sh b/solutions/python/01-init/code/your_program.sh deleted file mode 100755 index 016e98e..0000000 --- a/solutions/python/01-init/code/your_program.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -# -# Use this script to run your program LOCALLY. -# -# Note: Changing this script WILL NOT affect how CodeCrafters runs your program. -# -# Learn more: https://codecrafters.io/program-interface - -set -e # Exit early if any commands fail - -# Copied from .codecrafters/run.sh -# -# - Edit this to change how your program runs locally -# - Edit .codecrafters/run.sh to change how your program runs remotely -exec python3 -m app.main "$@" diff --git a/solutions/python/01-init/explanation.md b/solutions/python/01-init/explanation.md deleted file mode 100644 index 0c3f0ae..0000000 --- a/solutions/python/01-init/explanation.md +++ /dev/null @@ -1,18 +0,0 @@ -The entry point for your Kafka implementation is in `app/main.py`. - -Study and uncomment the relevant code: - -```python -# Uncomment this to pass the first stage - -server_socket = socket.create_server(("localhost", 6379), reuse_port=True) -server_socket.accept() # wait for client -``` - -Push your changes to pass the first stage: - -``` -git add . -git commit -m "pass 1st stage" # any msg -git push origin master -```