diff options
| author | Abigail <abigail@abigail.be> | 2021-03-15 14:37:32 +0100 |
|---|---|---|
| committer | Abigail <abigail@abigail.be> | 2021-03-15 20:21:45 +0100 |
| commit | e18a3b4909665a6d9b0db5f0217e0b626ef9cb89 (patch) | |
| tree | e0a55f40fe73ef98f0b74c1cfeceac1f67a50751 | |
| parent | e149d24da503c8ffef7c4d9eb78ef69546d35196 (diff) | |
| download | perlweeklychallenge-club-e18a3b4909665a6d9b0db5f0217e0b626ef9cb89.tar.gz perlweeklychallenge-club-e18a3b4909665a6d9b0db5f0217e0b626ef9cb89.tar.bz2 perlweeklychallenge-club-e18a3b4909665a6d9b0db5f0217e0b626ef9cb89.zip | |
Lua, Node.js, Python and Ruby solutions for week 104, part 1
| -rw-r--r-- | challenge-104/abigail/README.md | 5 | ||||
| -rw-r--r-- | challenge-104/abigail/lua/ch-1.lua | 12 | ||||
| -rw-r--r-- | challenge-104/abigail/node/ch-1.js | 12 | ||||
| -rw-r--r-- | challenge-104/abigail/python/ch-1.py | 12 | ||||
| -rw-r--r-- | challenge-104/abigail/ruby/ch-1.rb | 12 |
5 files changed, 53 insertions, 0 deletions
diff --git a/challenge-104/abigail/README.md b/challenge-104/abigail/README.md index 18c1827e9b..9d43c0de75 100644 --- a/challenge-104/abigail/README.md +++ b/challenge-104/abigail/README.md @@ -22,8 +22,13 @@ even handle a single if statement. A single print statement is enough. ### Solutions * [AWK](awk/ch-1.awk) * [Bash](bash/ch-1.sh) +* [Befunge-93](befunge-93/ch-1.bf93) * [C](c/ch-1.c) +* [Lua](lua/ch-1.lua) +* [Node.js](node/ch-1.js) * [Perl](perl/ch-1.pl) +* [Python](python/ch-1.py) +* [Ruby](ruby/ch-1.rb) ### Blog diff --git a/challenge-104/abigail/lua/ch-1.lua b/challenge-104/abigail/lua/ch-1.lua new file mode 100644 index 0000000000..52af3c7d45 --- /dev/null +++ b/challenge-104/abigail/lua/ch-1.lua @@ -0,0 +1,12 @@ +#!/opt/local/bin/lua + +-- +-- See ../README.md +-- + +-- +-- Run as: lua ch-1.lua +-- + +print ("0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 " .. + "5 8 3 7 4 5 1 6 5 9 4 11 7 10 3 11 8 13 5 12 7 9 2 9") diff --git a/challenge-104/abigail/node/ch-1.js b/challenge-104/abigail/node/ch-1.js new file mode 100644 index 0000000000..bd0e037eef --- /dev/null +++ b/challenge-104/abigail/node/ch-1.js @@ -0,0 +1,12 @@ +#!/usr/local/bin/node + +// +// See ../README.md +// + +// +// Run as: node ch-1.js +// + +console . log ("0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 " + + "5 8 3 7 4 5 1 6 5 9 4 11 7 10 3 11 8 13 5 12 7 9 2 9") diff --git a/challenge-104/abigail/python/ch-1.py b/challenge-104/abigail/python/ch-1.py new file mode 100644 index 0000000000..8a7dac03e9 --- /dev/null +++ b/challenge-104/abigail/python/ch-1.py @@ -0,0 +1,12 @@ +#!/opt/local/bin/python + +# +# See ../README.md +# + +# +# Run as python ch-1.py +# + +print ("0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 " + + "5 8 3 7 4 5 1 6 5 9 4 11 7 10 3 11 8 13 5 12 7 9 2 9") diff --git a/challenge-104/abigail/ruby/ch-1.rb b/challenge-104/abigail/ruby/ch-1.rb new file mode 100644 index 0000000000..96d68064e5 --- /dev/null +++ b/challenge-104/abigail/ruby/ch-1.rb @@ -0,0 +1,12 @@ +#!/usr/bin/ruby + +# +# See ../README.md +# + +# +# Run as: ruby ch-1.rb +# + +puts ("0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 " + + "5 8 3 7 4 5 1 6 5 9 4 11 7 10 3 11 8 13 5 12 7 9 2 9") |
