aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj-james2022-12-01 06:46:43 +0000
committerj-james2022-12-01 06:47:21 +0000
commit6a3c52602974d411c99b312d9ae709e53ef0e29c (patch)
tree0e345cbc5c1d1332340e1c6db2e40a444467fd7c
parent5bb17e9fcf87a976c69dab9e6a73a42745b3d4ce (diff)
Delete submission scripts and update Rust template
yeah i'm never going to use those scripts
-rw-r--r--util/main.rs4
-rwxr-xr-xutil/one7
-rwxr-xr-xutil/two7
3 files changed, 2 insertions, 16 deletions
diff --git a/util/main.rs b/util/main.rs
index 2cad662..8b1acab 100644
--- a/util/main.rs
+++ b/util/main.rs
@@ -2,7 +2,7 @@ use std::env;
use std::fs;
fn main() {
- let args = env::args().nth(1).expect("");
- let input = fs::read_to_string(args).expect("");
+ let args = env::args().nth(1).unwrap();
+ let input = fs::read_to_string(args).unwrap();
println!("{}", input);
}
diff --git a/util/one b/util/one
deleted file mode 100755
index 6b7db35..0000000
--- a/util/one
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-source "vars"
-LEVEL="1"
-SUBMIT_URL="https://adventofcode.com/${YEAR}/day/$((10#${DAY}))/answer"
-
-curl $SUBMIT_URL --cookie "session=${TOKEN}" --data "level=${LEVEL}&answer=$1" | rg -C 1 "main"
diff --git a/util/two b/util/two
deleted file mode 100755
index 8dd0080..0000000
--- a/util/two
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-source "vars"
-LEVEL="2"
-SUBMIT_URL="https://adventofcode.com/${YEAR}/day/$((10#${DAY}))/answer"
-
-curl $SUBMIT_URL --cookie "session=${TOKEN}" --data "level=${LEVEL}&answer=$1" | rg -C 1 "main"