Skip to content

Commit

Permalink
refactor(structure): Use snake_case on folders
Browse files Browse the repository at this point in the history
  • Loading branch information
CaedenPH committed Jan 9, 2024
1 parent 386437f commit 99060d3
Show file tree
Hide file tree
Showing 43 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/update_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_daily_challenges(self, month: str) -> int:
:return: The number of daily challenges in the month
"""
try:
files = os.listdir(f"./Daily Challenges/2023/{month.capitalize()}")
files = os.listdir(f"./Daily Challenges/2023/{month.lower()}")
return len(list(filter(lambda f: re.match(r"day_\d{1,2}.py", f), files)))
except FileNotFoundError:
return 0
Expand Down
5 changes: 0 additions & 5 deletions Advent of Code/README.md

This file was deleted.

Empty file.
8 changes: 8 additions & 0 deletions Algorithms/Python/esoteric/fibonacci.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""
Fibonacci
---------
Utilises iterative method to generate n terms of fibonacci
"""

# Output: [0, 1, 1, 2, 3, 5, 8, 13, 21]
(_:=(type)((_X_:=lambda:0).__name__, (tuple)(), {f"{(_C__:=lambda:(''.__getattribute__)('join')([(chr)((2)*(3^5&10*(7+3))**2-(3%4))]*2))()}init{_C__()}":(lambda __:(4)if __.C_(__.__setattr__(_C__(),list(map(int,str(4*3-2)[::-1]))),7)else(None)), "C_": (lambda A,_c,B_: (eval((y:=lambda _Y:''.join(_Y))(((x:=y(list(map(lambda n: chr((2*n)+12+96), range(1,5)))))[1:3],chr(105),x[::3]))).__call__)(A.A(B_)[1])),"A":(lambda o,cc:(eval)(f"([o.__.append((sum)(o.__[(abs)(8%6)-4:])){(y:=lambda _Y:''.join(_Y))([chr((3*(n**2))+99)for n in range(1,3)]+['r'])}(_)in range(cc)],o.__)".__str__(),(locals)()))})());
3 changes: 2 additions & 1 deletion Algorithms/Python/esoteric/morse_code.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Morse code parser (esoteric)
Morse code parser
-----------------
Utilises the morse code constant
> ETIANMSURWDKGOHVF L PJBXCYZQ
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
### Structure
The structure of the repository:
```
├── Daily Challenges
├── daily_challenges
│ ├── 2023
│ │ ├── June
│ │ ├── june
│ │ │ ├── day_one.py
├── Other Problems
| ├── Python
├── other_problems
| ├── python
│ | ├── expressive_words.py
├── Algorithms
| ├── Python
├── algorithms
| ├── python
| | ├── wa_tor.py
├── Advent of Code
├── advent_of_code
| ├── 2023
| | ├── day_one.py
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 99060d3

Please sign in to comment.