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
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] |
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 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("--"): |
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
[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" |