-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from matushorvath/trigger
Add initial /trigger endpoint
- Loading branch information
Showing
10 changed files
with
606 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
url: https://adventofcode.com/2015/day/9/answer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"> <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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"> <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&url=https%3A%2F%2Fadventofcode%2Ecom%2F2015%2Fday%2F9&related=ericwastl&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' && 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> |
Oops, something went wrong.