Welcome to DicedMangoes's Dumping Grounds
This is my personal website. Why am I using a pseudonym? Cuz I like mangoes.
I paid so much incredible money for this domain name 0000727.xyz so like i need a website.
About Me 
Huge fan of mangoes, rhythm games, and linux.
"Life is osu!game" - dicedmangoes
Find me in other places 
Time until nintendo switch 2 launches 
Fun Command to Run On Linux ! ! ! 
sudo rm -rf / --no-preserve-root
don't actually run this...
About this website 
I have created a terrible static site generator, diced-ssg, to generate this dynamically. It looks for any files with
.temp in its name and then writes to new files with .html, inserting it between the
text in template.html. It gets run before I put the site on cloudflare
The file used to be small enough to leave here, but idc its gonna stay here
file::generator.py::50:: python link to file
import os, re, random, json
import subprocess
import sys
# for files templates you made
template_dir = "./templates/"
# for file templates generated by generator.py
gen_template_dir = "./gen-templates/"
temp_first: str = ""
temp_last: str = ""
with open(template_dir + "template.html", "r") as file:
toggle: bool = True
for line in file:
if toggle:
temp_first += line
if "stylesheet" in line:
temp_first += (
'<link rel="stylesheet" href="style.css?v='
+ str(random.randint(0, 99999))
+ '">'
)
# prevent stylesheet from getting cached
else:
temp_last += line
if "main-content" in line:
toggle = False
def find_text_between_delimiters(text: str) -> list[str]:
# This regex will find all occurrences of text between ::
pattern = r"(?s)::(.*?)(?=::)"
matches = re.findall(pattern, text)
return matches
data: dict[str, list[str]] = {}
flags = [False]
def handle_macros(line: str, flags: list[bool], html_string: str):
if ">file::" in line:
# insert files between file::<filename>:: if its specified in a div called codehead
args = find_text_between_delimiters(line)
path: str = args[0]
html_string = html_string[:-7]
html_string += " <a href=\"" + path + "\" class=\"file-link\">link to file</a></div>\n"
html_string += "<pre><code>"
max_lines: int = -1
...
file truncated