diff options
| author | Tyler Wardhaugh <tyler.wardhaugh@gmail.com> | 2020-11-23 09:19:30 -0800 |
|---|---|---|
| committer | Tyler Wardhaugh <tyler.wardhaugh@gmail.com> | 2020-11-23 09:19:30 -0800 |
| commit | e3b053b19638d19293f03917021c3e9720c248d0 (patch) | |
| tree | fa5b4310f6b377710af64cb1949832632ad3d997 | |
| parent | cea83925f87e4bbe52ab8c1ce9a2e1b0f2d86611 (diff) | |
| download | perlweeklychallenge-club-e3b053b19638d19293f03917021c3e9720c248d0.tar.gz perlweeklychallenge-club-e3b053b19638d19293f03917021c3e9720c248d0.tar.bz2 perlweeklychallenge-club-e3b053b19638d19293f03917021c3e9720c248d0.zip | |
Ch88: prep for challenge
| -rw-r--r-- | challenge-088/tyler-wardhaugh/clojure/README.md | 10 | ||||
| -rw-r--r-- | challenge-088/tyler-wardhaugh/clojure/deps.edn | 4 | ||||
| -rw-r--r-- | challenge-088/tyler-wardhaugh/clojure/pom.xml | 14 | ||||
| -rw-r--r-- | challenge-088/tyler-wardhaugh/lua/README.md | 2 | ||||
| -rwxr-xr-x | challenge-088/tyler-wardhaugh/lua/run.lua | 9 |
5 files changed, 24 insertions, 15 deletions
diff --git a/challenge-088/tyler-wardhaugh/clojure/README.md b/challenge-088/tyler-wardhaugh/clojure/README.md index 7a610a7578..49181152f7 100644 --- a/challenge-088/tyler-wardhaugh/clojure/README.md +++ b/challenge-088/tyler-wardhaugh/clojure/README.md @@ -1,13 +1,13 @@ -# tw.weekly.c87 +# tw.weekly.c88 -The Weekly Challenge - #087 - Tyler Wardhaugh +The Weekly Challenge - #088 - Tyler Wardhaugh ## Usage Run the project directly (shows default output from both tasks): - $ clojure -M -m tw.weekly.c87.core + $ clojure -M -m tw.weekly.c88.core Run the project's tests (which are samples from the task descriptions): @@ -15,11 +15,11 @@ Run the project's tests (which are samples from the task descriptions): Run Task #1 with input - $ clojure -M -m tw.weekly.c87.t1 N1 N2 N3... + $ clojure -M -m tw.weekly.c88.t1 N1 N2 N3... Run Task #2 with input: - $ clojure -M -m tw.weekly.c87.t2 MATRIX-FILE + $ clojure -M -m tw.weekly.c88.t2 MATRIX-FILE ## Project Template diff --git a/challenge-088/tyler-wardhaugh/clojure/deps.edn b/challenge-088/tyler-wardhaugh/clojure/deps.edn index 096b24ac34..0bea934933 100644 --- a/challenge-088/tyler-wardhaugh/clojure/deps.edn +++ b/challenge-088/tyler-wardhaugh/clojure/deps.edn @@ -11,5 +11,5 @@ :main-opts ["-m" "cognitect.test-runner" "-d" "test"]} :uberjar {:extra-deps {seancorfield/depstar {:mvn/version "1.0.94"}} - :main-opts ["-m" "hf.depstar.uberjar" "tw.weekly.c87.jar" - "-C" "-m" "tw.weekly.c87"]}}} + :main-opts ["-m" "hf.depstar.uberjar" "tw.weekly.c88.jar" + "-C" "-m" "tw.weekly.c88"]}}} diff --git a/challenge-088/tyler-wardhaugh/clojure/pom.xml b/challenge-088/tyler-wardhaugh/clojure/pom.xml index 2eeb46cb8c..6038b97734 100644 --- a/challenge-088/tyler-wardhaugh/clojure/pom.xml +++ b/challenge-088/tyler-wardhaugh/clojure/pom.xml @@ -2,11 +2,11 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>tw.weekly</groupId> - <artifactId>tw.weekly.c87</artifactId> + <artifactId>tw.weekly.c88</artifactId> <version>0.1.0-SNAPSHOT</version> - <name>tw.weekly.c87</name> - <description>Challenge #087</description> - <url>https://github.com/tw.weekly/tw.weekly.c87</url> + <name>tw.weekly.c88</name> + <description>Challenge #088</description> + <url>https://github.com/tw.weekly/tw.weekly.c88</url> <licenses> <license> <name>Eclipse Public License</name> @@ -19,9 +19,9 @@ </developer> </developers> <scm> - <url>https://github.com/tw.weekly/tw.weekly.c87</url> - <connection>scm:git:git://github.com/tw.weekly/tw.weekly.c87.git</connection> - <developerConnection>scm:git:ssh://git@github.com/tw.weekly/tw.weekly.c87.git</developerConnection> + <url>https://github.com/tw.weekly/tw.weekly.c88</url> + <connection>scm:git:git://github.com/tw.weekly/tw.weekly.c88.git</connection> + <developerConnection>scm:git:ssh://git@github.com/tw.weekly/tw.weekly.c88.git</developerConnection> <tag>HEAD</tag> </scm> <dependencies> diff --git a/challenge-088/tyler-wardhaugh/lua/README.md b/challenge-088/tyler-wardhaugh/lua/README.md index 62141395f2..9473c1a0a4 100644 --- a/challenge-088/tyler-wardhaugh/lua/README.md +++ b/challenge-088/tyler-wardhaugh/lua/README.md @@ -1,7 +1,7 @@ # The Weekly Challenge -The Weekly Challenge - #087 - Tyler Wardhaugh +The Weekly Challenge - #088 - Tyler Wardhaugh ## Usage diff --git a/challenge-088/tyler-wardhaugh/lua/run.lua b/challenge-088/tyler-wardhaugh/lua/run.lua new file mode 100755 index 0000000000..c6e7473bee --- /dev/null +++ b/challenge-088/tyler-wardhaugh/lua/run.lua @@ -0,0 +1,9 @@ +#!/usr/bin/env lua + +local filename = arg[1] +local run_args = table.move(arg, 2, #arg, 1, {}) + +io.write(string.format("Running task from '%s' with {%s}:\n", + filename, table.concat(run_args, ", "))) + +require(filename).run(run_args) |
