aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Custodio <pauloscustodio@gmail.com>2021-12-02 18:12:00 +0000
committerPaulo Custodio <pauloscustodio@gmail.com>2021-12-02 18:12:00 +0000
commitbf990af024f1ea0279927e4c89b2146b86e15e3b (patch)
tree67d7c6fe11970c4596f33b757cc3bb53c9ac42f3
parentf0c28790b49f781a131faa9837c37d5b6103c09f (diff)
downloadperlweeklychallenge-club-bf990af024f1ea0279927e4c89b2146b86e15e3b.tar.gz
perlweeklychallenge-club-bf990af024f1ea0279927e4c89b2146b86e15e3b.tar.bz2
perlweeklychallenge-club-bf990af024f1ea0279927e4c89b2146b86e15e3b.zip
Fix title comment
-rw-r--r--challenge-001/paulo-custodio/check_challenge_title.pl42
-rw-r--r--challenge-024/paulo-custodio/perl/ch-1.pl0
-rw-r--r--challenge-024/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-091/paulo-custodio/lua/ch-1.lua2
-rw-r--r--challenge-091/paulo-custodio/lua/ch-2.lua2
-rwxr-xr-xchallenge-091/paulo-custodio/perl/ch-1.pl3
-rwxr-xr-xchallenge-091/paulo-custodio/perl/ch-2.pl3
-rw-r--r--challenge-091/paulo-custodio/python/ch-1.py3
-rw-r--r--challenge-091/paulo-custodio/python/ch-2.py3
-rw-r--r--challenge-106/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-106/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-119/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-122/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-122/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-122/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-122/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-123/paulo-custodio/awk/ch-1.awk2
-rw-r--r--challenge-123/paulo-custodio/basic/ch-1.bas2
-rw-r--r--challenge-123/paulo-custodio/bc/ch-1.bc2
-rw-r--r--challenge-123/paulo-custodio/c/ch-1.c2
-rw-r--r--challenge-123/paulo-custodio/cpp/ch-1.cpp2
-rw-r--r--challenge-123/paulo-custodio/forth/ch-1.fs2
-rw-r--r--challenge-123/paulo-custodio/lua/ch-1.lua2
-rw-r--r--challenge-123/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-123/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-123/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-123/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-124/paulo-custodio/ada/ch_1.adb2
-rw-r--r--challenge-124/paulo-custodio/awk/ch-1.awk2
-rw-r--r--challenge-124/paulo-custodio/basic/ch-1.bas2
-rw-r--r--challenge-124/paulo-custodio/bc/ch-1.bc2
-rw-r--r--challenge-124/paulo-custodio/brainfuck/ch-1.pl2
-rw-r--r--challenge-124/paulo-custodio/c/ch-1.c2
-rw-r--r--challenge-124/paulo-custodio/cpp/ch-1.cpp2
-rw-r--r--challenge-124/paulo-custodio/d/ch_1.d2
-rw-r--r--challenge-124/paulo-custodio/forth/ch-1.fs2
-rw-r--r--challenge-124/paulo-custodio/fortran/ch-1.f902
-rw-r--r--challenge-124/paulo-custodio/lua/ch-1.lua2
-rw-r--r--challenge-124/paulo-custodio/pascal/ch-1.pas2
-rw-r--r--challenge-124/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-124/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-124/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-124/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-125/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-125/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-125/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-125/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-126/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-126/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-126/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-126/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-127/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-127/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-128/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-128/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-128/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-128/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-129/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-129/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-129/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-129/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-130/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-130/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-130/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-130/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-131/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-131/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-131/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-131/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-132/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-132/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-132/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-132/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-133/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-133/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-133/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-133/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-134/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-134/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-134/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-134/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-135/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-135/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-135/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-135/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-137/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-137/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-137/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-137/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-138/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-138/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-138/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-138/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-139/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-139/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-139/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-139/paulo-custodio/python/ch-2.py2
-rw-r--r--challenge-140/paulo-custodio/perl/ch-1.pl2
-rw-r--r--challenge-140/paulo-custodio/perl/ch-2.pl2
-rw-r--r--challenge-140/paulo-custodio/python/ch-1.py2
-rw-r--r--challenge-140/paulo-custodio/python/ch-2.py2
101 files changed, 236 insertions, 8 deletions
diff --git a/challenge-001/paulo-custodio/check_challenge_title.pl b/challenge-001/paulo-custodio/check_challenge_title.pl
new file mode 100644
index 0000000000..cd36c62e87
--- /dev/null
+++ b/challenge-001/paulo-custodio/check_challenge_title.pl
@@ -0,0 +1,42 @@
+#!/usr/bin/env perl
+
+# show stats of challenge submissions
+
+use Modern::Perl;
+use Path::Tiny;
+
+my $USER = "paulo-custodio";
+
+our %LANG = (
+ ada => 'adb',
+ awk => 'awk',
+ basic => 'bas',
+ bc => 'bc',
+ brainfuck=>'pl', #'bf',
+ c => 'c',
+ cpp => 'cpp',
+ d => 'd',
+ forth => 'fs',
+ fortran => 'f90',
+ lua => 'lua',
+ pascal => 'pas',
+ perl => 'pl',
+ python => 'py',
+);
+
+for my $chall_dir (path(".")->children(qr/challenge-\d+/)) {
+ my($chall) = $chall_dir =~ /(\d+)/ or die;
+ $chall += 0;
+
+ for my $lang (sort keys %LANG) {
+ my $dir = path($chall_dir, $USER, $lang);
+ next unless $dir->is_dir;
+
+ for my $sol ($dir->children(qr/^ch[-_]\d\.$LANG{$lang}$/)) {
+ my $text = $sol->slurp;
+ if ($text !~ /Challenge 0*$chall\b/) {
+ say $sol;
+ }
+ }
+ }
+}
diff --git a/challenge-024/paulo-custodio/perl/ch-1.pl b/challenge-024/paulo-custodio/perl/ch-1.pl
deleted file mode 100644
index e69de29bb2..0000000000
--- a/challenge-024/paulo-custodio/perl/ch-1.pl
+++ /dev/null
diff --git a/challenge-024/paulo-custodio/perl/ch-2.pl b/challenge-024/paulo-custodio/perl/ch-2.pl
index 6e90773eed..8d8e7f86fd 100644
--- a/challenge-024/paulo-custodio/perl/ch-2.pl
+++ b/challenge-024/paulo-custodio/perl/ch-2.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# Challenge 019
+# Challenge 024
#
# Task #2
# Create a script to implement full text search functionality using Inverted
diff --git a/challenge-091/paulo-custodio/lua/ch-1.lua b/challenge-091/paulo-custodio/lua/ch-1.lua
index 0a3bf830c3..3091ff1ae3 100644
--- a/challenge-091/paulo-custodio/lua/ch-1.lua
+++ b/challenge-091/paulo-custodio/lua/ch-1.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
--[[
-THE WEEKLY CHALLENGE - 091
+Challenge 091
TASK #1: Count Number
diff --git a/challenge-091/paulo-custodio/lua/ch-2.lua b/challenge-091/paulo-custodio/lua/ch-2.lua
index c36f960435..93fdabe41b 100644
--- a/challenge-091/paulo-custodio/lua/ch-2.lua
+++ b/challenge-091/paulo-custodio/lua/ch-2.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
--[[
-THE WEEKLY CHALLENGE - 091
+Challenge 091
TASK #2: Jump Game
diff --git a/challenge-091/paulo-custodio/perl/ch-1.pl b/challenge-091/paulo-custodio/perl/ch-1.pl
index e0d2116ceb..24d4b8301d 100755
--- a/challenge-091/paulo-custodio/perl/ch-1.pl
+++ b/challenge-091/paulo-custodio/perl/ch-1.pl
@@ -1,6 +1,7 @@
#!/usr/bin/perl
-# THE WEEKLY CHALLENGE - 091
+# Challenge 091
+#
# TASK #1: Count Number
#
# You are given a positive number $N. Write a script to count number and
diff --git a/challenge-091/paulo-custodio/perl/ch-2.pl b/challenge-091/paulo-custodio/perl/ch-2.pl
index 39ef8e35d5..715eb81036 100755
--- a/challenge-091/paulo-custodio/perl/ch-2.pl
+++ b/challenge-091/paulo-custodio/perl/ch-2.pl
@@ -1,6 +1,7 @@
#!/usr/bin/perl
-# THE WEEKLY CHALLENGE - 091
+# Challenge 091
+#
# TASK #2: Jump Game
#
# You are given an array of positive numbers @N, where value at each index
diff --git a/challenge-091/paulo-custodio/python/ch-1.py b/challenge-091/paulo-custodio/python/ch-1.py
index 3eeb00c151..7fda504093 100644
--- a/challenge-091/paulo-custodio/python/ch-1.py
+++ b/challenge-091/paulo-custodio/python/ch-1.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
-# THE WEEKLY CHALLENGE - 091
+# Challenge 091
+#
# TASK #1: Count Number
#
# You are given a positive number $N. Write a script to count number and
diff --git a/challenge-091/paulo-custodio/python/ch-2.py b/challenge-091/paulo-custodio/python/ch-2.py
index 84db6f66d8..538dce95f0 100644
--- a/challenge-091/paulo-custodio/python/ch-2.py
+++ b/challenge-091/paulo-custodio/python/ch-2.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
-# THE WEEKLY CHALLENGE - 091
+# Challenge 091
+#
# TASK #2: Jump Game
#
# You are given an array of positive numbers @N, where value at each index
diff --git a/challenge-106/paulo-custodio/perl/ch-2.pl b/challenge-106/paulo-custodio/perl/ch-2.pl
index aa2f756590..5710a17678 100644
--- a/challenge-106/paulo-custodio/perl/ch-2.pl
+++ b/challenge-106/paulo-custodio/perl/ch-2.pl
@@ -1,5 +1,7 @@
#!/usr/bin/env perl
+# Challenge 106
+#
# TASK #2 › Decimal String
# Submitted by: Mohammad S Anwar
# You are given numerator and denominator i.e. $N and $D.
diff --git a/challenge-106/paulo-custodio/python/ch-2.py b/challenge-106/paulo-custodio/python/ch-2.py
index 6a019e26d6..7a160eb138 100644
--- a/challenge-106/paulo-custodio/python/ch-2.py
+++ b/challenge-106/paulo-custodio/python/ch-2.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python3
+# Challenge 106
+#
# TASK #2 > Decimal String
# Submitted by: Mohammad S Anwar
# You are given numerator and denominator i.e. $N and $D.
diff --git a/challenge-119/paulo-custodio/python/ch-2.py b/challenge-119/paulo-custodio/python/ch-2.py
index 1122dfada7..0ec51b74bd 100644
--- a/challenge-119/paulo-custodio/python/ch-2.py
+++ b/challenge-119/paulo-custodio/python/ch-2.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
+# Challenge 119