Skip to content

Commit

Permalink
Merge pull request #317 from matushorvath/trigger
Browse files Browse the repository at this point in the history
Add initial /trigger endpoint
  • Loading branch information
matushorvath authored Oct 22, 2023
2 parents f9230c6 + 0eacbd0 commit 2595492
Show file tree
Hide file tree
Showing 10 changed files with 606 additions and 28 deletions.
1 change: 1 addition & 0 deletions docs/website/notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
url: https://adventofcode.com/2015/day/9/answer
155 changes: 155 additions & 0 deletions docs/website/part1.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<!DOCTYPE html>
<html lang="en-us" class=" bpyvd idc0_349">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Day 9 - Advent of Code 2015</title>
<link rel="stylesheet" type="text/css" href="part1_files/style.css">
<link rel="stylesheet alternate" type="text/css" href="part1_files/highcontrast.css" title="High Contrast">
<link rel="shortcut icon" href="https://adventofcode.com/favicon.png">
<script async="" src="part1_files/google-analytics_analytics.js"></script>
<script>window.addEventListener('click', function (e, s, r) { if (e.target.nodeName === 'CODE' && e.detail === 3) { s = window.getSelection(); s.removeAllRanges(); r = document.createRange(); r.selectNodeContents(e.target); s.addRange(r); } });</script>
</head><!--
Oh, hello! Funny seeing you here.
I appreciate your enthusiasm, but you aren't going to find much down here.
There certainly aren't clues to any of the puzzles. The best surprises don't
even appear in the source until you unlock them for real.
Please be careful with automated requests; I'm not a massive company, and I can
only take so much traffic. Please be considerate so that everyone gets to play.
If you're curious about how Advent of Code works, it's running on some custom
Perl code. Other than a few integrations (auth, analytics, social media), I
built the whole thing myself, including the design, animations, prose, and all
of the puzzles.
The puzzles are most of the work; preparing a new calendar and a new set of
puzzles each year takes all of my free time for 4-5 months. A lot of effort
went into building this thing - I hope you're enjoying playing it as much as I
enjoyed making it for you!
If you'd like to hang out, I'm @ericwastl@hachyderm.io on Mastodon and
@ericwastl on Twitter.
- Eric Wastl
-->

<body>
<header>
<div>
<h1 class="title-global"><a href="https://adventofcode.com/">Advent of Code</a></h1>
<nav>
<ul>
<li><a href="https://adventofcode.com/2015/about">[About]</a></li>
<li><a href="https://adventofcode.com/2015/events">[Events]</a></li>
<li><a href="https://teespring.com/stores/advent-of-code" target="_blank">[Shop]</a></li>
<li><a href="https://adventofcode.com/2015/settings">[Settings]</a></li>
<li><a href="https://adventofcode.com/2015/auth/logout">[Log Out]</a></li>
</ul>
</nav>
<div class="user">Matúš Horváth <span class="star-count">17*</span></div>
</div>
<div>
<h1 class="title-event">&nbsp;&nbsp;&nbsp;<span class="title-event-wrap">int y=</span><a
href="https://adventofcode.com/2015">2015</a><span class="title-event-wrap">;</span></h1>
<nav>
<ul>
<li><a href="https://adventofcode.com/2015">[Calendar]</a></li>
<li><a href="https://adventofcode.com/2015/support">[AoC++]</a></li>
<li><a href="https://adventofcode.com/2015/sponsors">[Sponsors]</a></li>
<li><a href="https://adventofcode.com/2015/leaderboard">[Leaderboard]</a></li>
<li><a href="https://adventofcode.com/2015/stats">[Stats]</a></li>
</ul>
</nav>
</div>
</header>

<div id="sidebar">
</div><!--/sidebar-->

<main>
<article>
<p>That's the right answer! You are <span class="day-success">one gold star</span> closer to powering the
weather machine. <a href="https://adventofcode.com/2015/day/9#part2">[Continue to Part Two]</a></p>
</article>
</main>

<!-- ga -->
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-69522494-1', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
</script>
<!-- /ga -->

<div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>

