Skip to content

Commit

Permalink
Starting 2023 structure
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed-dash committed Nov 21, 2023
1 parent f3668f0 commit 9dabbf7
Show file tree
Hide file tree
Showing 5 changed files with 1,212 additions and 3 deletions.
19 changes: 19 additions & 0 deletions docs/2023/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: default
title: Advent of Code 2023
---
# {{ page.topic}} {{ page.year }}

Welcome to [AoC 2023](https://adventofcode.com/2023){:target="_blank"}!

For this AoC event, I decided to do something a bit different. Up until now, I've been creating my AoC applications in [Visual Studio Code](/python/getting-started#development-environment--editor){:target="_blank"}, posting the code to my [Repo in GitHub](https://github.com/derailed-dash/Advent-of-Code){:target="_blank"}, and then documenting my solutions in this site. My approach to documenting has been to write my web pages using markdown, and then convert this markdown to a website using Jekyll, as described [here](https://medium.com/@derailed.dash/jekyll-container-image-a7785f9c5ed6){:target="_blank"}.

But wouldn't it be nice if I could write the code, write some pretty documentation, and capture the output, **all at the same time and and in the same place?**

Well of course you can! **The answer is [Jupyter Notebooks](/python/jupyter-notebooks){:target="_blank"}!!**

You can check out my Advent of Code 2023 solution in these places:
- In [GitHub](https://github.com/derailed-dash/Advent-of-Code/blob/master/src/AoC_2023/Dazbo's_Advent_of_Code_2023.ipynb){:target="_blank"}
- By running my notebook in the cloud for free, using [Google Collaboratory](https://colab.research.google.com/github/derailed-dash/Advent-of-Code/blob/master/src/AoC_2023/Dazbo's_Advent_of_Code_2023.ipynb){:target="_blank"}.

![2023 Jupyter Notebook in Colab](/assets/images/2017-jn-in-colab.png)
4 changes: 4 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ defaults:
path: "2022" # only apply to files in this folder
values:
year: 2022
- scope:
path: "2023" # only apply to files in this folder
values:
year: 2023
5 changes: 4 additions & 1 deletion docs/_data/navigation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,7 @@ pages:
problem: "Blizzard Basin"
- name: 25
link: /2022/25
problem: "Full of Hot Air"
problem: "Full of Hot Air"
- name: "2023"
link: /2023/
mainnav: True
3 changes: 1 addition & 2 deletions src/AoC_2017/Dazbo's_Advent_of_Code_2017.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1105,8 +1105,7 @@
"%%time\n",
"validate(part1(\"91212129\"), 9) # test with sample data\n",
"soln = part1(input_data)\n",
"logger.info(\"Part 1: total=%d\", soln)\n",
"# logger.info(\"Execution time: %.3f seconds\", t2 - t1)"
"logger.info(\"Part 1: total=%d\", soln)"
]
},
{
Expand Down
Loading

0 comments on commit 9dabbf7

Please sign in to comment.