diff options
| -rw-r--r-- | challenge-132/abigail/bash/ch-1.sh | 2 | ||||
| -rw-r--r-- | challenge-132/abigail/blog.txt | 1 | ||||
| -rw-r--r-- | challenge-132/abigail/blog2.txt | 1 | ||||
| -rw-r--r-- | challenge-132/abigail/node/ch-1.js | 2 | ||||
| -rw-r--r-- | challenge-132/abigail/python/ch-1.py | 8 |
5 files changed, 3 insertions, 11 deletions
diff --git a/challenge-132/abigail/bash/ch-1.sh b/challenge-132/abigail/bash/ch-1.sh index 5ea6e68cd3..eb99113be0 100644 --- a/challenge-132/abigail/bash/ch-1.sh +++ b/challenge-132/abigail/bash/ch-1.sh @@ -33,7 +33,7 @@ function j2g () { g2j 2021 9 22; julian_today=$J while read y m d -do g2j $y ${m/#0/} ${d/#0/}; julian_then=$J +do g2j ${y/#0/} ${m/#0/} ${d/#0/}; julian_then=$J j2g $(( 2 * julian_then - julian_today )) printf "%04d/%02d/%02d, " $Y $M $D j2g $(( 2 * julian_today - julian_then )) diff --git a/challenge-132/abigail/blog.txt b/challenge-132/abigail/blog.txt new file mode 100644 index 0000000000..5e79dc06ef --- /dev/null +++ b/challenge-132/abigail/blog.txt @@ -0,0 +1 @@ +https://abigail.github.io/HTML/Perl-Weekly-Challenge/week-132-1.html diff --git a/challenge-132/abigail/blog2.txt b/challenge-132/abigail/blog2.txt new file mode 100644 index 0000000000..9593e5f199 --- /dev/null +++ b/challenge-132/abigail/blog2.txt @@ -0,0 +1 @@ +https://abigail.github.io/HTML/Perl-Weekly-Challenge/week-132-2.html diff --git a/challenge-132/abigail/node/ch-1.js b/challenge-132/abigail/node/ch-1.js index e7f937e4b3..69f4a996b9 100644 --- a/challenge-132/abigail/node/ch-1.js +++ b/challenge-132/abigail/node/ch-1.js @@ -8,8 +8,6 @@ // Run as: node ch-1.js < input-file // -const util = require ('util') - function int (x) { if (x < 0) { return Math . ceil (x) diff --git a/challenge-132/abigail/python/ch-1.py b/challenge-132/abigail/python/ch-1.py index 0f70d519e4..e8f339af2b 100644 --- a/challenge-132/abigail/python/ch-1.py +++ b/challenge-132/abigail/python/ch-1.py @@ -8,16 +8,8 @@ # Run as: python ch-1.py < input-file # -import math import fileinput -def _int (x): - if x < 0: - return math . ceil (x) - else: - return math . floor (x) - - def g2j (Y, M, D): return (int ((1461 * (Y + 4800 + int ((M - 14) / 12))) / 4) + int ((367 * (M - 2 - 12 * int ((M - 14) / 12))) / 12) - |