</html>
162 changes: 162 additions & 0 deletions docs/website/part2.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="en-us" class=" svloildqy idc0_349">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Day 9 - Advent of Code 2015</title>
<link rel="stylesheet" type="text/css" href="part2_files/style.css">
<link rel="stylesheet alternate" type="text/css" href="part2_files/highcontrast.css" title="High Contrast">
<link rel="shortcut icon" href="https://adventofcode.com/favicon.png">
<script async="" src="part2_files/google-analytics_analytics.js"></script>
<script>window.addEventListener('click', function (e, s, r) { if (e.target.nodeName === 'CODE' && e.detail === 3) { s = window.getSelection(); s.removeAllRanges(); r = document.createRange(); r.selectNodeContents(e.target); s.addRange(r); } });</script>
</head><!--
Oh, hello! Funny seeing you here.
I appreciate your enthusiasm, but you aren't going to find much down here.
There certainly aren't clues to any of the puzzles. The best surprises don't
even appear in the source until you unlock them for real.
Please be careful with automated requests; I'm not a massive company, and I can
only take so much traffic. Please be considerate so that everyone gets to play.
If you're curious about how Advent of Code works, it's running on some custom
Perl code. Other than a few integrations (auth, analytics, social media), I
built the whole thing myself, including the design, animations, prose, and all
of the puzzles.
The puzzles are most of the work; preparing a new calendar and a new set of
puzzles each year takes all of my free time for 4-5 months. A lot of effort
went into building this thing - I hope you're enjoying playing it as much as I
enjoyed making it for you!
If you'd like to hang out, I'm @ericwastl@hachyderm.io on Mastodon and
@ericwastl on Twitter.
- Eric Wastl
-->

<body>
<header>
<div>
<h1 class="title-global"><a href="https://adventofcode.com/">Advent of Code</a></h1>
<nav>
<ul>
<li><a href="https://adventofcode.com/2015/about">[About]</a></li>
<li><a href="https://adventofcode.com/2015/events">[Events]</a></li>
<li><a href="https://teespring.com/stores/advent-of-code" target="_blank">[Shop]</a></li>
<li><a href="https://adventofcode.com/2015/settings">[Settings]</a></li>
<li><a href="https://adventofcode.com/2015/auth/logout">[Log Out]</a></li>
</ul>
</nav>
<div class="user">Matúš Horváth <span class="star-count">18*</span></div>
</div>
<div>
<h1 class="title-event">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="title-event-wrap">/^</span><a
href="https://adventofcode.com/2015">2015</a><span class="title-event-wrap">$/</span></h1>
<nav>
<ul>
<li><a href="https://adventofcode.com/2015">[Calendar]</a></li>
<li><a href="https://adventofcode.com/2015/support">[AoC++]</a></li>
<li><a href="https://adventofcode.com/2015/sponsors">[Sponsors]</a></li>
<li><a href="https://adventofcode.com/2015/leaderboard">[Leaderboard]</a></li>
<li><a href="https://adventofcode.com/2015/stats">[Stats]</a></li>
</ul>
</nav>
</div>
</header>

<div id="sidebar">
</div><!--/sidebar-->

<main>
<article>
<p>That's the right answer! You are <span class="day-success">one gold star</span> closer to powering the weather
machine.</p>
<p>You have completed Day 9! You can <span class="share">[Share<span class="share-content">on
<a href="https://twitter.com/intent/tweet?text=I+just+completed+%22All+in+a+Single+Night%22+%2D+Day+9+%2D+Advent+of+Code+2015&amp;url=https%3A%2F%2Fadventofcode%2Ecom%2F2015%2Fday%2F9&amp;related=ericwastl&amp;hashtags=AdventOfCode"
target="_blank">Twitter</a>
<a href="javascript:void(0);"
onclick="var ms; try{ms=localStorage.getItem('mastodon.server')}finally{} if(typeof ms!=='string')ms=''; ms=prompt('Mastodon Server?',ms); if(typeof ms==='string' &amp;&amp; ms.length){this.href='https://'+ms+'/share?text=I+just+completed+%22All+in+a+Single+Night%22+%2D+Day+9+%2D+Advent+of+Code+2015+%23AdventOfCode+https%3A%2F%2Fadventofcode%2Ecom%2F2015%2Fday%2F9';try{localStorage.setItem('mastodon.server',ms);}finally{}}else{return false;}"
target="_blank">Mastodon</a></span>]</span> this victory or <a
href="https://adventofcode.com/2015">[Return to Your Advent Calendar]</a>.</p>
</article>
</main>

<!-- ga -->
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-69522494-1', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
</script>
<!-- /ga -->

<div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>

</html>
Loading

0 comments on commit 2595492

Please sign in to comment.