This file contains hidden or 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
<Query Kind="Program"> | |
<Namespace>System.ComponentModel</Namespace> | |
<Namespace>System.Collections.Immutable</Namespace> | |
</Query> | |
#load "../common/aoc-input-util.linq" | |
#load "../common/aoc-parsers.linq" | |
void Main() | |
{ |
This file contains hidden or 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
addx -2 | |
addx 6 | |
addx 2 | |
addx -2 | |
addx 6 | |
noop | |
noop | |
noop | |
noop | |
addx 6 |
This file contains hidden or 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
addx -2 | |
addx 6 | |
addx 2 | |
addx -2 | |
addx 6 | |
addx 2 | |
addx -2 | |
addx 6 | |
addx 2 | |
addx -2 |
This file contains hidden or 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
addx 1 | |
addx 4 | |
noop | |
noop | |
addx 3 | |
addx -1 | |
addx 5 | |
addx -1 | |
addx 6 | |
addx 1 |
This file contains hidden or 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
#!/usr/bin/perl -s | |
our $v; | |
use Socket qw/inet_ntoa inet_aton/; | |
if (@ARGV[0] =~ s#(/\d+)$##) { $ARGV[1] = $1; } | |
@ARGV >= 2 or die "Usage: perl $0 <address> <netmask>\n | |
netmask may be of the form '255.255.255.0' or '/24' |
This file contains hidden or 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
<Query Kind="Program"> | |
<NuGetReference>Microsoft.Build</NuGetReference> | |
<NuGetReference>Microsoft.Build.Framework</NuGetReference> | |
<NuGetReference>Microsoft.Build.Tasks.Core</NuGetReference> | |
<NuGetReference>Microsoft.Build.Utilities.Core</NuGetReference> | |
<NuGetReference>Microsoft.CodeAnalysis.CSharp</NuGetReference> | |
<NuGetReference>Microsoft.CodeAnalysis.CSharp.Workspaces</NuGetReference> | |
<NuGetReference>Microsoft.CodeAnalysis.Workspaces.MSBuild</NuGetReference> | |
<NuGetReference>NuGet.Build.Tasks</NuGetReference> | |
<NuGetReference>System.ValueTuple</NuGetReference> |
This file contains hidden or 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
use strict; | |
use warnings; | |
use Irssi qw/settings_add_int settings_get_int settings_set_int signal_add/; | |
use constant { LESS_THAN_10 => "less_than_10" }; | |
# test case based on pushover.pl | |
# https://github.com/hansnielsen/irssi-scripts/blob/108490bd3d2ad6a1b91ca58e5f866d01b64a9962/pushover.pl |
This file contains hidden or 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
javascript:(function(){var summary = ''; for (var x in game.stats) { var s = game.stats[x]; if (s.value === undefined) continue; var v = (typeof(s.value) == 'function' ? s.value() : s.value.toString()); summary += s.title + ': ' + v + '\n'; } summary += 'Helium: ' + game.resources.helium.owned + '\n'; summary += 'Time: ' + updatePortalTimer(true); tooltip('Export', null, 'update'); document.getElementById('exportArea').value = summary;})() |
This file contains hidden or 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
Theorem: | |
For 3 <= p and 3 <= q, any complete bipartite graph P<->Q (with p nodes in | |
subset P linked to q nodes in subset Q) can be converted to a graph with an | |
Eulerian path simply by deletion of edges. | |
Corollaries/Definitions/Related theorems: | |
Let an 'odd' node be a node with an odd number of edges. | |
Let an 'even' node be a node with an even number of edges. | |
This file contains hidden or 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
Commit sequence (chronological/commit order): | |
bedf5ed7be6407b75ce3eb8226663f4748192d06 [master] | |
4f4c68fa5df97cade596e5f64793a72062e045ba | |
Modify files T and W | |
b60ebdfcd23bd2c13f4202334507e840e960442a | |
Add file C, which should have been added in bedf5ed7be6407b75ce3eb8226663f4748192d06 (master) | |
028bfacebfbe0f9945c67635ac8f8b057743f6c6 | |
Changes to several files, including file C | |
Several more commits after this |
NewerOlder