aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-001/arne-sommer/README1
-rw-r--r--challenge-001/arne-sommer/blog.txt1
-rw-r--r--challenge-001/arne-sommer/perl5/ch-1.pl9
-rw-r--r--challenge-001/arne-sommer/perl5/ch-2.sh1
-rw-r--r--challenge-001/arne-sommer/perl6/ch-1.p68
-rw-r--r--challenge-001/arne-sommer/perl6/ch-2.p615
-rw-r--r--stats/pwc-challenge-001.json817
-rw-r--r--stats/pwc-challenge-002.json676
-rw-r--r--stats/pwc-challenge-003.json382
-rw-r--r--stats/pwc-challenge-004.json246
-rw-r--r--stats/pwc-challenge-005.json198
-rw-r--r--stats/pwc-challenge-006.json326
-rw-r--r--stats/pwc-challenge-007.json348
-rw-r--r--stats/pwc-challenge-008.json394
-rw-r--r--stats/pwc-challenge-009.json374
-rw-r--r--stats/pwc-challenge-010.json378
-rw-r--r--stats/pwc-challenge-011.json428
-rw-r--r--stats/pwc-challenge-012.json200
-rw-r--r--stats/pwc-challenge-013.json458
-rw-r--r--stats/pwc-challenge-014.json506
-rw-r--r--stats/pwc-challenge-015.json290
-rw-r--r--stats/pwc-challenge-016.json206
-rw-r--r--stats/pwc-challenge-017.json206
-rw-r--r--stats/pwc-challenge-018.json260
-rw-r--r--stats/pwc-challenge-019.json500
-rw-r--r--stats/pwc-challenge-020.json274
-rw-r--r--stats/pwc-challenge-021.json402
-rw-r--r--stats/pwc-challenge-022.json348
-rw-r--r--stats/pwc-current.json248
-rw-r--r--stats/pwc-language-breakdown-summary.json44
-rw-r--r--stats/pwc-language-breakdown.json398
-rw-r--r--stats/pwc-leaders.json956
-rw-r--r--stats/pwc-master-stats.json264
-rw-r--r--stats/pwc-summary-1-30.json56
-rw-r--r--stats/pwc-summary-31-60.json52
-rw-r--r--stats/pwc-summary-61-90.json56
-rw-r--r--stats/pwc-summary-91-120.json86
-rw-r--r--stats/pwc-summary.json276
38 files changed, 5373 insertions, 5315 deletions
diff --git a/challenge-001/arne-sommer/README b/challenge-001/arne-sommer/README
new file mode 100644
index 0000000000..b5d88e4df4
--- /dev/null
+++ b/challenge-001/arne-sommer/README
@@ -0,0 +1 @@
+Solution by Arne Sommer.
diff --git a/challenge-001/arne-sommer/blog.txt b/challenge-001/arne-sommer/blog.txt
new file mode 100644
index 0000000000..3984d2819e
--- /dev/null
+++ b/challenge-001/arne-sommer/blog.txt
@@ -0,0 +1 @@
+https://perl6.eu/fizz-e-buzz.html
diff --git a/challenge-001/arne-sommer/perl5/ch-1.pl b/challenge-001/arne-sommer/perl5/ch-1.pl
new file mode 100644
index 0000000000..42b85ec205
--- /dev/null
+++ b/challenge-001/arne-sommer/perl5/ch-1.pl
@@ -0,0 +1,9 @@
+#! /usr/bin/env perl
+
+use feature say;
+
+my $string = $ARGV[0] || 'Perl Weekly Challenge'; # [1]
+
+my $count = $string =~ tr/e/E/; # [2]
+
+say "$string (with $count replacements)."; # [3]
diff --git a/challenge-001/arne-sommer/perl5/ch-2.sh b/challenge-001/arne-sommer/perl5/ch-2.sh
new file mode 100644
index 0000000000..1a99fb2ca3
--- /dev/null
+++ b/challenge-001/arne-sommer/perl5/ch-2.sh
@@ -0,0 +1 @@
+perl -E 'say $_ % 5 == 0 ? ( $_ % 3 == 0 ? "fizzbuzz" : "buzz" ) : ($_ % 3 == 0? "fizz" : $_ ) for (1..20)'
diff --git a/challenge-001/arne-sommer/perl6/ch-1.p6 b/challenge-001/arne-sommer/perl6/ch-1.p6
new file mode 100644
index 0000000000..8f415fb33c
--- /dev/null
+++ b/challenge-001/arne-sommer/perl6/ch-1.p6
@@ -0,0 +1,8 @@
+sub MAIN (Str $string is copy = 'Perl Weekly Challenge'); # [1]
+{
+ my $count = $string ~~ tr/e/E/;
+
+ say "$string (with $count replacements).";
+}
+
+
diff --git a/challenge-001/arne-sommer/perl6/ch-2.p6 b/challenge-001/arne-sommer/perl6/ch-2.p6
new file mode 100644
index 0000000000..37c3c96df0
--- /dev/null
+++ b/challenge-001/arne-sommer/perl6/ch-2.p6
@@ -0,0 +1,15 @@
+for 1 .. 20 -> $curr # [1]
+{
+ if $curr %% 5 # [2]
+ {
+ $curr %% 3 ?? say 'fizzbuzz' !! say 'buzz'; # [3]
+ }
+ elsif $curr %% 3 # [4]
+ {
+ say 'fizz'; # [4]
+ }
+ else
+ {
+ say $curr; # [5]
+ }
+}
diff --git a/stats/pwc-challenge-001.json b/stats/pwc-challenge-001.json
index f6d1c47a2a..d47a8695c9 100644
--- a/stats/pwc-challenge-001.json
+++ b/stats/pwc-challenge-001.json
@@ -1,23 +1,324 @@
{
- "legend" : {
- "enabled" : 0
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
},
"title" : {
"text" : "Perl Weekly Challenge - 001"
},
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
+ "plotOptions" : {
+ "series" : {
+ "borderWidth" : 0,
+ "dataLabels" : {
+ "format" : "{point.y}",
+ "enabled" : 1
+ }
}
},
+ "chart" : {
+ "type" : "column"
+ },
"subtitle" : {
- "text" : "[Champions: 54] Last updated at 2019-08-27 11:28:52 GMT"
+ "text" : "[Champions: 55] Last updated at 2019-08-30 22:13:05 GMT"
+ },
+ "xAxis" : {
+ "type" : "category"
+ },
+ "tooltip" : {
+ "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/>",
+ "followPointer" : 1
+ },
+ "legend" : {
+ "enabled" : 0
},
+ "series" : [
+ {
+ "name" : "Perl Weekly Challenge - 001",
+ "data" : [
+ {
+ "drilldown" : "Adam Russell",
+ "name" : "Adam Russell",
+ "y" : 3
+ },
+ {
+ "name" : "Ailbhe Tweedie",
+ "y" : 1,
+ "drilldown" : "Ailbhe Tweedie"
+ },
+ {
+ "drilldown" : "Alex Daniel",
+ "name" : "Alex Daniel",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Andrezgz",
+ "name" : "Andrezgz",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Antonio Gamiz",
+ "name" : "Antonio Gamiz",
+ "y" : 2
+ },
+ {
+ "y" : 5,
+ "name" : "Arne Sommer",
+ "drilldown" : "Arne Sommer"
+ },
+ {
+ "drilldown" : "Arpad Toth",
+ "y" : 2,
+ "name" : "Arpad Toth"
+ },
+ {
+ "drilldown" : "Athanasius",
+ "name" : "Athanasius",
+ "y" : 2
+ },
+ {
+ "name" : "Bob Kleemann",
+ "y" : 2,
+ "drilldown" : "Bob Kleemann"
+ },
+ {
+ "drilldown" : "Daniel Mantovani",
+ "y" : 1,
+ "name" : "Daniel Mantovani"
+ },
+ {
+ "drilldown" : "Dave Cross",
+ "y" : 3,
+ "name" : "Dave Cross"
+ },
+ {
+ "y" : 2,
+ "name" : "Dave Jacoby",
+ "drilldown" : "Dave Jacoby"
+ },
+ {
+ "y" : 2,
+ "name" : "David Kayal",
+ "drilldown" : "David Kayal"
+ },
+ {
+ "drilldown" : "Doug Schrag",
+ "name" : "Doug Schrag",
+ "y" : 2
+ },
+ {
+ "y" : 4,
+ "name" : "Dr James A. Smith",
+ "drilldown" : "Dr James A. Smith"
+ },
+ {
+ "name" : "Duncan C. White",
+ "y" : 2,
+ "drilldown" : "Duncan C. White"
+ },
+ {
+ "name" : "Eddy HS",
+ "y" : 2,
+ "drilldown" : "Eddy HS"
+ },
+ {
+ "name" : "Finley",
+ "y" : 2,
+ "drilldown" : "Finley"
+ },
+ {
+ "drilldown" : "Fred Zinn",
+ "y" : 1,
+ "name" : "Fred Zinn"
+ },
+ {
+ "y" : 2,
+ "name" : "Freddie B",
+ "drilldown" : "Freddie B"
+ },
+ {
+ "drilldown" : "Gustavo Chaves",
+ "y" : 1,
+ "name" : "Gustavo Chaves"
+ },
+ {
+ "name" : "JJ Merelo",
+ "y" : 2,
+ "drilldown" : "JJ Merelo"
+ },
+ {
+ "y" : 4,
+ "name" : "Jaldhar H. Vyas",
+ "drilldown" : "Jaldhar H. Vyas"
+ },
+ {
+ "drilldown" : "Jeff",
+ "name" : "Jeff",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Jeremy Carman",
+ "y" : 2,
+ "name" : "Jeremy Carman"
+ },
+ {
+ "name" : "Jim Bacon",
+ "y" : 1,
+ "drilldown" : "Jim Bacon"
+ },
+ {
+ "drilldown" : "Jo Christian Oterhals",
+ "name" : "Jo Christian Oterhals",
+ "y" : 5
+ },
+ {
+ "drilldown" : "Joelle Maslak",
+ "y" : 4,
+ "name" : "Joelle Maslak"
+ },
+ {
+ "drilldown" : "John Barrett",
+ "y" : 1,
+ "name" : "John Barrett"
+ },
+ {
+ "drilldown" : "Juan Caballero",
+ "name" : "Juan Caballero",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Khalid",
+ "y" : 2,
+ "name" : "Khalid"
+ },
+ {
+ "name" : "Kian-Meng Ang",
+ "y" : 3,
+ "drilldown" : "Kian-Meng Ang"
+ },
+ {
+ "name" : "Kivanc Yazan",
+ "y" : 2,
+ "drilldown" : "Kivanc Yazan"
+ },
+ {
+ "drilldown" : "Lars Balker",
+ "y" : 4,
+ "name" : "Lars Balker"
+ },
+ {
+ "drilldown" : "Laurent Rosenfeld",
+ "y" : 4,
+ "name" : "Laurent Rosenfeld"
+ },
+ {
+ "name" : "Mark Senn",
+ "y" : 2,
+ "drilldown" : "Mark Senn"
+ },
+ {
+ "drilldown" : "Martin Mugeni",
+ "y" : 2,
+ "name" : "Martin Mugeni"
+ },
+ {
+ "name" : "Neil Bowers",
+ "y" : 1,
+ "drilldown" : "Neil Bowers"
+ },
+ {
+ "drilldown" : "Nick Logan",
+ "name" : "Nick Logan",
+ "y" : 4
+ },
+ {
+ "drilldown" : "Oleksii Tsvietnov",
+ "name" : "Oleksii Tsvietnov",
+ "y" : 2
+ },
+ {
+ "y" : 2,
+ "name" : "Ozzy",
+ "drilldown" : "Ozzy"
+ },
+ {
+ "y" : 2,
+ "name" : "Pavel Jurca",
+ "drilldown" : "Pavel Jurca"
+ },
+ {
+ "drilldown" : "Pete Houston",
+ "y" : 2,
+ "name" : "Pete Houston"
+ },
+ {
+ "drilldown" : "Philippe Bruhat",
+ "y" : 3,
+ "name" : "Philippe Bruhat"
+ },
+ {
+ "drilldown" : "Prajith P",
+ "name" : "Prajith P",
+ "y" : 1
+ },
+ {
+ "drilldown" : "Sean Meininger",
+ "name" : "Sean Meininger",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Simon Proctor",
+ "name" : "Simon Proctor",
+ "y" : 6
+ },
+ {
+ "drilldown" : "Simon Reinhardt",
+ "name" : "Simon Reinhardt",
+ "y" : 2
+ },
+ {
+ "name" : "Steve Rogerson",
+ "y" : 4,
+ "drilldown" : "Steve Rogerson"
+ },
+ {
+ "drilldown" : "Steven Wilson",
+ "y" : 2,
+ "name" : "Steven Wilson"
+ },
+ {
+ "y" : 1,
+ "name" : "Tiago Stock",
+ "drilldown" : "Tiago Stock"
+ },
+ {
+ "drilldown" : "Tore Andersson",
+ "name" : "Tore Andersson",
+ "y" : 2
+ },
+ {
+ "y" : 1,
+ "name" : "Veesh Goldman",
+ "drilldown" : "Veesh Goldman"
+ },
+ {
+ "name" : "William Gilmore",
+ "y" : 1,
+ "drilldown" : "William Gilmore"
+ },
+ {
+ "drilldown" : "Yet Ebreo",
+ "y" : 4,
+ "name" : "Yet Ebreo"
+ }
+ ],
+ "colorByPoint" : 1
+ }
+ ],
"drilldown" : {
"series" : [
{
- "id" : "Adam Russell",
- "name" : "Adam Russell",
"data" : [
[
"Perl 5",
@@ -27,57 +328,77 @@
"Blog",
1
]
- ]
+ ],
+ "id" : "Adam Russell",
+ "name" : "Adam Russell"
},
{
"name" : "Ailbhe Tweedie",
+ "id" : "Ailbhe Tweedie",
"data" : [
[
"Perl 5",
1
]
- ],
- "id" : "Ailbhe Tweedie"
+ ]
},
{
"id" : "Alex Daniel",
- "name" : "Alex Daniel",
"data" : [
[
"Perl 6",
2
]
- ]
+ ],
+ "name" : "Alex Daniel"
},
{
- "name" : "Andrezgz",
"data" : [
[
"Perl 5",
2
]
],
- "id" : "Andrezgz"
+ "id" : "Andrezgz",
+ "name" : "Andrezgz"
},
{
- "name" : "Antonio Gamiz",
+ "id" : "Antonio Gamiz",
"data" : [
[
"Perl 6",
2
]
],
- "id" : "Antonio Gamiz"
+ "name" : "Antonio Gamiz"
},
{
+ "name" : "Arne Sommer",
+ "id" : "Arne Sommer",
+ "data" : [
+ [
+ "Perl 5",
+ 2
+ ],
+ [
+ "Perl 6",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "id" : "Arpad Toth",
"data" : [
[
"Perl 5",
2
]
],
- "name" : "Arpad Toth",
- "id" : "Arpad Toth"
+ "name" : "Arpad Toth"
},
{
"id" : "Athanasius",
@@ -90,14 +411,14 @@
"name" : "Athanasius"
},
{
- "name" : "Bob Kleemann",
+ "id" : "Bob Kleemann",
"data" : [
[
"Perl 5",
2
]
],
- "id" : "Bob Kleemann"
+ "name" : "Bob Kleemann"
},
{
"data" : [
@@ -106,11 +427,11 @@
1
]
],
- "name" : "Daniel Mantovani",
- "id" : "Daniel Mantovani"
+ "id" : "Daniel Mantovani",
+ "name" : "Daniel Mantovani"
},
{
- "name" : "Dave Cross",
+ "id" : "Dave Cross",
"data" : [
[
"Perl 5",
@@ -121,11 +442,11 @@
1
]
],
- "id" : "Dave Cross"
+ "name" : "Dave Cross"
},
{
- "id" : "Dave Jacoby",
"name" : "Dave Jacoby",
+ "id" : "Dave Jacoby",
"data" : [
[
"Perl 5",
@@ -144,22 +465,22 @@
2
]
],
- "name" : "David Kayal",
- "id" : "David Kayal"
+ "id" : "David Kayal",
+ "name" : "David Kayal"
},
{
- "name" : "Doug Schrag",
"data" : [
[
"Perl 6",
2
]
],
- "id" : "Doug Schrag"
+ "id" : "Doug Schrag",
+ "name" : "Doug Schrag"
},
{
- "id" : "Dr James A. Smith",
"name" : "Dr James A. Smith",
+ "id" : "Dr James A. Smith",
"data" : [
[
"Perl 5",
@@ -172,24 +493,24 @@
]
},
{
+ "name" : "Duncan C. White",
+ "id" : "Duncan C. White",
"data" : [
[
"Perl 5",
2
]
- ],
- "name" : "Duncan C. White",
- "id" : "Duncan C. White"
+ ]
},
{
- "name" : "Eddy HS",
+ "id" : "Eddy HS",
"data" : [
[
"Perl 5",
2
]
],
- "id" : "Eddy HS"
+ "name" : "Eddy HS"
},
{
"id" : "Finley",
@@ -213,23 +534,23 @@
},
{
"name" : "Freddie B",
+ "id" : "Freddie B",
"data" : [
[
"Perl 5",
2
]
- ],
- "id" : "Freddie B"
+ ]
},
{
- "id" : "Gustavo Chaves",
"name" : "Gustavo Chaves",
"data" : [
[
"Perl 5",
1
]
- ]
+ ],
+ "id" : "Gustavo Chaves"
},
{
"name" : "JJ Merelo",
@@ -246,6 +567,7 @@
"id" : "JJ Merelo"
},
{
+ "name" : "Jaldhar H. Vyas",
"id" : "Jaldhar H. Vyas",
"data" : [
[
@@ -256,22 +578,21 @@
"Perl 6",
2
]
- ],
- "name" : "Jaldhar H. Vyas"
+ ]
},
{
+ "name" : "Jeff",
"id" : "Jeff",
"data" : [
[
"Perl 5",
2
]
- ],
- "name" : "Jeff"
+ ]
},
{
- "id" : "Jeremy Carman",
"name" : "Jeremy Carman",
+ "id" : "Jeremy Carman",
"data" : [
[
"Perl 5",
@@ -284,18 +605,17 @@
]
},
{
+ "name" : "Jim Bacon",
+ "id" : "Jim Bacon",
"data" : [
[
"Perl 5",
1
]
- ],
- "name" : "Jim Bacon",
- "id" : "Jim Bacon"
+ ]
},
{
"id" : "Jo Christian Oterhals",
- "name" : "Jo Christian Oterhals",
"data" : [
[
"Perl 5",
@@ -309,9 +629,12 @@
"Blog",
1
]
- ]
+ ],
+ "name" : "Jo Christian Oterhals"
},
{
+ "name" : "Joelle Maslak",
+ "id" : "Joelle Maslak",
"data" : [
[
"Perl 5",
@@ -321,39 +644,37 @@
"Perl 6",
2
]
- ],
- "name" : "Joelle Maslak",
- "id" : "Joelle Maslak"
+ ]
},
{
- "id" : "John Barrett",
"data" : [
[
"Perl 5",
1
]
],
+ "id" : "John Barrett",
"name" : "John Barrett"
},
{
- "id" : "Juan Caballero",
"data" : [
[
"Perl 5",
2
]
],
+ "id" : "Juan Caballero",
"name" : "Juan Caballero"
},
{
- "id" : "Khalid",
"name" : "Khalid",
"data" : [
[
"Perl 5",
2
]
- ]
+ ],
+ "id" : "Khalid"
},
{
"id" : "Kian-Meng Ang",
@@ -381,7 +702,6 @@
},
{
"id" : "Lars Balker",
- "name" : "Lars Balker",
"data" : [
[
"Perl 5",
@@ -391,7 +711,8 @@
"Perl 6",
2
]
- ]
+ ],
+ "name" : "Lars Balker"
},
{
"id" : "Laurent Rosenfeld",
@@ -412,37 +733,37 @@
"name" : "Laurent Rosenfeld"
},
{
+ "id" : "Mark Senn",
"data" : [
[
"Perl 6",
2
]
],
- "name" : "Mark Senn",
- "id" : "Mark Senn"
+ "name" : "Mark Senn"
},
{
"id" : "Martin Mugeni",
- "name" : "Martin Mugeni",
"data" : [
[
"Perl 6",
2
]
- ]
+ ],
+ "name" : "Martin Mugeni"
},
{
- "name" : "Neil Bowers",
"data" : [
[
"Perl 5",
1
]
],
- "id" : "Neil Bowers"
+ "id" : "Neil Bowers",
+ "name" : "Neil Bowers"
},
{
- "name" : "Nick Logan",
+ "id" : "Nick Logan",
"data" : [
[
"Perl 5",
@@ -453,49 +774,50 @@
2
]
],
- "id" : "Nick Logan"
+ "name" : "Nick Logan"
},
{
"name" : "Oleksii Tsvietnov",
+ "id" : "Oleksii Tsvietnov",
"data" : [
[
"Perl 5",
2
]
- ],
- "id" : "Oleksii Tsvietnov"
+ ]
},
{
- "id" : "Ozzy",
+ "name" : "Ozzy",
"data" : [
[
"Perl 6",
2
]
],
- "name" : "Ozzy"
+ "id" : "Ozzy"
},
{
+ "id" : "Pavel Jurca",
"data" : [
[
"Perl 5",
2
]
],
- "name" : "Pavel Jurca",
- "id" : "Pavel Jurca"
+ "name" : "Pavel Jurca"
},
{
"name" : "Pete Houston",
+ "id" : "Pete Houston",
"data" : [
[
"Perl 5",
2
]
- ],
- "id" : "Pete Houston"
+ ]
},
{
+ "name" : "Philippe Bruhat",
"data" : [
[
"Perl 5",
@@ -506,7 +828,6 @@
1
]
],
- "name" : "Philippe Bruhat",
"id" : "Philippe Bruhat"
},
{
@@ -516,21 +837,22 @@
1
]
],
- "name" : "Prajith P",
- "id" : "Prajith P"
+ "id" : "Prajith P",
+ "name" : "Prajith P"
},
{
- "id" : "Sean Meininger",
"name" : "Sean Meininger",
"data" : [
[
"Perl 6",
2
]
- ]
+ ],
+ "id" : "Sean Meininger"
},
{
"name" : "Simon Proctor",
+ "id" : "Simon Proctor",
"data" : [
[
"Perl 5",
@@ -544,21 +866,21 @@
"Blog",
2
]
- ],
- "id" : "Simon Proctor"
+ ]
},