Skip to content

Commit 670a665

Browse files
committed
chore(subtree): import everybody-codes repo
git-subtree-dir: everybody-codes git-subtree-mainline: 7210b1a git-subtree-split: 35f439b
2 parents 7210b1a + 35f439b commit 670a665

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1502
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Python application
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
env:
14+
ENVIRONMENT: production
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.13'
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
29+
- name: Run tests with coverage
30+
run: |
31+
pytest
32+
33+
- name: Upload results to Codecov
34+
uses: codecov/codecov-action@v4
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
slug: aleattene/everybody-codes

everybody-codes/.gitignore

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
# NODEJS ===============================================================================================================
2+
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
lerna-debug.log*
10+
11+
# Diagnostic reports (https://nodejs.org/api/report.html)
12+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
13+
14+
# Runtime data
15+
pids
16+
*.pid
17+
*.seed
18+
*.pid.lock
19+
20+
# Directory for instrumented libs generated by jscoverage/JSCover
21+
lib-cov
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
*.lcov
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Dependency directories
43+
node_modules/
44+
jspm_packages/
45+
46+
# TypeScript v1 declaration files
47+
typings/
48+
49+
# TypeScript cache
50+
*.tsbuildinfo
51+
52+
# Optional npm cache directory
53+
.npm
54+
55+
# Optional eslint cache
56+
.eslintcache
57+
58+
# Microbundle cache
59+
.rpt2_cache/
60+
.rts2_cache_cjs/
61+
.rts2_cache_es/
62+
.rts2_cache_umd/
63+
64+
# Optional REPL history
65+
.node_repl_history
66+
67+
# Output of 'npm pack'
68+
*.tgz
69+
70+
# Yarn Integrity file
71+
.yarn-integrity
72+
# dotenv environment variables file
73+
old_backup/server/.env
74+
.env
75+
.env.test
76+
77+
# parcel-bundler cache (https://parceljs.org/)
78+
.cache
79+
80+
# Next.js build output
81+
.next
82+
83+
# Nuxt.js build / generate output
84+
.nuxt
85+
dist
86+
87+
# Gatsby files
88+
.cache/
89+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
90+
# https://nextjs.org/blog/next-9-1#public-directory-support
91+
# public
92+
93+
# vuepress build output
94+
.vuepress/dist
95+
96+
# Serverless directories
97+
.serverless/
98+
99+
# FuseBox cache
100+
.fusebox/
101+
102+
# DynamoDB Local files
103+
.dynamodb/
104+
105+
# TernJS port file
106+
.tern-port
107+
108+
.DS_Store
109+
110+
111+
112+
# PYTHON ===============================================================================================================
113+
114+
# Byte-compiled / optimized / DLL files
115+
__pycache__/
116+
*.py[cod]
117+
*$py.class
118+
119+
# C extensions
120+
*.so
121+
122+
# Distribution / packaging
123+
.Python
124+
build/
125+
develop-eggs/
126+
dist/
127+
downloads/
128+
eggs/
129+
.eggs/
130+
lib/
131+
lib64/
132+
parts/
133+
sdist/
134+
var/
135+
wheels/
136+
pip-wheel-metadata/
137+
share/python-wheels/
138+
*.egg-info/
139+
.installed.cfg
140+
*.egg
141+
MANIFEST
142+
143+
# PyInstaller
144+
# Usually these files are written by a python script from a template
145+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
146+
*.manifest
147+
*.spec
148+
149+
# Installer logs
150+
pip-log.txt
151+
pip-delete-this-directory.txt
152+
153+
# Unit test / coverage reports
154+
htmlcov/
155+
.tox/
156+
.nox/
157+
.coverage
158+
.coverage.*
159+
# .cache (definite more than once -> NodeJS)
160+
nosetests.xml
161+
coverage.xml
162+
*.cover
163+
*.py,cover
164+
.hypothesis/
165+
.pytest_cache/
166+
167+
# Translations
168+
*.mo
169+
*.pot
170+
171+
# Django stuff:
172+
# *.log (definite more than once -> NodeJS)
173+
local_settings.py
174+
db.sqlite3
175+
db.sqlite3-journal
176+
177+
# Flask stuff:
178+
instance/
179+
.webassets-cache
180+
181+
# Scrapy stuff:
182+
.scrapy
183+
184+
# Sphinx documentation
185+
docs/_build/
186+
187+
# PyBuilder
188+
target/
189+
190+
# Jupyter Notebook
191+
.ipynb_checkpoints
192+
193+
# IPython
194+
profile_default/
195+
ipython_config.py
196+
197+
# pyenv
198+
.python-version
199+
200+
# pipenv
201+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
202+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
203+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
204+
# install all needed dependencies.
205+
#Pipfile.lock
206+
207+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
208+
__pypackages__/
209+
210+
# Celery stuff
211+
celerybeat-schedule
212+
celerybeat.pid
213+
214+
# SageMath parsed files
215+
*.sage.py
216+
217+
# Environments
218+
# .env (definite more than once -> NodeJS)
219+
.venv
220+
env/
221+
venv/
222+
ENV/
223+
env.bak/
224+
venv.bak/
225+
226+
# Spyder project settings
227+
.spyderproject
228+
.spyproject
229+
230+
# Rope project settings
231+
.ropeproject
232+
233+
# mkdocs documentation
234+
/site
235+
236+
# mypy
237+
.mypy_cache/
238+
.dmypy.json
239+
dmypy.json
240+
241+
# Pyre type checker
242+
.pyre/
243+
244+
# ======================================================================================================================
245+
246+
# Everybody Codes
247+
input.txt
248+
input_01.txt
249+
input_02.txt
250+
input_03.txt
251+
results.md

everybody-codes/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Alessandro Attene
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

everybody-codes/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# everybody-codes

everybody-codes/__init__.py

Whitespace-only changes.

everybody-codes/events/__init__.py

Whitespace-only changes.

everybody-codes/events/year_2024_the_kingdom_of_algorithmia/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 01/2024: The Battle for the Farmlands
2+
3+
https://everybody.codes/event/2024/quests/1

everybody-codes/events/year_2024_the_kingdom_of_algorithmia/quest_01_the_battle_for_the_farmlands/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ABBAC
2+
AxBCDDCAxD
3+
xBxAAABCDxCC

0 commit comments

Comments
 (0)