diff --git a/assets/images/finitecraft_logo.png b/assets/images/finitecraft_logo.png index f540fd4140..ca358d818a 100644 Binary files a/assets/images/finitecraft_logo.png and b/assets/images/finitecraft_logo.png differ diff --git a/generate.py b/generate.py index b07b6f4e8e..9cd7efbf99 100644 --- a/generate.py +++ b/generate.py @@ -1,6 +1,11 @@ -import markdown import datetime +import time +import ruamel.yaml +import minify_html +import markdown +import requests +print("Loading...") INFO_TEMPLATE = """
  • @@ -230,9 +235,6 @@ """ - - - FILTER_ITEM_TEMPLATE = """
  • @@ -267,25 +269,24 @@ def markdown_text_parsing(txt): def generate_timeline_item(variables): - for item in variables: - variables[item] = markdown_text_parsing(variables[item]) + # for item in variables: + # if item != "TIME_PERIOD": + variables["description"] = markdown_text_parsing(variables["description"]).replace("

    ", "").replace("

    ", "") return TIMELINE_ITEM_TEMPLATE.replace("NAME", variables['name']).replace("TIME_PERIOD", variables['time_period']).replace( "DESCRIPTION", variables['description']) def generate_skills_item(variables): - for item in variables: - variables[item] = markdown_text_parsing(variables[item]) return SKILLS_ITEM_TEMPLATE.replace("NAME", variables['name']).replace("AMOUNT", variables['level']) def generate_text(variables): - ret = TEXT_TEMPLATE.replace("TEXT", markdown_text_parsing(variables["text"]["text"]).replace("\n", "")) # print(ret) return ret + def generate_header(variables): return OPTIONAL_HEADER_TEMPLATE.replace("NAME", markdown_text_parsing(variables["name"])).replace("ICON", variables["icon"]) @@ -327,7 +328,6 @@ def generate_project_item(variables): .replace("CATEGORY", variables["tag"].lower())) - def generate_projects(variables): variables = variables['projects'] projects_internal = '' @@ -368,7 +368,7 @@ def generate_article(variables, is_first=True): def generate_html(variables): html = (HTML_TEMPLATE.replace("configuration.favicon", variables['favicon']).replace("configuration.name", - variables["name"]).replace( + variables["name"]).replace( "configuration.username", variables["username"]).replace("configuration.sidebar.image", variables["sidebar"]["image"]).replace( "configuration.sidebar.title", variables["sidebar"]["title"]) @@ -400,6 +400,7 @@ def generate_html(variables): variables["analytics"]["tag_manager_id"])) return html + def generate_sitemap(links): sitemap = '' for link in links: @@ -408,8 +409,6 @@ def generate_sitemap(links): - -import requests js = open("assets/js/script.js") resp = requests.post("https://www.toptal.com/developers/javascript-minifier/api/raw", data={"input": js.read()}) minified = open("assets/js/minified_script.js", "w") @@ -418,9 +417,10 @@ def generate_sitemap(links): minified.close() js.close() -import ruamel.yaml -import minify_html + +print("Starting...") +start_time = time.time() y = ruamel.yaml.YAML() jobs = y.load(open("generate_execute.yaml"))["jobs"] links = [] @@ -441,7 +441,7 @@ def generate_sitemap(links): f.write(minify_html.minify(generate_html(data), minify_js=True, remove_processing_instructions=True)) f.close() -print(f"Regenerated {len(jobs)} jobs.") +print(f"Completed {len(jobs)} jobs in {round((time.time() - start_time) * 100, 2)}ms.") f = open("sitemap.xml", "w") f.truncate(0) diff --git a/index.html b/index.html index 0760b2d2b7..57bb8c6afe 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Julian Reder - @quantumbagel

    About

    Hi! I'm Julian Reder! I'm a dually-enrolled programmer who spent a significant amount of time making this website that probably nobody will ever see (except for you, of course)! I'm currently spending my time making fun little bots, mods, projects in Python, C#, Java, and more! You can check out some of my projects here!

    Experience

    Education

    1. Wake Tech

      2023 - Present

      I've started my dual-enrolling at Wake Tech. I'm looking to spend two years here, then apply to NC State.

    2. Homeschooled

      Since Preschool

      I've been homeschooled since I was 5!

    Skills

    • Python

      80

      %
    • Java

      80

      %
    • C#

      90

      %
    • Wordpress

      50

      %

    Projects

    Contact

    If you'd like to chat with me or just get more information than is contained on this website, feel free to reach out using the contact form below:

    Contact Form

    \ No newline at end of file +Julian Reder - @quantumbagel

    About

    Hi! I'm Julian Reder! I'm a dually-enrolled programmer who spent a significant amount of time making this website that probably nobody will ever see (except for you, of course)! I'm currently spending my time making fun little bots, mods, projects in Python, C#, Java, and more! You can check out some of my projects here!

    Experience

    Education

    1. Wake Tech

      2023 - Present

      I've started my dual-enrolling at Wake Tech. I'm looking to spend two years here, then apply to NC State.

    2. Homeschooled

      Since Preschool

      I've been homeschooled since I was 5!

    Skills

    • Python
      80%
    • Java
      80%
    • C#
      90%
    • Wordpress
      50%

    Projects

    Contact

    If you'd like to chat with me or just get more information than is contained on this website, feel free to reach out using the contact form below:

    Contact Form

    \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b528d87afd..5a9ea4540d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ minify-html ruamel.yaml -requests \ No newline at end of file +requests +markdown \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index c449c28270..32a46dd0df 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,79 +1,79 @@ https://quantumbagel.github.io#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io#experience - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io#projects - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io#contact - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/pyaerial#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/triggered#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/piranha#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/statify#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/cameradistance#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/molotov#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/finitecraft#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/chess-challenge#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0 https://quantumbagel.github.io/airstrik.py#about - 2024-03-03T19:00:35Z + 2024-03-21T20:47:09Z daily 1.0