Initial commit.
This commit is contained in:
commit
2a65a36f09
5 changed files with 99 additions and 0 deletions
57
.gitignore
vendored
Normal file
57
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
# These are some examples of commonly ignored file patterns.
|
||||||
|
# You should customize this list as applicable to your project.
|
||||||
|
|
||||||
|
# temporary editor files
|
||||||
|
*.swp
|
||||||
|
*~
|
||||||
|
|
||||||
|
# Python virtual environment
|
||||||
|
virtualenv
|
||||||
|
.env
|
||||||
|
|
||||||
|
# Node artifact files
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
|
||||||
|
# Compiled Java class files
|
||||||
|
*.class
|
||||||
|
|
||||||
|
# Compiled Python bytecode
|
||||||
|
*.py[cod]
|
||||||
|
__pycache__
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# Package files
|
||||||
|
*.jar
|
||||||
|
|
||||||
|
# Maven
|
||||||
|
target/
|
||||||
|
dist/
|
||||||
|
|
||||||
|
# JetBrains IDE
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# Unit test reports
|
||||||
|
TEST*.xml
|
||||||
|
|
||||||
|
# Generated by MacOS
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Generated by Windows
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Applications
|
||||||
|
*.app
|
||||||
|
*.exe
|
||||||
|
*.war
|
||||||
|
|
||||||
|
# Large media files
|
||||||
|
*.mp4
|
||||||
|
*.tiff
|
||||||
|
*.avi
|
||||||
|
*.flv
|
||||||
|
*.mov
|
||||||
|
*.wmv
|
||||||
|
|
||||||
14
README.md
Normal file
14
README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Advent of Code 2023
|
||||||
|
|
||||||
|
I am participating in Advent of Code 2023.
|
||||||
|
|
||||||
|
https://adventofcode.com/2023/
|
||||||
|
|
||||||
|
Last year I dropped out on day 11, but I'm trying to complete
|
||||||
|
it this year. My programming language of choice is Python,
|
||||||
|
again. I haven't been programming a lot during the last
|
||||||
|
three years, and my skills got very rusty.
|
||||||
|
|
||||||
|
(No, I will not aim at the leaderboards. If I don't finish
|
||||||
|
a problem on the same day I will finish it later.
|
||||||
|
I will be taking my sweet time if necessary.)
|
||||||
15
program.py
Executable file
15
program.py
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
# https://adventofcode.com/2022/day/
|
||||||
|
|
||||||
|
def get_lines(filename: str) -> list:
|
||||||
|
with open(filename, "r") as file:
|
||||||
|
return [line.strip() for line in file.readlines()]
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
0
requirements.txt
Normal file
0
requirements.txt
Normal file
13
test_program.py
Executable file
13
test_program.py
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import program
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class TestThing(unittest.TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue