1
0

aoc link to github pages

This commit is contained in:
Mike Schwörer 2020-01-09 12:50:08 +01:00
parent a6539cf081
commit 3968a11fa6
7 changed files with 24 additions and 12 deletions

View File

@ -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'];
</div>
<div class="bc_data">
<?php echo nl2br(htmlspecialchars(Blog::getPostFragment($post))); ?>
<?php
$pd = new ParsedownCustom();
echo $pd->text(Blog::getPostFragment($post));
?>
<br/>
<?php
global $PARAM_AOCCALENDAR;
$PARAM_AOCCALENDAR = ['year' => $year, 'nav'=>true, 'linkheader'=>false, 'ajax'=>false];

View File

@ -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' => ''];
}

View File

@ -23,7 +23,7 @@ $allapps = WebApps::listAllNewestFirst();
<div class="blockcontent">
<div class="contentheader"><h1>Online tools and web apps</h1><hr/></div>
<div class="contentheader"><h1>Online tools, web apps and more</h1><hr/></div>
<div class='webapplistelem_container'>
<?php

View File

@ -24,6 +24,6 @@ return
[ 'id' => 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'] ],
];

View File

@ -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.
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.
But I hope I will improve :D
The compiled javascript code can be viewed here: [mikescher.github.io/AdventOfCode2019](https://mikescher.github.io/AdventOfCode2019/)

View File

@ -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/',
],
];