<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Advent of Code: Explainer</title><link href="https://skenvy.github.io/advent-of-code-explainer/web/" rel="alternate"></link><link href="https://skenvy.github.io/advent-of-code-explainer/web/feeds/all.atom.xml" rel="self"></link><id>https://skenvy.github.io/advent-of-code-explainer/web/</id><updated>9999-12-31T23:59:00+00:00</updated><entry><title>README</title><link href="https://skenvy.github.io/advent-of-code-explainer/web/articles/9999-12-31-readme/" rel="alternate"></link><published>9999-12-31T23:59:00+00:00</published><updated>9999-12-31T23:59:00+00:00</updated><author><name>Skenvy</name></author><id>tag:skenvy.github.io,9999-12-31:/advent-of-code-explainer/web/articles/9999-12-31-readme/</id><summary type="html">&lt;p&gt;Welcome! This &lt;a href="https://getpelican.com/"&gt;pelican&lt;/a&gt; site includes articles written with &lt;a href="https://pyscript.net/"&gt;PyScript&lt;/a&gt;. The articles have to be viewed individually to have the pyscript core load, as it's not loaded for non-article pages. You can view the pelican theme used &lt;a href="https://github.com/Skenvy/advent-of-code-explainer/tree/main/web/theme"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This site is a learning exercise / PoC. You can read the full &lt;a href="https://github.com/Skenvy/advent-of-code-explainer/blob/main/devlog.md"&gt;devlog …&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;p&gt;Welcome! This &lt;a href="https://getpelican.com/"&gt;pelican&lt;/a&gt; site includes articles written with &lt;a href="https://pyscript.net/"&gt;PyScript&lt;/a&gt;. The articles have to be viewed individually to have the pyscript core load, as it's not loaded for non-article pages. You can view the pelican theme used &lt;a href="https://github.com/Skenvy/advent-of-code-explainer/tree/main/web/theme"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This site is a learning exercise / PoC. You can read the full &lt;a href="https://github.com/Skenvy/advent-of-code-explainer/blob/main/devlog.md"&gt;devlog here&lt;/a&gt; and the &lt;a href="https://github.com/Skenvy/advent-of-code-explainer/blob/main/README.md"&gt;README here&lt;/a&gt;. Or read the TL;DR excerpt of the devlog here:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;... the &lt;a href="https://adventofcode.com/"&gt;Advent of Code&lt;/a&gt; is an annual fun code challenge exercise, done as an advent calender, so every December. Of course, part of the fun is finding something to use it as an excuse to learn, beyond the scope of just solving the actual puzzles.&lt;/p&gt;
&lt;p&gt;This year I've decided to use Advent of Code as an excuse to play around with publishing a &lt;a href="https://pypi.org/"&gt;PyPI&lt;/a&gt; package and then using it in a static site that loads &lt;a href="https://pyscript.net/"&gt;PyScript&lt;/a&gt;. There are plenty of sites out there already that act as sites you can paste your input into and get the solution for, so this isn't trying to be the best at that thing, it's purely just to learn and play around with having one repo host the code for a package, and also the static site (generation) that consumes that package via &lt;a href="https://pyscript.net/"&gt;PyScript&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;</content><category term="Meta"></category></entry><entry><title>Mull It Over</title><link href="https://skenvy.github.io/advent-of-code-explainer/web/articles/2024-12-03-mull-it-over/" rel="alternate"></link><published>2024-12-03T00:00:00+00:00</published><updated>2024-12-03T00:00:00+00:00</updated><author><name>Skenvy</name></author><id>tag:skenvy.github.io,2024-12-03:/advent-of-code-explainer/web/articles/2024-12-03-mull-it-over/</id><content type="html">&lt;p&gt;&lt;a href="https://adventofcode.com/2024/day/3"&gt;Link to AoC&lt;/a&gt;.&lt;/p&gt;
&lt;div style="border: 2px solid black;padding: 10px;"&gt;
  &lt;h1&gt;Pyscript Test: AOCE&lt;/h1&gt;
  &lt;p&gt;Run AOCE function&lt;/p&gt;
  &lt;input type="text" id="input_number" placeholder="Type number here..." /&gt;
  &lt;button py-click="do_a_thing"&gt;Get next value&lt;/button&gt;
  &lt;div id="output_number"&gt;&lt;/div&gt;
  &lt;script type="py" src="../../scripts/2024/1.py" config="../../scripts/pyscript.toml"&gt;&lt;/script&gt;
&lt;/div&gt;</content><category term="2024"></category></entry><entry><title>Red-Nosed Reports</title><link href="https://skenvy.github.io/advent-of-code-explainer/web/articles/2024-12-02-red-nosed-reports/" rel="alternate"></link><published>2024-12-02T00:00:00+00:00</published><updated>2024-12-02T00:00:00+00:00</updated><author><name>Skenvy</name></author><id>tag:skenvy.github.io,2024-12-02:/advent-of-code-explainer/web/articles/2024-12-02-red-nosed-reports/</id><content type="html">&lt;p&gt;&lt;a href="https://adventofcode.com/2024/day/2"&gt;Link to AoC&lt;/a&gt;.&lt;/p&gt;
&lt;div style="border: 2px solid black;padding: 10px;"&gt;
  &lt;h1&gt;Pyscript Test: AOCE&lt;/h1&gt;
  &lt;p&gt;Run AOCE function&lt;/p&gt;
  &lt;input type="text" id="input_number" placeholder="Type number here..." /&gt;
  &lt;button py-click="do_a_thing"&gt;Get next value&lt;/button&gt;
  &lt;div id="output_number"&gt;&lt;/div&gt;
  &lt;script type="py" src="../../scripts/2024/1.py" config="../../scripts/pyscript.toml"&gt;&lt;/script&gt;
