aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-045/javier-luque/blog.txt1
-rw-r--r--challenge-045/javier-luque/perl/ch-1.pl16
-rw-r--r--challenge-045/javier-luque/perl/ch-2.pl10
-rw-r--r--challenge-045/javier-luque/raku/ch-1.p618
-rw-r--r--challenge-045/javier-luque/raku/ch-2.p68
-rw-r--r--stats/pwc-current.json137
-rw-r--r--stats/pwc-language-breakdown-summary.json76
-rw-r--r--stats/pwc-language-breakdown.json316
-rw-r--r--stats/pwc-leaders.json768
-rw-r--r--stats/pwc-summary-1-30.json58
-rw-r--r--stats/pwc-summary-121-150.json52
-rw-r--r--stats/pwc-summary-31-60.json60
-rw-r--r--stats/pwc-summary-61-90.json46
-rw-r--r--stats/pwc-summary-91-120.json40
-rw-r--r--stats/pwc-summary.json58
15 files changed, 870 insertions, 794 deletions
diff --git a/challenge-045/javier-luque/blog.txt b/challenge-045/javier-luque/blog.txt
new file mode 100644
index 0000000000..cbade01388
--- /dev/null
+++ b/challenge-045/javier-luque/blog.txt
@@ -0,0 +1 @@
+https://perlchallenges.wordpress.com/2020/01/30/perl-weekly-challenge-045/
diff --git a/challenge-045/javier-luque/perl/ch-1.pl b/challenge-045/javier-luque/perl/ch-1.pl
new file mode 100644
index 0000000000..6fb9c94869
--- /dev/null
+++ b/challenge-045/javier-luque/perl/ch-1.pl
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+# Test: ./ch-1.pl The quick brown fox jumps over the lazy dog
+use strict;
+use warnings;
+use feature qw /say/;
+
+my $string = join '', @ARGV;
+$string =~ s/\s//g;
+my @chars = split('', $string);
+my @new_words;
+
+for my $i (0..scalar(@chars)-1) {
+ $new_words[$i % 8] .= $chars[$i];
+}
+
+say join ' ', @new_words;
diff --git a/challenge-045/javier-luque/perl/ch-2.pl b/challenge-045/javier-luque/perl/ch-2.pl
new file mode 100644
index 0000000000..529493b3ac
--- /dev/null
+++ b/challenge-045/javier-luque/perl/ch-2.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+# test: perl ch-2.pl | diff - ch-2.pl
+use strict;
+use warnings;
+use feature qw /say/;
+
+open(my $fh, '<:encoding(UTF-8)', $0) || die "$@";
+while (my $line = <$fh>) {
+ print $line;
+};
diff --git a/challenge-045/javier-luque/raku/ch-1.p6 b/challenge-045/javier-luque/raku/ch-1.p6
new file mode 100644
index 0000000000..1990bd0174
--- /dev/null
+++ b/challenge-045/javier-luque/raku/ch-1.p6
@@ -0,0 +1,18 @@
+# Test: perl6 ch-1.p6 "The quick brown fox jumps over the lazy dog"
+use v6.d;
+
+sub MAIN(Str $string) {
+ my @new_words;
+ @new_words[$_] = '' for (0..7);
+
+ my $clean_string = $string;
+ $clean_string ~~ s:g/\s//;
+ my @chars = $clean_string.comb;
+
+ for (0 .. @chars.elems - 1) -> $i {
+ @new_words[$i % 8] =
+ @new_words[$i % 8] ~ @chars[$i];
+ }
+
+ say @new_words.join(' ');
+}
diff --git a/challenge-045/javier-luque/raku/ch-2.p6 b/challenge-045/javier-luque/raku/ch-2.p6
new file mode 100644
index 0000000000..b4e1916ec3
--- /dev/null
+++ b/challenge-045/javier-luque/raku/ch-2.p6
@@ -0,0 +1,8 @@
+# Test: perl6 ch-2.p6 | diff - ch-2.p6
+use v6.d;
+
+sub MAIN () {
+ for $*PROGRAM-NAME.IO.lines -> $line {
+ say $line;
+ }
+}
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 0e975be3c9..4429fed9eb 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,30 +1,24 @@
{
- "subtitle" : {
- "text" : "[Champions: 10] Last updated at 2020-01-30 12:16:59 GMT"
+ "tooltip" : {
+ "followPointer" : 1,
+ "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>",
+ "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>"
},
"plotOptions" : {
"series" : {
+ "borderWidth" : 0,
"dataLabels" : {
"format" : "{point.y}",
"enabled" : 1
- },
- "borderWidth" : 0
+ }
}
},
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
- }
+ "chart" : {
+ "type" : "column"
},
"xAxis" : {
"type" : "category"
},
- "legend" : {
- "enabled" : 0
- },
- "title" : {
- "text" : "Perl Weekly Challenge - 045"
- },
"series" : [
{
"name" : "Perl Weekly Challenge - 045",
@@ -32,8 +26,8 @@
"data" : [
{
"y" : 2,
- "name" : "Dave Cross",
- "drilldown" : "Dave Cross"
+ "drilldown" : "Dave Cross",
+ "name" : "Dave Cross"
},
{
"y" : 3,
@@ -41,9 +35,9 @@
"name" : "Dave Jacoby"
},
{
- "y" : 2,
+ "drilldown" : "Duane Powell",
"name" : "Duane Powell",
- "drilldown" : "Duane Powell"
+ "y" : 2
},
{
"name" : "E. Choroba",
@@ -51,8 +45,13 @@
"y" : 2
},
{
- "name" : "Luca Ferrari",
+ "y" : 5,
+ "name" : "Javier Luque",
+ "drilldown" : "Javier Luque"
+ },
+ {
"drilldown" : "Luca Ferrari",
+ "name" : "Luca Ferrari",
"y" : 3
},
{
@@ -61,41 +60,52 @@
"y" : 2
},
{
- "y" : 2,
"name" : "Nazareno Delucca",
- "drilldown" : "Nazareno Delucca"
+ "drilldown" : "Nazareno Delucca",
+ "y" : 2
},
{
- "y" : 1,
"name" : "Peter Scott",
- "drilldown" : "Peter Scott"
+ "drilldown" : "Peter Scott",
+ "y" : 1
},
{
- "y" : 2,
"name" : "Rage311",
- "drilldown" : "Rage311"
+ "drilldown" : "Rage311",
+ "y" : 2
},
{
- "name" : "Simon Proctor",
"drilldown" : "Simon Proctor",
+ "name" : "Simon Proctor",
"y" : 2
}
]
}
],
+ "subtitle" : {
+ "text" : "[Champions: 11] Last updated at 2020-01-30 12:53:38 GMT"
+ },
+ "title" : {
+ "text" : "Perl Weekly Challenge - 045"
+ },
+ "legend" : {
+ "enabled" : 0
+ },
"drilldown" : {
"series" : [
{
- "id" : "Dave Cross",
- "name" : "Dave Cross",
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "id" : "Dave Cross",
+ "name" : "Dave Cross"
},
{
+ "name" : "Dave Jacoby",
+ "id" : "Dave Jacoby",
"data" : [
[
"Perl",
@@ -105,35 +115,35 @@
"Blog",
1
]
- ],
- "id" : "Dave Jacoby",
- "name" : "Dave Jacoby"
+ ]
},
{
"id" : "Duane Powell",
- "name" : "Duane Powell",
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "name" : "Duane Powell"
},
{
+ "name" : "E. Choroba",
"data" : [
[
"Perl",
2
]
],
- "id" : "E. Choroba",
- "name" : "E. Choroba"
+ "id" : "E. Choroba"
},
{
- "id" : "Luca Ferrari",
- "name" : "Luca Ferrari",
"data" : [
[
+ "Perl",
+ 2
+ ],
+ [
"Raku",
2
],
@@ -141,66 +151,79 @@
"Blog",
1
]
- ]
+ ],
+ "id" : "Javier Luque",
+ "name" : "Javier Luque"
},
{
- "name" : "Markus Holzer",
- "id" : "Markus Holzer",
"data" : [
[
"Raku",
2
+ ],
+ [
+ "Blog",
+ 1
]
- ]
+ ],
+ "id" : "Luca Ferrari",
+ "name" : "Luca Ferrari"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Markus Holzer",
+ "name" : "Markus Holzer"
},
{
- "name" : "Nazareno Delucca",
- "id" : "Nazareno Delucca",
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "id" : "Nazareno Delucca",
+ "name" : "Nazareno Delucca"
},
{
+ "id" : "Peter Scott",
"data" : [
[
"Perl",
1
]
],
- "name" : "Peter Scott",
- "id" : "Peter Scott"
+ "name" : "Peter Scott"
},
{
+ "id" : "Rage311",
"data" : [
[
"Perl",
2
]
],
- "id" : "Rage311",
"name" : "Rage311"
},
{
- "name" : "Simon Proctor",
"id" : "Simon Proctor",
"data" : [
[
"Raku",
2
]
- ]
+ ],
+ "name" : "Simon Proctor"
}
]
},
- "tooltip" : {
- "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>",
- "followPointer" : 1,
- "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>"
- },
- "chart" : {
- "type" : "column"
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
}
}
diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json
index 600bd185a2..7dc46fa166 100644
--- a/stats/pwc-language-breakdown-summary.json
+++ b/stats/pwc-language-breakdown-summary.json
@@ -1,63 +1,63 @@
{
- "xAxis" : {
- "type" : "category",
- "labels" : {
- "style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
- }
- }
- },
- "subtitle" : {
- "text" : "Last updated at 2020-01-30 12:16:59 GMT"
- },
- "yAxis" : {
- "min" : 0,
- "title" : {
- "text" : null
- }
- },
- "tooltip" : {
- "pointFormat" : "<b>{point.y:.0f}</b>"
- },
- "chart" : {
- "type" : "column"
- },
- "legend" : {
- "enabled" : "false"
- },
"title" : {
"text" : "Perl Weekly Challenge Contributions [2019 - 2020]"
},
+ "subtitle" : {
+ "text" : "Last updated at 2020-01-30 12:53:38 GMT"
+ },
"series" : [
{
- "name" : "Contributions",
"dataLabels" : {
- "y" : 10,
+ "style" : {
+ "fontFamily" : "Verdana, sans-serif",
+ "fontSize" : "13px"
+ },
"format" : "{point.y:.0f}",
"align" : "right",
+ "enabled" : "true",
"rotation" : -90,
"color" : "#FFFFFF",
- "enabled" : "true",
- "style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
- }
+ "y" : 10
},
+ "name" : "Contributions",
"data" : [
[
"Blog",
- 474
+ 475
],
[
"Perl",
- 1820
+ 1822
],
[
"Raku",
- 1102
+ 1104
]
]
}
- ]
+ ],
+ "legend" : {
+ "enabled" : "false"
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : null
+ },
+ "min" : 0
+ },
+ "tooltip" : {
+ "pointFormat" : "<b>{point.y:.0f}</b>"
+ },
+ "chart" : {
+ "type" : "column"
+ },
+ "xAxis" : {
+ "labels" : {
+ "style" : {
+ "fontSize" : "13px",
+ "fontFamily" : "Verdana, sans-serif"
+ }
+ },
+ "type" : "category"
+ }
}
diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json
index 3d6f10d9e8..1d5f593aa6 100644
--- a/stats/pwc-language-breakdown.json
+++ b/stats/pwc-language-breakdown.json
@@ -1,14 +1,34 @@
{
+ "tooltip" : {
+ "headerFormat" : "<span style=\"font-size:11px\"></span>",
+ "followPointer" : "true",
+ "pointFormat" : "<span style=\"color:{point.color}\">Challenge {point.name}</span>: <b>{point.y:f}</b><br/>"
+ },
"chart" : {
"type" : "column"
},
- "tooltip" : {
- "headerFormat" : "<span style=\"font-size:11px\"></span>",
- "pointFormat" : "<span style=\"color:{point.color}\">Challenge {point.name}</span>: <b>{point.y:f}</b><br/>",
- "followPointer" : "true"
+ "plotOptions" : {
+ "series" : {
+ "dataLabels" : {
+ "enabled" : 1,
+ "format" : "{point.y}"
+ },
+ "borderWidth" : 0
+ }
+ },
+ "xAxis" : {
+ "type" : "category"
+ },
+ "title" : {
+ "text" : "Perl Weekly Challenge Language"
+ },
+ "subtitle" : {
+ "text" : "Click the columns to drilldown the language breakdown. Last updated at 2020-01-30 12:53:38 GMT"
},
"series" : [
{
+ "colorByPoint" : "true",
+ "name" : "Perl Weekly Challenge Languages",
"data" : [
{
"y" : 140,
@@ -16,9 +36,9 @@
"drilldown" : "001"
},
{
+ "y" : 109,
"drilldown" : "002",
- "name" : "#002",
- "y" : 109
+ "name" : "#002"
},
{
"y" : 71,
@@ -26,9 +46,9 @@
"name" : "#003"
},
{
- "y" : 91,
"drilldown" : "004",
- "name" : "#004"
+ "name" : "#004",
+ "y" : 91
},
{
"name" : "#005",
@@ -36,29 +56,29 @@
"y" : 71
},
{
- "name" : "#006",
"drilldown" : "006",
+ "name" : "#006",
"y" : 48
},
{
- "drilldown" : "007",
"name" : "#007",
+ "drilldown" : "007",
"y" : 56
},
{
+ "y" : 70,
"drilldown" : "008",
- "name" : "#008",
- "y" : 70
+ "name" : "#008"
},
{
+ "y" : 68,
"name" : "#009",
- "drilldown" : "009",
- "y" : 68
+ "drilldown" : "009"
},
{
+ "y" : 60,
"name" : "#010",
- "drilldown" : "010",
- "y" : 60
+ "drilldown" : "010"
},
{
"y" : 79,
@@ -66,9 +86,9 @@
"name" : "#011"
},
{
- "drilldown" : "012",
+ "y" : 83,
"name" : "#012",
- "y" : 83
+ "drilldown" : "012"
},
{
"y" : 76,
@@ -81,49 +101,49 @@
"y" : 96
},
{
- "y" : 93,
+ "name" : "#015",
"drilldown" : "015",
- "name" : "#015"
+ "y" : 93
},
{
- "drilldown" : "016",
"name" : "#016",
+ "drilldown" : "016",
"y" : 66
},
{
- "y" : 79,
"drilldown" : "017",
- "name" : "#017"
+ "name" : "#017",
+ "y" : 79
},
{
+ "y" : 76,
"name" : "#018",
- "drilldown" : "018",
- "y" : 76
+ "drilldown" : "018"
},
{
- "name" : "#019",
"drilldown" : "019",
+ "name" : "#019",
"y" : 95
},
{
- "y" : 95,
+ "name" : "#020",
"drilldown" : "020",
- "name" : "#020"
+ "y" : 95
},
{
"y" : 67,
- "name" : "#021",
- "drilldown" : "021"
+ "drilldown" : "021",
+ "name" : "#021"
},
{
+ "y" : 63,
"name" : "#022",
- "drilldown" : "022",
- "y" : 63
+ "drilldown" : "022"
},
{
- "y" : 91,
"drilldown" : "023",
- "name" : "#023"
+ "name" : "#023",
+ "y" : 91
},
{
"y" : 70,
@@ -137,8 +157,8 @@
},
{
"y" : 70,
- "drilldown" : "026",
- "name" : "#026"
+ "name" : "#026",
+ "drilldown" : "026"
},
{
"name" : "#027",
@@ -146,24 +166,24 @@
"y" : 58
},
{
- "name" : "#028",
"drilldown" : "028",
+ "name" : "#028",
"y" : 78
},
{
+ "y" : 77,
"drilldown" : "029",
- "name" : "#029",
- "y" : 77
+ "name" : "#029"
},
{
+ "y" : 115,
"drilldown" : "030",
- "name" : "#030",
- "y" : 115
+ "name" : "#030"
},
{
- "drilldown" : "031",
+ "y" : 87,
"name" : "#031",
- "y" : 87
+ "drilldown" : "031"
},
{
"drilldown" : "032",
@@ -176,19 +196,19 @@
"y" : 108
},
{
- "y" : 60,
"drilldown" : "034",
- "name" : "#034"
+ "name" : "#034",
+ "y" : 60
},
{
- "name" : "#035",
+ "y" : 60,
"drilldown" : "035",
- "y" : 60
+ "name" : "#035"
},
{
"y" : 61,
- "name" : "#036",
- "drilldown" : "036"
+ "drilldown" : "036",
+ "name" : "#036"
},
{
"name" : "#037",
@@ -196,9 +216,9 @@
"y" : 63
},
{
+ "y" : 60,
"drilldown" : "038",
- "name" : "#038",
- "y" : 60
+ "name" : "#038"
},
{
"y" : 60,
@@ -207,8 +227,8 @@
},
{
"y" : 66,
- "name" : "#040",
- "drilldown" : "040"
+ "drilldown" : "040",
+ "name" : "#040"
},
{
"y" : 68,
@@ -221,30 +241,30 @@
"y" : 87
},
{
- "name" : "#043",
"drilldown" : "043",
+ "name" : "#043",
"y" : 64
},
{
- "y" : 73,
+ "name" : "#044",
"drilldown" : "044",
- "name" : "#044"
+ "y" : 73
},
{
- "y" : 21,
+ "name" : "#045",
"drilldown" : "045",
- "name" : "#045"
+ "y" : 26
}
- ],
- "colorByPoint" : "true",
- "name" : "Perl Weekly Challenge Languages"
+ ]
}
],
+ "legend" : {
+ "enabled" : "false"
+ },
"drilldown" : {
"series" : [
{
"name" : "001",
- "id" : "001",
"data" : [
[
"Perl",
@@ -258,9 +278,12 @@
"Blog",
11
]
- ]
+ ],
+ "id" : "001"
},
{
+ "name" : "002",
+ "id" : "002",
"data" : [
[
"Perl",
@@ -274,13 +297,9 @@
"Blog",
10
]
- ],
- "name" : "002",
- "id" : "002"
+ ]
},
{
- "name" : "003",
- "id" : "003",
"data" : [
[
"Perl",
@@ -294,7 +313,9 @@
"Blog",
9
]
- ]
+ ],
+ "id" : "003",
+ "name" : "003"
},
{
"data" : [
@@ -315,8 +336,6 @@
"name" : "004"
},
{
- "name" : "005",
- "id" : "005",
"data" : [
[
"Perl",
@@ -330,11 +349,11 @@
"Blog",
12
]
- ]
+ ],
+ "id" : "005",
+ "name" : "005"
},
{
- "name" : "006",
- "id" : "006",
"data" : [
[
"Perl",
@@ -348,9 +367,12 @@
"Blog",
7
]
- ]
+ ],
+ "id" : "006",
+ "name" : "006"
},
{
+ "name" : "007",
"data" : [
[
"Perl",
@@ -365,8 +387,7 @@
10
]
],
- "id" : "007",
- "name" : "007"
+ "id" : "007"
},
{
"data" : [
@@ -387,7 +408,6 @@
"name" : "008"
},
{
- "id" : "009",
"name" : "009",
"data" : [
[
@@ -402,9 +422,11 @@
"Blog",
13
]
- ]
+ ],
+ "id" : "009"
},
{
+ "id" : "010",
"data" : [
[
"Perl",
@@ -419,12 +441,10 @@
11
]
],
- "id" : "010",
"name" : "010"
},
{
"name" : "011",
- "id" : "011",
"data" : [
[
"Perl",
@@ -438,9 +458,11 @@
"Blog",
10
]
- ]
+ ],
+ "id" : "011"
},
{
+ "name" : "012",
"data" : [
[
"Perl",
@@ -455,10 +477,11 @@
11
]
],
- "id" : "012",
- "name" : "012"
+ "id" : "012"
},
{
+ "name" : "013",
+ "id" : "013",
"data" : [
[
"Perl",
@@ -472,11 +495,10 @@
"Blog",
13
]
- ],
- "id" : "013",
- "name" : "013"
+ ]
},
{
+ "name" : "014",
"data" : [
[
"Perl",
@@ -491,10 +513,11 @@
15
]
],
- "name" : "014",
"id" : "014"
},
{
+ "name" : "015",
+ "id" : "015",
"data" : [
[
"Perl",
@@ -508,11 +531,10 @@
"Blog",
15
]
- ],
- "id" : "015",
- "name" : "015"
+ ]
},
{
+ "name" : "016",
"data" : [
[
"Perl",
@@ -527,10 +549,10 @@
12
]
],
- "id" : "016",
- "name" : "016"
+ "id" : "016"
},
{
+ "name" : "017",
"data" : [
[
"Perl",
@@ -545,10 +567,10 @@
12
]
],
- "id" : "017",
- "name" : "017"
+ "id" : "017"
},
{
+ "id" : "018",
"data" : [
[
"Perl",
@@ -563,12 +585,11 @@
14
]
],
- "id" : "018",
"name" : "018"
},
{
- "id" : "019",
"name" : "019",
+ "id" : "019",
"data" : [
[
"Perl",
@@ -603,6 +624,7 @@
]
},
{
+ "id" : "021",
"data" : [
[
"Perl",
@@ -617,7 +639,6 @@
10
]
],
- "id" : "021",
"name" : "021"
},
{
@@ -639,7 +660,6 @@
]
},
{
- "id" : "023",
"name" : "023",
"data" : [
[
@@ -654,9 +674,11 @@
"Blog",
12
]
- ]
+ ],
+ "id" : "023"
},
{
+ "id" : "024",
"data" : [
[
"Perl",
@@ -671,12 +693,9 @@
11
]
],
- "name" : "024",
- "id" : "024"
+ "name" : "024"
},
{
- "id" : "025",
- "name" : "025",
"data" : [
[
"Perl",
@@ -690,10 +709,11 @@
"Blog",
12
]
- ]
+ ],
+ "id" : "025",
+ "name" : "025"
},
{
- "name" : "026",
"id" : "026",
"data" : [
[
@@ -708,9 +728,11 @@
"Blog",
10
]
- ]
+ ],
+ "name" : "026"
},
{
+ "id" : "027",
"data" : [
[
"Perl",
@@ -725,7 +747,6 @@
9
]
],
- "id" : "027",
"name" : "027"
},
{
@@ -765,8 +786,8 @@
"name" : "029"
},
{
- "id" : "030",
"name" : "030",
+ "id" : "030",
"data" : [
[
"Perl",
@@ -783,6 +804,7 @@
]
},
{
+ "id" : "031",
"data" : [
[
"Perl",
@@ -797,11 +819,9 @@
9
]
],
- "name" : "031",
- "id" : "031"
+ "name" : "031"
},
{
- "id" : "032",
"name" : "032",
"data" : [
[
@@ -816,11 +836,11 @@
"Blog",
10
]
- ]
+ ],
+ "id" : "032"
},
{
"name" : "033",
- "id" : "033",
"data" : [
[
"Perl",