Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .tmp_docs/code_wars_documentation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@


--- Page 1 ---



--- Page 2 ---



--- Page 3 ---



--- Page 4 ---



--- Page 5 ---



--- Page 6 ---



--- Page 7 ---



--- Page 8 ---



--- Page 9 ---



--- Page 10 ---

20 changes: 20 additions & 0 deletions .tmp_docs/codewars.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@


--- Page 1 ---



--- Page 2 ---



--- Page 3 ---



--- Page 4 ---



--- Page 5 ---

36 changes: 36 additions & 0 deletions .tmp_docs/codewars_overview.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@


--- Page 1 ---



--- Page 2 ---



--- Page 3 ---



--- Page 4 ---



--- Page 5 ---



--- Page 6 ---



--- Page 7 ---



--- Page 8 ---



--- Page 9 ---

22 changes: 22 additions & 0 deletions .tmp_docs/extract_pdfs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from pathlib import Path
import fitz # PyMuPDF

FILES = [
r"c:\Users\OMEN\Downloads\codewars.pdf",
r"c:\Users\OMEN\Downloads\codewars overview.pdf",
r"c:\Users\OMEN\Downloads\code wars documentation.pdf",
]

OUTDIR = Path(r"c:\Users\OMEN\CodeWarsV6\.tmp_docs")
OUTDIR.mkdir(exist_ok=True)

for file_path in FILES:
text = []
doc = fitz.open(file_path)
for i, page in enumerate(doc):
page_text = page.get_text("text") or ""
text.append(f"\n\n--- Page {i + 1} ---\n\n{page_text}")
doc.close()
outpath = OUTDIR / (Path(file_path).stem.replace(" ", "_") + ".txt")
outpath.write_text("".join(text), encoding="utf-8")
print(f"Wrote {outpath}")
Binary file added .tmp_docs/pages/code_wars_documentation_p01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/code_wars_documentation_p10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_overview_p09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_p01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_p02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_p03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_p04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .tmp_docs/pages/codewars_p05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions .tmp_docs/render_pdf_pages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from pathlib import Path
import fitz # PyMuPDF

FILES = [
r"c:\Users\OMEN\Downloads\codewars.pdf",
r"c:\Users\OMEN\Downloads\codewars overview.pdf",
r"c:\Users\OMEN\Downloads\code wars documentation.pdf",
]

OUTDIR = Path(r"c:\Users\OMEN\CodeWarsV6\.tmp_docs\pages")
OUTDIR.mkdir(parents=True, exist_ok=True)

ZOOM = 2.0 # ~144 DPI for readable text
MATRIX = fitz.Matrix(ZOOM, ZOOM)

for file_path in FILES:
doc = fitz.open(file_path)
stem = Path(file_path).stem.replace(" ", "_")
for i, page in enumerate(doc, start=1):
pix = page.get_pixmap(matrix=MATRIX, alpha=False)
outpath = OUTDIR / f"{stem}_p{i:02d}.png"
pix.save(outpath)
print(f"Wrote {outpath}")
doc.close()
Binary file modified __pycache__/client.cpython-313.pyc
Binary file not shown.
Loading