diff --git a/.gitignore b/.gitignore index 5d381cc..f295d3d 100644 --- a/.gitignore +++ b/.gitignore @@ -158,5 +158,5 @@ cython_debug/ # 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/ +.idea/ diff --git a/LICENSE b/LICENSE index 2071b23..c2167be 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2022 Sven Heidemann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/README.md b/README.md index a234bed..02592f0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # adventofcode-2022 -https://adventofcode.com/2022 \ No newline at end of file +https://adventofcode.com/2022 + +## Execute + +First create a venv and install deps with ```pip install -t deps.txt``` + +Then run code easily with ```./run {Number-of-day}``` \ No newline at end of file diff --git a/run b/run new file mode 100755 index 0000000..21014a4 --- /dev/null +++ b/run @@ -0,0 +1,3 @@ +#!/bin/bash + +python src/day$1.py \ No newline at end of file diff --git a/src/template_dayX.py b/src/template_dayX.py new file mode 100644 index 0000000..329bcfe --- /dev/null +++ b/src/template_dayX.py @@ -0,0 +1,20 @@ +from typing import Optional + +from cpl_core.console import Console +from cpl_core.utils import String +from cpl_query.enumerable import Enumerable +from cpl_query.extension import List +from cpl_core.pipes import * + +# global vars +day = 0 + + +def main(): + Console.write_line('hello world!') + + +if __name__ == '__main__': + Console.write_line(f'Advent of code day {day}') + main() + Console.write_line()