diff --git a/www/fragments/blogview_aoc_list.php b/www/fragments/blogview_aoc_list.php index 4af7a92..ad487af 100644 --- a/www/fragments/blogview_aoc_list.php +++ b/www/fragments/blogview_aoc_list.php @@ -2,6 +2,7 @@ require_once (__DIR__ . '/../internals/base.php'); require_once (__DIR__ . '/../internals/blog.php'); require_once (__DIR__ . '/../internals/adventofcode.php'); +require_once (__DIR__ . '/../internals/ParsedownCustom.php'); $year = $post['extras']['aoc:year']; @@ -20,10 +21,11 @@ $year = $post['extras']['aoc:year'];
- - - - + text(Blog::getPostFragment($post)); + ?> +
$year, 'nav'=>true, 'linkheader'=>false, 'ajax'=>false]; diff --git a/www/internals/mikeschergitgraph.php b/www/internals/mikeschergitgraph.php index a664882..37e99e2 100644 --- a/www/internals/mikeschergitgraph.php +++ b/www/internals/mikeschergitgraph.php @@ -38,7 +38,7 @@ class MikescherGitGraph if (!file_exists($p)) return ['result'=>'err', 'message' => 'Rendered data not found']; - if (filemtime($p) < time()-(3*7*24*60*60)) return ['result'=>'warn', 'message' => 'Rendered data is older than 3 weeks']; + if (filemtime($p) < time()-(24*60*60)) return ['result'=>'warn', 'message' => 'Rendered data is older than 1 day']; return ['result'=>'ok', 'message' => '']; } diff --git a/www/pages/webapps_list.php b/www/pages/webapps_list.php index e82c22c..52183c7 100644 --- a/www/pages/webapps_list.php +++ b/www/pages/webapps_list.php @@ -23,7 +23,7 @@ $allapps = WebApps::listAllNewestFirst();
-

Online tools and web apps


+

Online tools, web apps and more


9, 'date' => '2016-10-22', 'visible' => true, 'title' => 'A complete sudoku solver in Befunge-93', 'fragment' => 'sudoku_befunge.md', 'type' => 'markdown', 'cat' => 'blog' ], [ 'id' => 21, 'date' => '2018-01-02', 'visible' => true, 'title' => 'A simple javascript befunge-93 runner', 'fragment' => 'js_befrunner.md', 'type' => 'markdown', 'cat' => 'blog' ], [ 'id' => 22, 'date' => '2018-02-06', 'visible' => true, 'title' => 'Homepage iteration 5', 'fragment' => 'v5.md', 'type' => 'markdown', 'cat' => 'log' ], - [ 'id' => 23, 'date' => '2018-12-01', 'visible' => true, 'title' => 'Advent of Code 2018', 'fragment' => 'aoc2018.txt', 'type' => 'aoc', 'cat' => 'blog', 'extras' => ['aoc:year' => '2018'] ], - [ 'id' => 24, 'date' => '2019-12-01', 'visible' => true, 'title' => 'Advent of Code 2019', 'fragment' => 'aoc2019.txt', 'type' => 'aoc', 'cat' => 'blog', 'extras' => ['aoc:year' => '2019'] ], + [ 'id' => 23, 'date' => '2018-12-01', 'visible' => true, 'title' => 'Advent of Code 2018', 'fragment' => 'aoc2018.md', 'type' => 'aoc', 'cat' => 'blog', 'extras' => ['aoc:year' => '2018'] ], + [ 'id' => 24, 'date' => '2019-12-01', 'visible' => true, 'title' => 'Advent of Code 2019', 'fragment' => 'aoc2019.md', 'type' => 'aoc', 'cat' => 'blog', 'extras' => ['aoc:year' => '2019'] ], ]; \ No newline at end of file diff --git a/www/statics/blog/aoc2018.txt b/www/statics/blog/aoc2018.md similarity index 100% rename from www/statics/blog/aoc2018.txt rename to www/statics/blog/aoc2018.md diff --git a/www/statics/blog/aoc2019.txt b/www/statics/blog/aoc2019.md similarity index 56% rename from www/statics/blog/aoc2019.txt rename to www/statics/blog/aoc2019.md index eff6acf..3769067 100644 --- a/www/statics/blog/aoc2019.txt +++ b/www/statics/blog/aoc2019.md @@ -1,8 +1,10 @@ -> "The same procedure as last year, Miss Sophie?" -> "The same procedure as every year, James!" +\> "The same procedure as last year, Miss Sophie?" +\> "The same procedure as every year, James!" -This year I will try to solve the challenges with typescript. Originally I wanted to use Befunge, but the problems don't really work that well in Befunge. +This year I will try to solve the challenges with typescript. Originally I wanted to use Befunge, but the problems don't really work that well in Befunge. Especially big input files are annoying to realize without I/O functions... -This is my first real encounter with typescript (or javascript that's more than small scripts) so the resulting code should be ... suboptimal. +This is my first real encounter with typescript (or javascript that's more than small scripts) so the resulting code should be ... suboptimal. But I hope I will improve :D + +The compiled javascript code can be viewed here: [mikescher.github.io/AdventOfCode2019](https://mikescher.github.io/AdventOfCode2019/) \ No newline at end of file diff --git a/www/statics/webapps/__all.php b/www/statics/webapps/__all.php index 0fe934d..5df4c2d 100644 --- a/www/statics/webapps/__all.php +++ b/www/statics/webapps/__all.php @@ -17,4 +17,12 @@ return 'repository' => 'https://github.com/Mikescher/Befunge_Number_Representations', 'url' => 'https://mikescher.github.io/Befunge_Number_Representations/', ], + + [ + 'id' => 'aoc2019', + 'title' => 'Advent of Code 2019 (GitHub Pages)', + 'date' => '2019-12-25', + 'repository' => 'https://github.com/Mikescher/AdventOfCode2019', + 'url' => 'https://mikescher.github.io/AdventOfCode2019/', + ], ];