Skip to content

Instantly share code, notes, and snippets.

@charmasaur
charmasaur / foo.jl
Created December 31, 2022 02:38
AOC 2022 22
using AutoHashEquals
using LinearAlgebra
# Load and parse input
lines = open(readlines, "in.txt")
instructions = split(replace(lines[end], "R" => " R ", "L" => " L "))
grid_lines = lines[1:end-2]
@charmasaur
charmasaur / foo.py
Created December 19, 2021 12:32
AOC 2021 19
import numpy as onp
import jax
import jax.numpy as np
from jax import lax
# Input
scanners = []
for line in open("input.txt", "r").readlines():
if line.startswith("--"):
[tool.poetry]
name = "poetry_test"
version = "0.1.0"
description = ""
authors = ["Harry Slatyer <harry.slatyer@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.7"
tensorflow = "^2.1.0"