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
#!/usr/bin/env python | |
import importlib | |
import sys | |
def open_input(name): | |
return open(f"input/{name}.txt") | |
def main(): |
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
from collections import defaultdict | |
from typing import NamedTuple, List | |
import aoc | |
class Orbit(NamedTuple): | |
origin: str | |
name: str |
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
#!/usr/bin/env python | |
import importlib | |
import sys | |
def open_input(name): | |
return open("inputs/" + name + ".txt") | |
def main(): |
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
from typing import List | |
import aoc | |
P_MODE_POSITION = 0 | |
P_MODE_IMMEDIATE = 1 | |
class Opcodes(dict): | |
def __call__(self, code): |
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
import re | |
def NewType(name, base=object): | |
class _NewType(base): | |
pass | |
_NewType.__name__ = name | |
return _NewType |
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
import aoc | |
from typing import NamedTuple | |
class Point(NamedTuple): | |
x: int | |
y: int | |
def up(self, distance): |
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
#!/usr/bin/python3.7 | |
import json | |
import sys | |
from collections import defaultdict | |
import tsrg | |
mcpc_file = sys.argv[1] |
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
package mnm.mods.tabbychat.client.gui; | |
import com.mojang.blaze3d.platform.GlStateManager; | |
import net.minecraft.client.MainWindow; | |
import net.minecraft.client.gui.toasts.IToast; | |
import net.minecraft.client.gui.toasts.ToastGui; | |
import net.minecraft.util.text.ITextComponent; | |
import net.minecraft.util.text.TextFormatting; | |
import org.lwjgl.opengl.GL11; |
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
package mnm.mods.tabbychat.util.config | |
import com.google.common.reflect.TypeToken | |
import kotlin.reflect.KProperty | |
sealed class AbstractValue<T> { | |
abstract val type: TypeToken<T>? | |
abstract val value: T | |
override fun toString(): String { |
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
[07Sep2019 16:33:52.049] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20190719.225934, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 28.0.3, --version, MOD_DEV, --assetIndex, 1.14, --assetsDir, C:\Users\Matthew\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}] | |
[07Sep2019 16:33:52.055] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 3.2.0+60+b86c1d4 starting: java version 1.8.0_222 by AdoptOpenJDK | |
[07Sep2019 16:33:52.448] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust | |
[07Sep2019 16:33:53.334] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Matthew\.gradle\caches\forge_gradle\assets, --assetIndex, 1.14, --use |