diff options
| author | Mohammad S Anwar <Mohammad.Anwar@yahoo.com> | 2021-10-04 00:36:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 00:36:40 +0100 |
| commit | badf80d54dbb9baa4d4c87fd61a541da55176d25 (patch) | |
| tree | b0e68e63b2e24c2dabe18db2c2af871ceed74a5d | |
| parent | 58a983892906fc39357e3d80a67cf90b49e06be4 (diff) | |
| parent | cfab1b9ffffcba3626e608a2238d1473ac980759 (diff) | |
| download | perlweeklychallenge-club-badf80d54dbb9baa4d4c87fd61a541da55176d25.tar.gz perlweeklychallenge-club-badf80d54dbb9baa4d4c87fd61a541da55176d25.tar.bz2 perlweeklychallenge-club-badf80d54dbb9baa4d4c87fd61a541da55176d25.zip | |
Merge pull request #4959 from Abigail/abigail/week-132
Abigail/week 132
| -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) - |
