Skip to content

Commit

Permalink
xmas 🎄🎅
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-d committed Dec 25, 2024
1 parent 573cf73 commit e930d1a
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/extract_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,13 @@ def rgb(s: str) -> str:
code = rgb(line[2])

colors[color] = code
continue

if line.startswith('<pre class="calendar">'):
a = line.index(">") + 1
line = line[a:]
print(line)
continue

calendar = re.search(r'<pre class="calendar.*?">(.+?)</pre>', calendar, re.DOTALL).group(1)
for line in calendar.splitlines():

if "calendar-verycomplete" not in line:
print(line)
continue

a = line.index(">") + 1
Expand Down
Loading

0 comments on commit e930d1a

Please sign in to comment.