&lt;/div&gt;</content><category term="2024"></category></entry><entry><title>Historian Hysteria</title><link href="https://skenvy.github.io/advent-of-code-explainer/web/articles/2024-12-01-historian-hysteria/" rel="alternate"></link><published>2024-12-01T00:00:00+00:00</published><updated>2024-12-01T00:00:00+00:00</updated><author><name>Skenvy</name></author><id>tag:skenvy.github.io,2024-12-01:/advent-of-code-explainer/web/articles/2024-12-01-historian-hysteria/</id><content type="html">&lt;p&gt;&lt;a href="https://adventofcode.com/2024/day/1"&gt;Link to AoC&lt;/a&gt;.&lt;/p&gt;
&lt;div style="border: 2px solid black;padding: 10px;"&gt;
  &lt;h1&gt;Pyscript Test: AOCE&lt;/h1&gt;
  &lt;p&gt;Run AOCE function&lt;/p&gt;
  &lt;input type="text" id="input_number" placeholder="Type number here..." /&gt;
  &lt;button py-click="do_a_thing"&gt;Get next value&lt;/button&gt;
  &lt;div id="output_number"&gt;&lt;/div&gt;
  &lt;script type="py" src="../../scripts/2024/1.py" config="../../scripts/pyscript.toml"&gt;&lt;/script&gt;
&lt;/div&gt;</content><category term="2024"></category></entry><entry><title>My First Post with PyScript, with a custom version</title><link href="https://skenvy.github.io/advent-of-code-explainer/web/articles/1970-01-03-my-first-post-with-pyscript-with-a-custom-version/" rel="alternate"></link><published>1970-01-03T00:00:00+00:00</published><updated>1970-01-03T00:00:00+00:00</updated><author><name>Skenvy</name></author><id>tag:skenvy.github.io,1970-01-03:/advent-of-code-explainer/web/articles/1970-01-03-my-first-post-with-pyscript-with-a-custom-version/</id><content type="html">&lt;p&gt;This is an example article that demonstrates the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; box, as well as the pyscript metadata on the article, using a non-default &lt;code&gt;PyScriptVersion&lt;/code&gt;. All this will do is add one to the number in the box.&lt;/p&gt;
&lt;!-- TODO confirm that these relative src paths that work locally are ok once merge in gh-pages under a subdir --&gt;

&lt;div style="border: 2px solid black;padding: 10px;"&gt;
  &lt;h1&gt;Pyscript Test: AOCE&lt;/h1&gt;
  &lt;p&gt;Run AOCE function&lt;/p&gt;
  &lt;input type="text" id="input_number" placeholder="Type number here..." /&gt;
  &lt;button py-click="do_a_thing"&gt;Get next value&lt;/button&gt;
  &lt;div id="output_number"&gt;&lt;/div&gt;
  &lt;script type="py" src="../../scripts/example/example.py" config="../../scripts/example/pyscript.toml"&gt;&lt;/script&gt;
&lt;/div&gt;</content><category term="ExampleArticle"></category></entry><entry><title>My First Post with PyScript</title><link href="https://skenvy.github.io/advent-of-code-explainer/web/articles/1970-01-02-my-first-post-with-pyscript/" rel="alternate"></link><published>1970-01-02T00:00:00+00:00</published><updated>1970-01-02T00:00:00+00:00</updated><author><name>Skenvy</name></author><id>tag:skenvy.github.io,1970-01-02:/advent-of-code-explainer/web/articles/1970-01-02-my-first-post-with-pyscript/</id><content type="html">&lt;p&gt;This is an example article that demonstrates the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; box, as well as the pyscript metadata on the article. All this will do is add one to the number in the box.&lt;/p&gt;
&lt;div style="border: 2px solid black;padding: 10px;"&gt;
  &lt;h1&gt;Pyscript Test: AOCE&lt;/h1&gt;
  &lt;p&gt;Run AOCE function&lt;/p&gt;
  &lt;input type="text" id="input_number" placeholder="Type number here..." /&gt;
  &lt;button id="do_a_thing_button" py-click="do_a_thing"&gt;Get next value&lt;/button&gt;
  &lt;div id="output_number"&gt;&lt;/div&gt;
  &lt;script type="py" src="../../scripts/example/example.py" config="../../scripts/pyscript.toml"&gt;&lt;/script&gt;
  &lt;script type="py" src="../../tests/main.py" config="../../tests/pyscript.toml" terminal&gt;&lt;/script&gt; &lt;!-- Not allowed, can only use one config on page --&gt;
&lt;/div&gt;</content><category term="ExampleArticle"></category></entry><entry><title>My First Post</title><link href="https://skenvy.github.io/advent-of-code-explainer/web/articles/1970-01-01-my-first-post/" rel="alternate"></link><published>1970-01-01T00:00:00+00:00</published><updated>1970-01-01T00:00:00+00:00</updated><author><name>Skenvy</name></author><id>tag:skenvy.github.io,1970-01-01:/advent-of-code-explainer/web/articles/1970-01-01-my-first-post/</id><content type="html">&lt;p&gt;Following is some example text! This is the most basic example article.&lt;/p&gt;</content><category term="ExampleArticle"></category></entry></feed>