From db5f4dd8cc11b3b8a1c39652381b23ba12e13145 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sun, 10 Nov 2019 10:26:22 +0000 Subject: - Added solutions by Colin Crain. --- challenge-033/colin-crain/perl5/ch-1.pl | 87 +++++ challenge-033/colin-crain/perl5/ch-2.pl | 141 ++++++++ stats/pwc-current.json | 443 ++++++++++++------------ stats/pwc-language-breakdown-summary.json | 66 ++-- stats/pwc-language-breakdown.json | 246 +++++++------- stats/pwc-leaders.json | 542 +++++++++++++++--------------- stats/pwc-summary-1-30.json | 104 +++--- stats/pwc-summary-121-150.json | 90 ++--- stats/pwc-summary-31-60.json | 108 +++--- stats/pwc-summary-61-90.json | 40 +-- stats/pwc-summary-91-120.json | 108 +++--- stats/pwc-summary.json | 316 ++++++++--------- 12 files changed, 1267 insertions(+), 1024 deletions(-) create mode 100644 challenge-033/colin-crain/perl5/ch-1.pl create mode 100644 challenge-033/colin-crain/perl5/ch-2.pl diff --git a/challenge-033/colin-crain/perl5/ch-1.pl b/challenge-033/colin-crain/perl5/ch-1.pl new file mode 100644 index 0000000000..0555636159 --- /dev/null +++ b/challenge-033/colin-crain/perl5/ch-1.pl @@ -0,0 +1,87 @@ +#! /opt/local/bin/perl +# +# count_letters.pl +# +# PWC33 - Task #1 +# Count Letters (A..Z) +# Create a script that accepts one or more files specified on the +# command-line and count the number of times letters appeared in the +# files. +# +# So with the following input file sample.txt +# +# The quick brown fox jumps over the lazy dog. +# +# the script would display something like: +# +# a: 1 +# b: 1 +# c: 1 +# d: 1 +# e: 3 +# f: 1 +# g: 1 +# h: 2 +# i: 1 +# j: 1 +# k: 1 +# l: 1 +# m: 1 +# n: 1 +# o: 4 +# p: 1 +# q: 1 +# r: 2 +# s: 1 +# t: 2 +# u: 2 +# v: 1 +# w: 1 +# x: 1 +# y: 1 +# z: 1 +# +# method: the main points of interest here are the local setting of $/, +# the input record separator, to undef so on reading the entire +# file will get slurped up in one go. After that the slurped file +# is quickly reduced to an array-shaped pile of letters by the awesome +# power of the +# +# grep {/[a-z]/} split //, lc() +# +# combination. This is then iterated through with each letter +# occurance incrementing a hash value. The resultant hash is then +# sorted and displayed. +# +# colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN + +my @args = @ARGV; +my $counter = {}; + +for my $file ( @args ) { + if (! -f $file) { die "argument $file is not a valid file "}; + open (my $fh, "<", $file) || die; { "file read error: \'$file\' cannot be opened" }; + local $/ = undef; ## locally set the line separator to undef so we slurp the entire file + my $text = <$fh>; + close $fh; + + my @letters = grep {/[a-z]/} split //, lc($text); + for my $letter ( @letters ){ + $counter->{$letter}++; + } +} + +## output the hash +for my $key (sort keys $counter->%*) { + printf "%3s: %-d\n", $key, $counter->{$key}; + +} diff --git a/challenge-033/colin-crain/perl5/ch-2.pl b/challenge-033/colin-crain/perl5/ch-2.pl new file mode 100644 index 0000000000..d9d1007f64 --- /dev/null +++ b/challenge-033/colin-crain/perl5/ch-2.pl @@ -0,0 +1,141 @@ +#! /opt/local/bin/perl +# +# multiplication.pl +# +# PWC 33 - Task #2 +# Formatted Multiplication Table +# Write a script to print 11x11 multiplication table, only the top half triangle. +# +# x| 1 2 3 4 5 6 7 8 9 10 11 +# ---+-------------------------------------------- +# 1| 1 2 3 4 5 6 7 8 9 10 11 +# 2| 4 6 8 10 12 14 16 18 20 22 +# 3| 9 12 15 18 21 24 27 30 33 +# 4| 16 20 24 28 32 36 40 44 +# 5| 25 30 35 40 45 50 55 +# 6| 36 42 48 54 60 66 +# 7| 49 56 63 70 77 +# 8| 64 72 80 88 +# 9| 81 90 99 +# 10| 100 110 +# 11| 121 +# +# method: well, there is one quite straightforward way to output the table +# above, and that is to simply output the table above. This satifies +# the letter if perhaps not the spirt of the challenge. That +# function can be examined in +# +# sub cheap_and_dirty() +# +# below. +# +# With that out of the way, the table can be algorithmically produced +# by an incrementing loop in turn iterating over all of the values +# greater than the loop value, up to a given maximum, in this case 11. +# Multipliying one value times the other will produce first all of the +# 1 x products starting with 1, then the 2 x products starting with +# 2, etc. A map function inside an anonymous list will produce the +# required values. +# +# In printing the table, to construct the triangle we can use a +# printf function with a dynamic format string, with a builder within +# each iteration using either numeric specifiers or blank spaces as +# required; this in turn is fed by the mapped list of products +# mentioned above. Easy peasy. The header row, the x-axis index, is +# nearly identical to the 1 x product row, so it can be considered a +# special case version of that, as is the dividing row, which can be +# considered a special case using entirely dashes instead of spaces +# or numbers. These are printed during the first iteration, before +# the first 1 x product row. +# +# But this is a general algorithm and can be applied to any upper +# bound, so we can replace the fixed value 11 as a maximum and +# in corelated calculated coefficiants with a variable, $range. +# However if the spacing is fixed, say at the 4 characters used by +# the sample 11x11 times table above, problems will arise in the +# formatting, because large values will eventually exceed the space +# provided and the table will no longer look pretty. This cannot +# stand, as after all we have gone to great lengths to prettify the +# output. We are saved from an ugly and miserable existance by +# creating precalculated spacer variables specifiying the number of +# characters required to fit the output products and factors +# involved; we can substitute these values into our printf formats +# and the table will automatically scale as required to fit the +# output values. +# +# The range of the table is set in the $range variable below. Try +# setting other values. My machine begins to grind a bit in the mid +# five figures somewhere. +# +# YMMV. +# +# 2019 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## CONFIG + +## this is specified by the challenge to 11, for an 11x11 times table, but can be set in this version to any positive integer +my $range = shift @ARGV // 11; ## change the 11 here or use a command line argument + +## ## ## ## ## MAIN + +draw_times_table($range); + +say "\n"; + +## or, alternately: +cheap_and_dirty(); + + + + +## ## ## ## ## SUBS + +sub draw_times_table { + my $range = shift; + + ## autoscaling calculations: + ## we need to gather some basic spatial characteristics of the table we will draw + my $space = scalar( split //, ($range * $range) ) + 1; ## count of chars required to fit largest number_format + 1 extra + my $digits = scalar( split //, ($range) ) + 1; ## count of chars taken by the original specified range number + 1 extra + my $product_format = '%' . $space . 'd'; ## the format substring to print the largest product within the correct width + my $number_format = '%' . $digits . 'd'; ## the format substring to print a factor within the correct width + + ## draw the table: + for my $i (1..$range) { + ## header index and dashed line + if ( $i == 1) { + my $format = (" " x ($digits-1)) . "x|" . ((" " x $space) x ($i-1)) . ($product_format) x ($range - ($i-1)) . "\n"; + my $dash_format = ("-" x ($digits)) . "+" . (("-" x $space) x $range) . "\n"; + printf "$format", (map { $i * $_ } ($i..$range)); + printf "$dash_format"; + }; + ## table rows + my $format = $number_format . "|" . ((" " x $space) x ($i-1)) . ($product_format) x ($range - ($i-1)) . "\n"; + printf "$format", $i, (map { $i * $_} ($i..$range)); + } +} + +sub cheap_and_dirty { +say<<__END__ + x| 1 2 3 4 5 6 7 8 9 10 11 +---+-------------------------------------------- + 1| 1 2 3 4 5 6 7 8 9 10 11 + 2| 4 6 8 10 12 14 16 18 20 22 + 3| 9 12 15 18 21 24 27 30 33 + 4| 16 20 24 28 32 36 40 44 + 5| 25 30 35 40 45 50 55 + 6| 36 42 48 54 60 66 + 7| 49 56 63 70 77 + 8| 64 72 80 88 + 9| 81 90 99 + 10| 100 110 + 11| 121 +__END__ +} diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 8213ca3e56..a12025452b 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,26 +1,195 @@ { - "xAxis" : { - "type" : "category" - }, + "series" : [ + { + "data" : [ + { + "name" : "Andrezgz", + "y" : 2, + "drilldown" : "Andrezgz" + }, + { + "drilldown" : "Arne Sommer", + "y" : 3, + "name" : "Arne Sommer" + }, + { + "drilldown" : "Bruce Van Allen", + "name" : "Bruce Van Allen", + "y" : 2 + }, + { + "name" : "Colin Crain", + "y" : 2, + "drilldown" : "Colin Crain" + }, + { + "drilldown" : "Daniel Mita", + "name" : "Daniel Mita", + "y" : 1 + }, + { + "drilldown" : "Darren Bottin", + "name" : "Darren Bottin", + "y" : 2 + }, + { + "y" : 2, + "name" : "Dave Cross", + "drilldown" : "Dave Cross" + }, + { + "y" : 2, + "name" : "Dave Jacoby", + "drilldown" : "Dave Jacoby" + }, + { + "name" : "Dr James A. Smith", + "y" : 2, + "drilldown" : "Dr James A. Smith" + }, + { + "drilldown" : "Duane Powell", + "y" : 2, + "name" : "Duane Powell" + }, + { + "drilldown" : "E. Choroba", + "name" : "E. Choroba", + "y" : 2 + }, + { + "drilldown" : "Javier Luque", + "y" : 5, + "name" : "Javier Luque" + }, + { + "drilldown" : "Kevin Colyer", + "name" : "Kevin Colyer", + "y" : 2 + }, + { + "y" : 2, + "name" : "Lars Thegler", + "drilldown" : "Lars Thegler" + }, + { + "name" : "Laurent Rosenfeld", + "y" : 5, + "drilldown" : "Laurent Rosenfeld" + }, + { + "drilldown" : "Mark Anderson", + "y" : 1, + "name" : "Mark Anderson" + }, + { + "drilldown" : "Markus Holzer", + "y" : 2, + "name" : "Markus Holzer" + }, + { + "name" : "Nazareno Delucca", + "y" : 2, + "drilldown" : "Nazareno Delucca" + }, + { + "name" : "Noud", + "y" : 2, + "drilldown" : "Noud" + }, + { + "y" : 2, + "name" : "Petr Roubicek", + "drilldown" : "Petr Roubicek" + }, + { + "y" : 2, + "name" : "Prajith P", + "drilldown" : "Prajith P" + }, + { + "name" : "Richard Nuttall", + "y" : 2, + "drilldown" : "Richard Nuttall" + }, + { + "y" : 5, + "name" : "Roger Bell West", + "drilldown" : "Roger Bell West" + }, + { + "drilldown" : "Ruben Westerberg", + "name" : "Ruben Westerberg", + "y" : 4 + }, + { + "drilldown" : "Ryan Thompson", + "y" : 4, + "name" : "Ryan Thompson" + }, + { + "drilldown" : "Simon Proctor", + "name" : "Simon Proctor", + "y" : 2 + }, + { + "y" : 2, + "name" : "Steven Wilson", + "drilldown" : "Steven Wilson" + }, + { + "drilldown" : "Ulrich Rieke", + "name" : "Ulrich Rieke", + "y" : 4 + } + ], + "name" : "Perl Weekly Challenge - 033", + "colorByPoint" : 1 + } + ], "yAxis" : { "title" : { "text" : "Total Solutions" } }, + "subtitle" : { + "text" : "[Champions: 28] Last updated at 2019-11-10 10:25:57 GMT" + }, + "chart" : { + "type" : "column" + }, + "xAxis" : { + "type" : "category" + }, + "tooltip" : { + "followPointer" : 1, + "pointFormat" : "{point.name}: {point.y:f}
", + "headerFormat" : "{series.name}
" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + } + } + }, "drilldown" : { "series" : [ { + "id" : "Andrezgz", + "name" : "Andrezgz", "data" : [ [ "Perl 5", 2 ] - ], - "id" : "Andrezgz", - "name" : "Andrezgz" + ] }, { "id" : "Arne Sommer", + "name" : "Arne Sommer", "data" : [ [ "Perl 6", @@ -30,8 +199,7 @@ "Blog", 1 ] - ], - "name" : "Arne Sommer" + ] }, { "data" : [ @@ -46,12 +214,22 @@ { "data" : [ [ - "Perl 6", - 1 + "Perl 5", + 2 ] ], + "name" : "Colin Crain", + "id" : "Colin Crain" + }, + { "id" : "Daniel Mita", - "name" : "Daniel Mita" + "name" : "Daniel Mita", + "data" : [ + [ + "Perl 6", + 1 + ] + ] }, { "name" : "Darren Bottin", @@ -64,24 +242,24 @@ ] }, { - "id" : "Dave Cross", "data" : [ [ "Perl 5", 2 ] ], + "id" : "Dave Cross", "name" : "Dave Cross" }, { + "id" : "Dave Jacoby", "name" : "Dave Jacoby", "data" : [ [ "Perl 5", 2 ] - ], - "id" : "Dave Jacoby" + ] }, { "name" : "Dr James A. Smith", @@ -95,26 +273,25 @@ }, { "name" : "Duane Powell", + "id" : "Duane Powell", "data" : [ [ "Perl 5", 2 ] - ], - "id" : "Duane Powell" + ] }, { + "id" : "E. Choroba", "name" : "E. Choroba", "data" : [ [ "Perl 5", 2 ] - ], - "id" : "E. Choroba" + ] }, { - "id" : "Javier Luque", "data" : [ [ "Perl 5", @@ -129,21 +306,22 @@ 1 ] ], - "name" : "Javier Luque" + "name" : "Javier Luque", + "id" : "Javier Luque" }, { - "name" : "Kevin Colyer", - "id" : "Kevin Colyer", "data" : [ [ "Perl 6", 2 ] - ] + ], + "name" : "Kevin Colyer", + "id" : "Kevin Colyer" }, { - "name" : "Lars Thegler", "id" : "Lars Thegler", + "name" : "Lars Thegler", "data" : [ [ "Perl 5", @@ -170,48 +348,48 @@ "name" : "Laurent Rosenfeld" }, { - "id" : "Mark Anderson", "data" : [ [ "Perl 5", 1 ] ], + "id" : "Mark Anderson", "name" : "Mark Anderson" }, { - "name" : "Markus Holzer", - "id" : "Markus Holzer", "data" : [ [ "Perl 6", 2 ] - ] + ], + "id" : "Markus Holzer", + "name" : "Markus Holzer" }, { + "id" : "Nazareno Delucca", "name" : "Nazareno Delucca", "data" : [ [ "Perl 5", 2 ] - ], - "id" : "Nazareno Delucca" + ] }, { - "name" : "Noud", "data" : [ [ "Perl 6", 2 ] ], - "id" : "Noud" + "id" : "Noud", + "name" : "Noud" }, { - "name" : "Petr Roubicek", "id" : "Petr Roubicek", + "name" : "Petr Roubicek", "data" : [ [ "Perl 5", @@ -221,25 +399,27 @@ }, { "id" : "Prajith P", + "name" : "Prajith P", "data" : [ [ "Perl 5", 2 ] - ], - "name" : "Prajith P" + ] }, { + "name" : "Richard Nuttall", + "id" : "Richard Nuttall", "data" : [ [ "Perl 6", 2 ] - ], - "id" : "Richard Nuttall", - "name" : "Richard Nuttall" + ] }, { + "id" : "Roger Bell West", + "name" : "Roger Bell West", "data" : [ [ "Perl 5", @@ -253,12 +433,11 @@ "Blog", 1 ] - ], - "id" : "Roger Bell West", - "name" : "Roger Bell West" + ] }, { "id" : "Ruben Westerberg", + "name" : "Ruben Westerberg", "data" : [ [ "Perl 5", @@ -268,10 +447,11 @@ "Perl 6", 2 ] - ], - "name" : "Ruben Westerberg" + ] }, { + "id" : "Ryan Thompson", + "name" : "Ryan Thompson", "data" : [ [ "Perl 5", @@ -281,9 +461,7 @@ "Perl 6", 2 ] - ], - "id" : "Ryan Thompson", - "name" : "Ryan Thompson" + ] }, { "name" : "Simon Proctor", @@ -306,8 +484,6 @@ ] }, { - "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke", "data" : [ [ "Perl 5", @@ -317,177 +493,16 @@ "Perl 6", 2 ] - ] + ], + "id" : "Ulrich Rieke", + "name" : "Ulrich Rieke" } ] }, - "chart" : { - "type" : "column" - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } + "legend" : { + "enabled" : 0 }, "title" : { "text" : "Perl Weekly Challenge - 033" - }, - "subtitle" : { - "text" : "[Champions: 27] Last updated at 2019-11-09 20:29:17 GMT" - }, - "tooltip" : { - "headerFormat" : "{series.name}
", - "followPointer" : 1, - "pointFormat" : "{point.name}: {point.y:f}
" - }, - "series" : [ - { - "data" : [ - { - "name" : "Andrezgz", - "y" : 2, - "drilldown" : "Andrezgz" - }, - { - "name" : "Arne Sommer", - "y" : 3, - "drilldown" : "Arne Sommer" - }, - { - "drilldown" : "Bruce Van Allen", - "y" : 2, - "name" : "Bruce Van Allen" - }, - { - "drilldown" : "Daniel Mita", - "name" : "Daniel Mita", - "y" : 1 - }, - { - "drilldown" : "Darren Bottin", - "name" : "Darren Bottin", - "y" : 2 - }, - { - "drilldown" : "Dave Cross", - "y" : 2, - "name" : "Dave Cross" - }, - { - "drilldown" : "Dave Jacoby", - "y" : 2, - "name" : "Dave Jacoby" - }, - { - "name" : "Dr James A. Smith", - "y" : 2, - "drilldown" : "Dr James A. Smith" - }, - { - "y" : 2, - "name" : "Duane Powell", - "drilldown" : "Duane Powell" - }, - { - "drilldown" : "E. Choroba", - "name" : "E. Choroba", - "y" : 2 - }, - { - "name" : "Javier Luque", - "y" : 5, - "drilldown" : "Javier Luque" - }, - { - "drilldown" : "Kevin Colyer", - "y" : 2, - "name" : "Kevin Colyer" - }, - { - "drilldown" : "Lars Thegler", - "name" : "Lars Thegler", - "y" : 2 - }, - { - "name" : "Laurent Rosenfeld", - "y" : 5, - "drilldown" : "Laurent Rosenfeld" - }, - { - "drilldown" : "Mark Anderson", - "name" : "Mark Anderson", - "y" : 1 - }, - { - "y" : 2, - "name" : "Markus Holzer", - "drilldown" : "Markus Holzer" - }, - { - "drilldown" : "Nazareno Delucca", - "name" : "Nazareno Delucca", - "y" : 2 - }, - { - "y" : 2, - "name" : "Noud", - "drilldown" : "Noud" - }, - { - "drilldown" : "Petr Roubicek", - "name" : "Petr Roubicek", - "y" : 2 - }, - { - "y" : 2, - "name" : "Prajith P", - "drilldown" : "Prajith P" - }, - { - "name" : "Richard Nuttall", - "y" : 2, - "drilldown" : "Richard Nuttall" - }, - { - "name" : "Roger Bell West", - "y" : 5, - "drilldown" : "Roger Bell West" - }, - { - "y" : 4, - "name" : "Ruben Westerberg", - "drilldown" : "Ruben Westerberg" - }, - { - "y" : 4, - "name" : "Ryan Thompson", - "drilldown" : "Ryan Thompson" - }, - { - "drilldown" : "Simon Proctor", - "y" : 2, - "name" : "Simon Proctor" - }, - { - "drilldown" : "Steven Wilson", - "name" : "Steven Wilson", - "y" : 2 - }, - { - "drilldown" : "Ulrich Rieke", - "name" : "Ulrich Rieke", - "y" : 4 - } - ], - "name" : "Perl Weekly Challenge - 033", - "colorByPoint" : 1 - } - ], - "legend" : { - "enabled" : 0 } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 8f16f02260..c3cb1cfc6f 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,48 +1,30 @@ { - "title" : { - "text" : "Perl Weekly Challenge Contributions - 2019" - }, "legend" : { "enabled" : "false" }, - "chart" : { - "type" : "column" - }, "tooltip" : { "pointFormat" : "{point.y:.0f}" }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : null - } - }, - "subtitle" : { - "text" : "Last updated at 2019-11-09 20:29:31 GMT" - }, "xAxis" : { - "type" : "category", "labels" : { "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" } + }, + "type" : "category" + }, + "chart" : { + "type" : "column" + }, + "yAxis" : { + "min" : 0, + "title" : { + "text" : null } }, "series" : [ { - "dataLabels" : { - "format" : "{point.y:.0f}", - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - }, - "enabled" : "true", - "align" : "right", - "color" : "#FFFFFF", - "rotation" : -90, - "y" : 10 - }, "name" : "Contributions", "data" : [ [ @@ -51,13 +33,31 @@ ], [ "Perl 5", - 1400 + 1402 ], [ "Perl 6", 828 ] - ] + ], + "dataLabels" : { + "y" : 10, + "format" : "{point.y:.0f}", + "rotation" : -90, + "align" : "right", + "enabled" : "true", + "color" : "#FFFFFF", + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + } + } } - ] + ], + "subtitle" : { + "text" : "Last updated at 2019-11-10 10:26:16 GMT" + }, + "title" : { + "text" : "Perl Weekly Challenge Contributions - 2019" + } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index caf99f4ea2..98055b528a 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,4 +1,7 @@ { + "xAxis" : { + "type" : "category" + }, "drilldown" : { "series" : [ { @@ -20,6 +23,7 @@ "name" : "001" }, { + "name" : "002", "data" : [ [ "Perl 5", @@ -34,7 +38,6 @@ 9 ] ], - "name" : "002", "id" : "002" }, { @@ -56,8 +59,6 @@ "id" : "003" }, { - "id" : "004", - "name" : "004", "data" : [ [ "Perl 5", @@ -71,10 +72,12 @@ "Blog", 9 ] - ] + ], + "name" : "004", + "id" : "004" }, { - "name" : "005", + "id" : "005", "data" : [ [ "Perl 5", @@ -89,9 +92,10 @@ 11 ] ], - "id" : "005" + "name" : "005" }, { + "name" : "006", "data" : [ [ "Perl 5", @@ -106,10 +110,11 @@ 7 ] ], - "name" : "006", "id" : "006" }, { + "id" : "007", + "name" : "007", "data" : [ [ "Perl 5", @@ -123,11 +128,11 @@ "Blog", 10 ] - ], - "name" : "007", - "id" : "007" + ] }, { + "id" : "008", + "name" : "008", "data" : [ [ "Perl 5", @@ -141,12 +146,9 @@ "Blog", 12 ] - ], - "name" : "008", - "id" : "008" + ] }, { - "id" : "009", "data" : [ [ "Perl 5", @@ -161,10 +163,10 @@ 13 ] ], - "name" : "009" + "name" : "009", + "id" : "009" }, { - "id" : "010", "data" : [ [ "Perl 5", @@ -179,7 +181,8 @@ 11 ] ], - "name" : "010" + "name" : "010", + "id" : "010" }, { "name" : "011", @@ -200,8 +203,6 @@ "id" : "011" }, { - "id" : "012", - "name" : "012", "data" : [ [ "Perl 5", @@ -215,10 +216,13 @@ "Blog", 11 ] - ] + ], + "name" : "012", + "id" : "012" }, { "id" : "013", + "name" : "013", "data" : [ [ "Perl 5", @@ -232,11 +236,9 @@ "Blog", 13 ] - ], - "name" : "013" + ] }, { - "id" : "014", "name" : "014", "data" : [ [ @@ -251,9 +253,11 @@ "Blog", 15 ] - ] + ], + "id" : "014" }, { + "name" : "015", "data" : [ [ "Perl 5", @@ -268,7 +272,6 @@ 15 ] ], - "name" : "015", "id" : "015" }, { @@ -290,6 +293,8 @@ "id" : "016" }, { + "id" : "017", + "name" : "017", "data" : [ [ "Perl 5", @@ -303,12 +308,11 @@ "Blog", 12 ] - ], - "name" : "017", - "id" : "017" + ] }, { "id" : "018", + "name" : "018", "data" : [ [ "Perl 5", @@ -322,11 +326,10 @@ "Blog", 14 ] - ], - "name" : "018" + ] }, { - "id" : "019", + "name" : "019", "data" : [ [ "Perl 5", @@ -341,7 +344,7 @@ 13 ] ], - "name" : "019" + "id" : "019" }, { "id" : "020", @@ -363,7 +366,6 @@ }, { "id" : "021", - "name" : "021", "data" : [ [ "Perl 5", @@ -377,9 +379,11 @@ "Blog", 10 ] - ] + ], + "name" : "021" }, { + "id" : "022", "name" : "022", "data" : [ [ @@ -394,11 +398,11 @@ "Blog", 10 ] - ], - "id" : "022" + ] }, { "id" : "023", + "name" : "023", "data" : [ [ "Perl 5", @@ -412,11 +416,9 @@ "Blog", 12 ] - ], - "name" : "023" + ] }, { - "id" : "024", "name" : "024", "data" : [ [ @@ -431,10 +433,10 @@ "Blog", 11 ] - ] + ], + "id" : "024" }, { - "id" : "025", "data" : [ [ "Perl 5", @@ -449,9 +451,11 @@ 12 ] ], - "name" : "025" + "name" : "025", + "id" : "025" }, { + "id" : "026", "name" : "026", "data" : [ [ @@ -466,8 +470,7 @@ "Blog", 10 ] - ], - "id" : "026" + ] }, { "data" : [ @@ -488,8 +491,6 @@ "id" : "027" }, { - "id" : "028", - "name" : "028", "data" : [ [ "Perl 5", @@ -503,7 +504,9 @@ "Blog", 9 ] - ] + ], + "name" : "028", + "id" : "028" }, { "id" : "029", @@ -524,6 +527,8 @@ "name" : "029" }, { + "id" : "030", + "name" : "030", "data" : [ [ "Perl 5", @@ -537,12 +542,10 @@ "Blog", 10 ] - ], - "name" : "030", - "id" : "030" + ] }, { - "name" : "031", + "id" : "031", "data" : [ [ "Perl 5", @@ -557,10 +560,9 @@ 9 ] ], - "id" : "031" + "name" : "031" }, { - "name" : "032", "data" : [ [ "Perl 5", @@ -575,13 +577,16 @@ 8 ] ], + "name" : "032", "id" : "032" }, { + "id" : "033", + "name" : "033", "data" : [ [ "Perl 5", - 39 + 41 ], [ "Perl 6", @@ -591,27 +596,20 @@ "Blog", 4 ] - ], - "name" : "033", - "id" : "033" + ] } ] }, - "chart" : { - "type" : "column" - }, - "title" : { - "text" : "Perl Weekly Challenge Language" + "tooltip" : { + "headerFormat" : "", + "pointFormat" : "Challenge {point.name}: {point.y:f}
", + "followPointer" : "true" }, "legend" : { "enabled" : "false" }, - "xAxis" : { - "type" : "category" - }, "series" : [ { - "colorByPoint" : "true", "data" : [ { "y" : 132, @@ -619,24 +617,24 @@ "name" : "#001" }, { - "y" : 104, + "name" : "#002", "drilldown" : "002", - "name" : "#002" + "y" : 104 }, { - "y" : 67, + "name" : "#003", "drilldown" : "003", - "name" : "#003" + "y" : 67 }, { - "name" : "#004", "y" : 86, + "name" : "#004", "drilldown" : "004" }, { - "drilldown" : "005", "y" : 66, - "name" : "#005" + "name" : "#005", + "drilldown" : "005" }, { "y" : 48, @@ -644,43 +642,43 @@ "name" : "#006" }, { - "name" : "#007", "y" : 56, + "name" : "#007", "drilldown" : "007" }, { - "name" : "#008", "y" : 70, + "name" : "#008", "drilldown" : "008" }, { "drilldown" : "009", - "y" : 68, - "name" : "#009" + "name" : "#009", + "y" : 68 }, { "drilldown" : "010", - "y" : 60, - "name" : "#010" + "name" : "#010", + "y" : 60 }, { - "name" : "#011", "y" : 78, - "drilldown" : "011" + "drilldown" : "011", + "name" : "#011" }, { + "drilldown" : "012", "name" : "#012", - "y" : 83, - "drilldown" : "012" + "y" : 83 }, { - "drilldown" : "013", "y" : 76, - "name" : "#013" + "name" : "#013", + "drilldown" : "013" }, { - "drilldown" : "014", "y" : 96, + "drilldown" : "014", "name" : "#014" }, { @@ -694,63 +692,63 @@ "name" : "#016" }, { + "y" : 79, "name" : "#017", - "drilldown" : "017", - "y" : 79 + "drilldown" : "017" }, { + "name" : "#018", "drilldown" : "018", - "y" : 76, - "name" : "#018" + "y" : 76 }, { - "name" : "#019", "drilldown" : "019", + "name" : "#019", "y" : 95 }, { "name" : "#020", - "y" : 95, - "drilldown" : "020" + "drilldown" : "020", + "y" : 95 }, { "drilldown" : "021", - "y" : 67, - "name" : "#021" + "name" : "#021", + "y" : 67 }, { - "name" : "#022", "y" : 63, + "name" : "#022", "drilldown" : "022" }, { - "name" : "#023", "y" : 91, + "name" : "#023", "drilldown" : "023" }, { + "drilldown" : "024", "name" : "#024", - "y" : 70, - "drilldown" : "024" + "y" : 70 }, { - "name" : "#025", "drilldown" : "025", + "name" : "#025", "y" : 55 }, { - "drilldown" : "026", "y" : 70, - "name" : "#026" + "name" : "#026", + "drilldown" : "026" }, { - "drilldown" : "027", "y" : 58, + "drilldown" : "027", "name" : "#027" }, { - "name" : "#028", "y" : 78, + "name" : "#028", "drilldown" : "028" }, { @@ -760,28 +758,40 @@ }, { "y" : 115, - "drilldown" : "030", - "name" : "#030" + "name" : "#030", + "drilldown" : "030" }, { - "name" : "#031", "y" : 87, + "name" : "#031", "drilldown" : "031" }, { - "y" : 90, "drilldown" : "032", - "name" : "#032" + "name" : "#032", + "y" : 90 }, { - "y" : 68, + "y" : 70, "drilldown" : "033", "name" : "#033" } ], - "name" : "Perl Weekly Challenge Languages" + "name" : "Perl Weekly Challenge Languages", + "colorByPoint" : "true" } ], + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "chart" : { + "type" : "column" + }, + "subtitle" : { + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-11-10 10:26:16 GMT" + }, "plotOptions" : { "series" : { "dataLabels" : { @@ -791,17 +801,7 @@ "borderWidth" : 0 } }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "tooltip" : { - "followPointer" : "true", - "headerFormat" : "", - "pointFormat" : "Challenge {point.name}: {point.y:f}
" - }, - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-11-09 20:29:31 GMT" + "title" : { + "text" : "Perl Weekly Challenge Language" } } diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json index 4d3cb5fd2b..554bd0bb1b 100644 --- a/stats/pwc-leaders.json +++ b/stats/pwc-leaders.json @@ -1,24 +1,11 @@ { - "chart" : { - "type" : "column" - }, - "subtitle" : { - "text" : "Click the columns to drilldown the score breakdown. Last updated at 2019-11-09 20:29:27 GMT" - }, - "tooltip" : { - "followPointer" : "true", - "headerFormat" : "", - "pointFormat" : "{point.name}: {point.y:f}
" + "title" : { + "text" : "Perl Weekly Challenge Leaders (TOP 50)" }, "drilldown" : { "series" : [ { - "name" : "Laurent Rosenfeld", "data" : [ - [ - "Blog", - 76 - ], [ "Perl 5", 65 @@ -26,81 +13,90 @@ [ "Perl 6", 65 + ], + [ + "Blog", + 76 ] ], - "id" : "Laurent Rosenfeld" + "id" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld" }, { - "name" : "Joelle Maslak", "id" : "Joelle Maslak", "data" : [ [ "Perl 6", 78 ], - [ - "Perl 5", - 78 - ], [ "Blog", 5 + ], + [ + "Perl 5", + 78 ] - ] + ], + "name" : "Joelle Maslak" }, { "name" : "Jaldhar H. Vyas", "data" : [ [ - "Blog", - 19 + "Perl 5", + 64 ], [ "Perl 6", 63 ], [ - "Perl 5", - 64 + "Blog", + 19 ] ], "id" : "Jaldhar H. Vyas" }, { "name" : "Ruben Westerberg", + "id" : "Ruben Westerberg", "data" : [ [ - "Perl 6", + "Perl 5", 63 ], [ - "Perl 5", + "Perl 6", 63 ] - ], - "id" : "Ruben Westerberg" + ] }, { "name" : "Adam Russell", - "id" : "Adam Russell", "data" : [ [ - "Blog", - 35 + "Perl 5", + 65 ], [ "Perl 6", 7 ], [ - "Perl 5", - 65 + "Blog", + 35 ] - ] + ], + "id" : "Adam Russell" }, { "id" : "Arne Sommer", "data" : [ + [ + "Perl 6", + 66 + ], [ "Blog", 33 @@ -108,47 +104,44 @@ [ "Perl 5", 3 - ], - [ - "Perl 6", - 66 ] ], "name" : "Arne Sommer" }, { + "name" : "Athanasius", "data" : [ - [ - "Blog", - 3 - ], [ "Perl 6", 36 ], + [ + "Blog", + 3 + ], [ "Perl 5", 61 ] ], - "id" : "Athanasius", - "name" : "Athanasius" + "id" : "Athanasius" }, { "name" : "E. Choroba", - "id" : "E. Choroba", "data" : [ - [ - "Blog", - 27 - ], [ "Perl 5", 58 + ], + [ + "Blog", + 27 ] - ] + ], + "id" : "E. Choroba" }, { + "name" : "Kian-Meng Ang", "id" : "Kian-Meng Ang", "data" : [ [ @@ -159,11 +152,15 @@ "Blog", 35 ] - ], - "name" : "Kian-Meng Ang" + ] }, { + "id" : "Roger Bell West", "data" : [ + [ + "Perl 6", + 17 + ], [ "Blog", 16 @@ -171,17 +168,18 @@ [ "Perl 5", 38 - ], - [ - "Perl 6", - 17 ] ], - "id" : "Roger Bell West", "name" : "Roger Bell West" }, { + "name" : "Simon Proctor", + "id" : "Simon Proctor", "data" : [ + [ + "Blog", + 7 + ], [ "Perl 6", 53 @@ -189,61 +187,59 @@ [ "Perl 5", 5 - ], - [ - "Blog", - 7 ] - ], - "id" : "Simon Proctor", - "name" : "Simon Proctor" + ] }, { - "id" : "Andrezgz", + "name" : "Andrezgz", "data" : [ [ "Perl 5", 64 ] ], - "name" : "Andrezgz" + "id" : "Andrezgz" }, { "name" : "Dave Jacoby", - "id" : "Dave Jacoby", "data" : [ - [ - "Perl 6", - 1 - ], [ "Perl 5", 38 ], + [ + "Perl 6", + 1 + ], [ "Blog", 21 ] - ] + ], + "id" : "Dave Jacoby" }, { + "name" : "Duncan C. White", "id" : "Duncan C. White", "data" : [ - [ - "Blog", - 1 - ], [ "Perl 5", 58 + ], + [ + "Blog", + 1 ] - ], - "name" : "Duncan C. White" + ] }, { "name" : "Yet Ebreo", "id" : "Yet Ebreo", "data" : [ + [ + "Perl 6", + 21 + ], [ "Blog", 6 @@ -251,25 +247,21 @@ [ "Perl 5", 28 - ], - [ - "Perl 6", - 21 ] ] }, { - "id" : "Steven Wilson", "data" : [ - [ - "Perl 5", - 47 - ], [ "Blog", 3 + ], + [ + "Perl 5", + 47 ] ], + "id" : "Steven Wilson", "name" : "Steven Wilson" }, { @@ -287,31 +279,30 @@ "name" : "Francis Whittle" }, { - "name" : "Feng Chang", "data" : [ - [ - "Perl 5", - 21 - ], [ "Perl 6", 23 + ], + [ + "Perl 5", + 21 ] ], - "id" : "Feng Chang" + "id" : "Feng Chang", + "name" : "Feng Chang" }, { + "name" : "Daniel Mantovani", "data" : [ [ "Perl 5", 41 ] ], - "id" : "Daniel Mantovani", - "name" : "Daniel Mantovani" + "id" : "Daniel Mantovani" }, { - "name" : "Kevin Colyer", "data" : [ [ "Perl 5", @@ -322,35 +313,34 @@ 39 ] ], - "id" : "Kevin Colyer" + "id" : "Kevin Colyer", + "name" : "Kevin Colyer" }, { + "name" : "Duane Powell", + "id" : "Duane Powell", "data" : [ [ "Perl 5", 39 ] - ], - "id" : "Duane Powell", - "name" : "Duane Powell" + ] }, { - "id" : "Gustavo Chaves", + "name" : "Gustavo Chaves", "data" : [ - [ - "Blog", - 4 - ], [ "Perl 5", 32 + ], + [ + "Blog", + 4 ] ], - "name" : "Gustavo Chaves" + "id" : "Gustavo Chaves" }, { - "name" : "Mark Senn", - "id" : "Mark Senn", "data" : [ [ "Perl 6", @@ -360,7 +350,9 @@ "Blog", 10 ] - ] + ], + "id" : "Mark Senn", + "name" : "Mark Senn" }, { "name" : "Yozen Hernandez", @@ -377,51 +369,51 @@ "id" : "Yozen Hernandez" }, { + "id" : "Noud", "data" : [ [ "Perl 6", 34 ] ], - "id" : "Noud", "name" : "Noud" }, { - "name" : "Guillermo Ramos", + "id" : "Guillermo Ramos", "data" : [ [ "Perl 5", 32 ] ], - "id" : "Guillermo Ramos" + "name" : "Guillermo Ramos" }, { + "name" : "Lubos Kolouch", "id" : "Lubos Kolouch", "data" : [ [ "Perl 5", 32 ] - ], - "name" : "Lubos Kolouch" + ] }, { + "id" : "Jo Christian Oterhals", "data" : [ [ "Perl 5", 6 ], - [ - "Perl 6", - 15 - ], [ "Blog", 7 + ], + [ + "Perl 6", + 15 ] ], - "id" : "Jo Christian Oterhals", "name" : "Jo Christian Oterhals" }, { @@ -435,6 +427,7 @@ "name" : "Ozzy" }, { + "name" : "Dr James A. Smith", "data" : [ [ "Perl 6", @@ -445,11 +438,10 @@ 16 ] ], - "id" : "Dr James A. Smith", - "name" : "Dr James A. Smith" + "id" : "Dr James A. Smith" }, { - "name" : "Randy Lauen", + "id" : "Randy Lauen", "data" : [ [ "Perl 5", @@ -460,63 +452,63 @@ 17 ] ], - "id" : "Randy Lauen" + "name" : "Randy Lauen" }, { - "name" : "Veesh Goldman", + "id" : "Colin Crain", "data" : [ - [ - "Blog", - 3 - ], - [ - "Perl 6", - 2 - ], [ "Perl 5", - 17 + 22 ] ], - "id" : "Veesh Goldman" + "name" : "Colin Crain" }, { - "name" : "Dave Cross", + "id" : "Veesh Goldman", "data" : [ + [ + "Perl 5", + 17 + ], [ "Blog", - 2 + 3 ], [ - "Perl 5", - 19 + "Perl 6", + 2 ] ], - "id" : "Dave Cross" + "name" : "Veesh Goldman" }, { - "name" : "Colin Crain", + "name" : "Dave Cross", "data" : [ [ "Perl 5", - 20 + 19 + ], + [ + "Blog", + 2 ] ], - "id" : "Colin Crain" + "id" : "Dave Cross" }, { - "name" : "Lars Balker", "id" : "Lars Balker", "data" : [ - [ - "Perl 6", - 4 - ], [ "Perl 5", 15 + ], + [ + "Perl 6", + 4 ] - ] + ], + "name" : "Lars Balker" }, { "name" : "Markus Holzer", @@ -547,79 +539,79 @@ ] }, { - "id" : "Javier Luque", + "name" : "Javier Luque", "data" : [ [ - "Perl 5", - 6 + "Blog", + 3 ], [ "Perl 6", 6 ], [ - "Blog", - 3 + "Perl 5", + 6 ] ], - "name" : "Javier Luque" + "id" : "Javier Luque" }, { "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke", "data" : [ - [ - "Perl 6", - 8 - ], [ "Perl 5", 6 + ], + [ + "Perl 6", + 8 ] - ] + ], + "id" : "Ulrich Rieke" }, { "name" : "Burkhard Nickels", "data" : [ - [ - "Perl 5", - 8 - ], [ "Blog", 4 + ], + [ + "Perl 5", + 8 ] ], "id" : "Burkhard Nickels" }, { - "id" : "Jaime Corchado", + "name" : "Jaime Corchado", "data" : [ [ "Perl 5", 12 ] ], - "name" : "Jaime Corchado" + "id" : "Jaime Corchado" }, { - "id" : "Kivanc Yazan", "data" : [ [ "Perl 5", 12 ] ], + "id" : "Kivanc Yazan", "name" : "Kivanc Yazan" }, { - "id" : "Lars Thegler", "data" : [ [ "Perl 5", 12 ] ], + "id" : "Lars Thegler", "name" : "Lars Thegler" }, { @@ -633,26 +625,27 @@ "id" : "Maxim Nechaev" }, { - "name" : "Pete Houston", "data" : [ [ "Perl 5", 12 ] ], - "id" : "Pete Houston" + "id" : "Pete Houston", + "name" : "Pete Houston" }, { + "name" : "Alicia Bielsa", "data" : [ [ "Perl 5", 11 ] ], - "id" : "Alicia Bielsa", - "name" : "Alicia Bielsa" + "id" : "Alicia Bielsa" }, { + "name" : "Daniel Mita", "id" : "Daniel Mita", "data" : [ [ @@ -663,27 +656,26 @@ "Perl 5", 2 ] - ], - "name" : "Daniel Mita" + ] }, { + "name" : "Prajith P", + "id" : "Prajith P", "data" : [ [ "Perl 5", 11 ] - ], - "id" : "Prajith P", - "name" : "Prajith P" + ] }, { - "id" : "Doug Schrag", "data" : [ [ "Perl 6", 10 ] ], + "id" : "Doug Schrag", "name" : "Doug Schrag" }, { @@ -698,21 +690,27 @@ } ] }, + "xAxis" : { + "type" : "category" + }, + "chart" : { + "type" : "column" + }, + "subtitle" : { + "text" : "Click the columns to drilldown the score breakdown. Last updated at 2019-11-10 10:26:12 GMT" + }, "legend" : { "enabled" : "false" }, "plotOptions" : { "series" : { "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 + "enabled" : 1, + "format" : "{point.y}" }, "borderWidth" : 0 } }, - "title" : { - "text" : "Perl Weekly Challenge Leaders (TOP 50)" - }, "yAxis" : { "title" : { "text" : "Total Score" @@ -720,17 +718,15 @@ }, "series" : [ { - "name" : "Perl Weekly Challenge Leaders", - "colorByPoint" : "true", "data" : [ { - "drilldown" : "Laurent Rosenfeld", + "name" : "#1: Laurent Rosenfeld", "y" : 412, - "name" : "#1: Laurent Rosenfeld" + "drilldown" : "Laurent Rosenfeld" }, { - "name" : "#2: Joelle Maslak", "y" : 322, +