From 63cb54e6fce5c7128ed5d05f94c76bc333ffaa60 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sun, 29 Sep 2019 09:35:00 +0100 Subject: - Added solutions by Colin Crain. --- challenge-027/colin-crain/perl5/HistoryThing.pm | 49 +++ challenge-027/colin-crain/perl5/ch-1.pl | 68 +++ challenge-027/colin-crain/perl5/ch-2.pl | 56 +++ stats/pwc-current.json | 155 +++---- stats/pwc-language-breakdown-summary.json | 52 +-- stats/pwc-language-breakdown.json | 414 +++++++++--------- stats/pwc-leaders.json | 534 ++++++++++++------------ stats/pwc-summary-1-30.json | 32 +- stats/pwc-summary-31-60.json | 102 ++--- stats/pwc-summary-61-90.json | 34 +- stats/pwc-summary-91-120.json | 44 +- stats/pwc-summary.json | 284 ++++++------- 12 files changed, 1006 insertions(+), 818 deletions(-) create mode 100644 challenge-027/colin-crain/perl5/HistoryThing.pm create mode 100644 challenge-027/colin-crain/perl5/ch-1.pl create mode 100644 challenge-027/colin-crain/perl5/ch-2.pl diff --git a/challenge-027/colin-crain/perl5/HistoryThing.pm b/challenge-027/colin-crain/perl5/HistoryThing.pm new file mode 100644 index 0000000000..163478de2f --- /dev/null +++ b/challenge-027/colin-crain/perl5/HistoryThing.pm @@ -0,0 +1,49 @@ +# HistoryThing +# +# object +# +# +# (c) 2019 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + +package HistoryThing; + +use Moo; +use feature ":5.26"; +our $VERSION = "0.01"; + + +## attributes +has 'x' => ( + is => 'rw', + trigger => sub { + my ($self, $new) = @_; + push $self->_history->{'x'}->@*, $new; + } +); + +has 'y' => ( + is => 'rw', + trigger => sub { + my ($self, $new) = @_; + push $self->_history->{'y'}->@*, $new; + } +); + +## pubic methods +sub get_hist { + my ($self, $var) = @_; + return (join ', ', $self->_history->{$var}->@*); + +}; + +## private attribute (hash) +has _history => ( + is => 'rw', + default => sub { + return { 'x' => [], 'y' => [] }; + }, +); + + +1; diff --git a/challenge-027/colin-crain/perl5/ch-1.pl b/challenge-027/colin-crain/perl5/ch-1.pl new file mode 100644 index 0000000000..fb1df3b6f0 --- /dev/null +++ b/challenge-027/colin-crain/perl5/ch-1.pl @@ -0,0 +1,68 @@ +#! /opt/local/bin/perl +# +# intersection.pl +# +# task: Write a script to find the intersection of two straight +# lines. The co-ordinates of the two lines should be provided +# as command line parameter. For example: +# The two ends of Line 1 are represented as co-ordinates (a,b) and (c,d). +# The two ends of Line 2 are represented as co-ordinates (p,q) and (r,s). +# The script should print the co-ordinates of point of intersection of the above two lines. +# +# usage: ./intersection.pl '(1,1)' '(6,6)' '(0,6)' '(6,0)' +# +# V3 +# +# 2019 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + +use Getopt::Long; + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN + + +my $line1; +my $line2; + +GetOptions( 'line1=s' => \$line1, + 'line2=s' => \$line2 +) or die "error with GetOptions: $!"; + +my (@x, @y); +if ( $line1 =~ / ([ - \d ]+) # some digits, the x coordinate + [ \s , ]+ # a combination of comma and spaces + ([ - \d ]+) # some digits, the y coordinate + [^ - \d ]+ # parens, spaces, commas or whatnot between pairs + ([ - \d ]+) # some digits, the x coordinate + [ \s , ]+ # a combination of comma and spaces + ([ - \d ]+) # some digits, the y coordinate + /xx) { + @x = ($1, $3); + @y = ($2, $4); +} +if ( $line2 =~ /([-\d]+) [\s,]+ ([-\d]+) [^-\d]+ ([-\d]+) [\s,]+ ([-\d]+)/x ) { ## same regex as above + push @x, ($1, $3); + push @y, ($2, $4); +} + +## if we didn't load 4 points bail out +for (0..3) { + if (! defined $x[$_] or not defined $y[$_]) { + die "improper input\nusage: ./intersection3.pl --line1 '(a,b) (c,d)' --line2 '(q,r) (s,t)'\n" + } +} + +## extract the intersection using linear algebra determinate +my $det_x_num = (($x[0] * $y[1] - $y[0] * $x[1]) * ($x[2] - $x[3])) - (($x[0] - $x[1]) * ($x[2] * $y[3] - $y[2] * $x[3])); +my $det_y_num = (($x[0] * $y[1] - $y[0] * $x[1]) * ($x[2] - $x[3])) - (($y[0] - $y[1]) * ($x[2] * $y[3] - $y[2] * $x[3])); +my $det_div = (($x[0] - $x[1]) * ($y[2] - $y[3])) - (($y[0] - $y[1]) * ($x[2] - $x[3])); + +my ($px, $py) = ($det_x_num/$det_div, $det_y_num/$det_div); + +say "\($px, $py\)"; + + diff --git a/challenge-027/colin-crain/perl5/ch-2.pl b/challenge-027/colin-crain/perl5/ch-2.pl new file mode 100644 index 0000000000..c3484a0303 --- /dev/null +++ b/challenge-027/colin-crain/perl5/ch-2.pl @@ -0,0 +1,56 @@ +#! /opt/local/bin/perl +# HistoryThing.pl +# +# task: Write a script that allows you to capture/display +# historical data. It could be an object or a scalar. +# For example +# +# my $x = 10; $x = 20; $x -= 5; +# +# After the above operations, it should list $x historical value in order. +# +# method: in the script below, with its related package, h is an object that holds +# two values, x and y. The name and number of values is easily extendable. +# Altering the values for either variable results in the new value recorded +# to a historical list of values that is maintained and can be viewed by +# calling the 'history' method with the name of the variable in question. +# +# uses a moo object. I like moo. +# +# (c) 2019 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + +use lib '.'; ## park HistoryThing.pm alongside + +use HistoryThing; + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN + +my $h = new HistoryThing; + +## set some values for x +$h->x(1); +say "x at start: ", $h->x; + +$h->x(2); +$h->x(-1); +$h->x('foo'); +say "x is currently: ", $h->x; + +## set some values for y +$h->y(3); +say "y at start: ", $h->y; + +$h->y(4); +$h->y(-5); +$h->y('bar'); +say "y is currently: ", $h->y; + +say "history of x: ", $h->get_hist('x'); +say "history of y: ", $h->get_hist('y'); + + diff --git a/stats/pwc-current.json b/stats/pwc-current.json index eb836c6c81..8251197308 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,36 +1,55 @@ { - "tooltip" : { - "followPointer" : 1, - "headerFormat" : "{series.name}
", - "pointFormat" : "{point.name}: {point.y:f}
" + "xAxis" : { + "type" : "category" + }, + "title" : { + "text" : "Perl Weekly Challenge - 027" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } + }, + "subtitle" : { + "text" : "[Champions: 14] Last updated at 2019-09-29 08:34:39 GMT" + }, + "legend" : { + "enabled" : 0 }, "chart" : { "type" : "column" }, "series" : [ { - "name" : "Perl Weekly Challenge - 027", - "colorByPoint" : 1, "data" : [ { - "y" : 2, "drilldown" : "Andrezgz", - "name" : "Andrezgz" + "name" : "Andrezgz", + "y" : 2 + }, + { + "drilldown" : "Colin Crain", + "name" : "Colin Crain", + "y" : 2 }, { - "drilldown" : "Duane Powell", "name" : "Duane Powell", + "drilldown" : "Duane Powell", "y" : 2 }, { - "y" : 2, "drilldown" : "E. Choroba", - "name" : "E. Choroba" + "name" : "E. Choroba", + "y" : 2 }, { - "name" : "Joelle Maslak", + "y" : 2, "drilldown" : "Joelle Maslak", - "y" : 2 + "name" : "Joelle Maslak" }, { "drilldown" : "Kevin Colyer", @@ -38,38 +57,38 @@ "y" : 2 }, { + "y" : 2, "drilldown" : "Lubos Kolouch", - "name" : "Lubos Kolouch", - "y" : 2 + "name" : "Lubos Kolouch" }, { - "y" : 1, "drilldown" : "Mark Anderson", - "name" : "Mark Anderson" + "name" : "Mark Anderson", + "y" : 1 }, { - "y" : 2, + "drilldown" : "Markus Holzer", "name" : "Markus Holzer", - "drilldown" : "Markus Holzer" + "y" : 2 }, { - "drilldown" : "Noud", + "y" : 2, "name" : "Noud", - "y" : 2 + "drilldown" : "Noud" }, { "y" : 3, - "drilldown" : "Roger Bell West", - "name" : "Roger Bell West" + "name" : "Roger Bell West", + "drilldown" : "Roger Bell West" }, { + "y" : 2, "name" : "Simon Proctor", - "drilldown" : "Simon Proctor", - "y" : 2 + "drilldown" : "Simon Proctor" }, { - "drilldown" : "Trenton Langer", "name" : "Trenton Langer", + "drilldown" : "Trenton Langer", "y" : 2 }, { @@ -77,14 +96,26 @@ "name" : "Yet Ebreo", "y" : 3 } - ] + ], + "colorByPoint" : 1, + "name" : "Perl Weekly Challenge - 027" } ], "drilldown" : { "series" : [ { + "data" : [ + [ + "Perl 5", + 2 + ] + ], "name" : "Andrezgz", - "id" : "Andrezgz", + "id" : "Andrezgz" + }, + { + "id" : "Colin Crain", + "name" : "Colin Crain", "data" : [ [ "Perl 5", @@ -103,18 +134,18 @@ "name" : "Duane Powell" }, { - "name" : "E. Choroba", - "id" : "E. Choroba", "data" : [ [ "Perl 5", 2 ] - ] + ], + "id" : "E. Choroba", + "name" : "E. Choroba" }, { - "id" : "Joelle Maslak", "name" : "Joelle Maslak", + "id" : "Joelle Maslak", "data" : [ [ "Perl 6", @@ -129,32 +160,32 @@ 2 ] ], - "name" : "Kevin Colyer", - "id" : "Kevin Colyer" + "id" : "Kevin Colyer", + "name" : "Kevin Colyer" }, { + "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch", "data" : [ [ "Perl 5", 2 ] - ], - "id" : "Lubos Kolouch", - "name" : "Lubos Kolouch" + ] }, { + "name" : "Mark Anderson", + "id" : "Mark Anderson", "data" : [ [ "Perl 5", 1 ] - ], - "id" : "Mark Anderson", - "name" : "Mark Anderson" + ] }, { - "name" : "Markus Holzer", "id" : "Markus Holzer", + "name" : "Markus Holzer", "data" : [ [ "Perl 6", @@ -187,28 +218,26 @@ ] }, { - "name" : "Simon Proctor", - "id" : "Simon Proctor", "data" : [ [ "Perl 6", 2 ] - ] + ], + "id" : "Simon Proctor", + "name" : "Simon Proctor" }, { - "id" : "Trenton Langer", - "name" : "Trenton Langer", "data" : [ [ "Perl 5", 2 ] - ] + ], + "id" : "Trenton Langer", + "name" : "Trenton Langer" }, { - "name" : "Yet Ebreo", - "id" : "Yet Ebreo", "data" : [ [ "Perl 5", @@ -218,34 +247,20 @@ "Perl 6", 1 ] - ] + ], + "name" : "Yet Ebreo", + "id" : "Yet Ebreo" } ] }, - "xAxis" : { - "type" : "category" - }, - "title" : { - "text" : "Perl Weekly Challenge - 027" - }, - "legend" : { - "enabled" : 0 - }, - "subtitle" : { - "text" : "[Champions: 13] Last updated at 2019-09-29 04:32:21 GMT" + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1, + "headerFormat" : "{series.name}
" }, "yAxis" : { "title" : { "text" : "Total Solutions" } - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 4eff6a64d8..870d7921e1 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,9 +1,21 @@ { + "tooltip" : { + "pointFormat" : "{point.y:.0f}" + }, + "subtitle" : { + "text" : "Last updated at 2019-09-29 08:34:52 GMT" + }, + "chart" : { + "type" : "column" + }, "legend" : { "enabled" : "false" }, - "subtitle" : { - "text" : "Last updated at 2019-09-29 04:32:33 GMT" + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 }, "xAxis" : { "labels" : { @@ -14,12 +26,11 @@ }, "type" : "category" }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" + "title" : { + "text" : "Perl Weekly Challenge Contributions - 2019" }, "series" : [ { - "name" : "Contributions", "data" : [ [ "Blog", @@ -27,7 +38,7 @@ ], [ "Perl 5", - 1081 + 1083 ], [ "Perl 6", @@ -35,29 +46,18 @@ ] ], "dataLabels" : { - "enabled" : "true", "format" : "{point.y:.0f}", - "color" : "#FFFFFF", + "rotation" : -90, "align" : "right", + "y" : 10, + "enabled" : "true", "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" }, - "y" : 10, - "rotation" : -90 - } + "color" : "#FFFFFF" + }, + "name" : "Contributions" } - ], - "title" : { - "text" : "Perl Weekly Challenge Contributions - 2019" - }, - "chart" : { - "type" : "column" - }, - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 - } + ] } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index c0f61f1a31..bdeb959f01 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,11 +1,156 @@ { - "plotOptions" : { - "series" : { - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 + "series" : [ + { + "name" : "Perl Weekly Challenge Languages", + "colorByPoint" : "true", + "data" : [ + { + "name" : "#001", + "drilldown" : "001", + "y" : 132 + }, + { + "y" : 104, + "name" : "#002", + "drilldown" : "002" + }, + { + "name" : "#003", + "drilldown" : "003", + "y" : 66 + }, + { + "name" : "#004", + "drilldown" : "004", + "y" : 86 + }, + { + "name" : "#005", + "drilldown" : "005", + "y" : 66 + }, + { + "name" : "#006", + "drilldown" : "006", + "y" : 47 + }, + { + "y" : 55, + "drilldown" : "007", + "name" : "#007" + }, + { + "name" : "#008", + "drilldown" : "008", + "y" : 69 + }, + { + "name" : "#009", + "drilldown" : "009", + "y" : 68 + }, + { + "y" : 60, + "drilldown" : "010", + "name" : "#010" + }, + { + "y" : 78, + "drilldown" : "011", + "name" : "#011" + }, + { + "y" : 83, + "name" : "#012", + "drilldown" : "012" + }, + { + "name" : "#013", + "drilldown" : "013", + "y" : 76 + }, + { + "drilldown" : "014", + "name" : "#014", + "y" : 95 + }, + { + "y" : 93, + "name" : "#015", + "drilldown" : "015" + }, + { + "drilldown" : "016", + "name" : "#016", + "y" : 66 + }, + { + "drilldown" : "017", + "name" : "#017", + "y" : 79 + }, + { + "drilldown" : "018", + "name" : "#018", + "y" : 76 + }, + { + "y" : 95, + "drilldown" : "019", + "name" : "#019" + }, + { + "name" : "#020", + "drilldown" : "020", + "y" : 95 + }, + { + "y" : 67, + "name" : "#021", + "drilldown" : "021" + }, + { + "y" : 63, + "name" : "#022", + "drilldown" : "022" + }, + { + "y" : 91, + "name" : "#023", + "drilldown" : "023" + }, + { + "y" : 70, + "name" : "#024", + "drilldown" : "024" + }, + { + "y" : 55, + "name" : "#025", + "drilldown" : "025" + }, + { + "name" : "#026", + "drilldown" : "026", + "y" : 67 + }, + { + "name" : "#027", + "drilldown" : "027", + "y" : 27 + } + ] + } + ], + "title" : { + "text" : "Perl Weekly Challenge Language" + }, + "xAxis" : { + "type" : "category" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" } }, "drilldown" : { @@ -47,8 +192,6 @@ "id" : "002" }, { - "name" : "003", - "id" : "003", "data" : [ [ "Perl 5", @@ -62,9 +205,13 @@ "Blog", 8 ] - ] + ], + "id" : "003", + "name" : "003" }, { + "name" : "004", + "id" : "004", "data" : [ [ "Perl 5", @@ -78,11 +225,10 @@ "Blog", 9 ] - ], - "id" : "004", - "name" : "004" + ] }, { + "id" : "005", "data" : [ [ "Perl 5", @@ -97,11 +243,11 @@ 11 ] ], - "id" : "005", "name" : "005" }, { "name" : "006", + "id" : "006", "data" : [ [ "Perl 5", @@ -115,11 +261,9 @@ "Blog", 6 ] - ], - "id" : "006" + ] }, { - "id" : "007", "data" : [ [ "Perl 5", @@ -134,9 +278,11 @@ 9 ] ], + "id" : "007", "name" : "007" }, { + "id" : "008", "data" : [ [ "Perl 5", @@ -151,10 +297,10 @@ 11 ] ], - "id" : "008", "name" : "008" }, { + "name" : "009", "data" : [ [ "Perl 5", @@ -169,8 +315,7 @@ 13 ] ], - "id" : "009", - "name" : "009" + "id" : "009" }, { "name" : "010", @@ -191,6 +336,8 @@ ] }, { + "name" : "011", + "id" : "011", "data" : [ [ "Perl 5", @@ -204,13 +351,9 @@ "Blog", 9 ] - ], - "id" : "011", - "name" : "011" + ] }, { - "name" : "012", - "id" : "012", "data" : [ [ "Perl 5", @@ -224,11 +367,11 @@ "Blog", 11 ] - ] + ], + "id" : "012", + "name" : "012" }, { - "name" : "013", - "id" : "013", "data" : [ [ "Perl 5", @@ -242,10 +385,11 @@ "Blog", 13 ] - ] + ], + "id" : "013", + "name" : "013" }, { - "name" : "014", "data" : [ [ "Perl 5", @@ -260,10 +404,12 @@ 14 ] ], - "id" : "014" + "id" : "014", + "name" : "014" }, { "name" : "015", + "id" : "015", "data" : [ [ "Perl 5", @@ -277,10 +423,11 @@ "Blog", 15 ] - ], - "id" : "015" + ] }, { + "name" : "016", + "id" : "016", "data" : [ [ "Perl 5", @@ -294,12 +441,10 @@ "Blog", 12 ] - ], - "id" : "016", - "name" : "016" + ] }, { - "name" : "017", + "id" : "017", "data" : [ [ "Perl 5", @@ -314,7 +459,7 @@ 12 ] ], - "id" : "017" + "name" : "017" }, { "data" : [ @@ -335,7 +480,6 @@ "name" : "018" }, { - "name" : "019", "id" : "019", "data" : [ [ @@ -350,9 +494,11 @@ "Blog", 13 ] - ] + ], + "name" : "019" }, { + "id" : "020", "data" : [ [ "Perl 5", @@ -367,11 +513,10 @@ 13 ] ], - "id" : "020", "name" : "020" }, { - "id" : "021", + "name" : "021", "data" : [ [ "Perl 5", @@ -386,9 +531,11 @@ 10 ] ], - "name" : "021" + "id" : "021" }, { + "name" : "022", + "id" : "022", "data" : [ [ "Perl 5", @@ -402,11 +549,10 @@ "Blog", 10 ] - ], - "id" : "022", - "name" : "022" + ] }, { + "name" : "023", "id" : "023", "data" : [ [ @@ -421,11 +567,9 @@ "Blog", 12 ] - ], - "name" : "023" + ] }, { - "id" : "024", "data" : [ [ "Perl 5", @@ -440,6 +584,7 @@ 11 ] ], + "id" : "024", "name" : "024" }, { @@ -462,7 +607,6 @@ }, { "name" : "026", - "id" : "026", "data" : [ [ "Perl 5", @@ -476,13 +620,15 @@ "Blog", 7 ] - ] + ], + "id" : "026" }, { + "id" : "027", "data" : [ [ "Perl 5", - 15 + 17 ], [ "Perl 6", @@ -493,173 +639,27 @@ 0 ] ], - "id" : "027", "name" : "027" } ] }, - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-09-29 04:32:33 GMT" - }, - "xAxis" : { - "type" : "category" - }, "legend" : { "enabled" : "false" }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } } }, "chart" : { "type" : "column" }, - "series" : [ - { - "colorByPoint" : "true", - "data" : [ - { - "name" : "#001", - "drilldown" : "001", - "y" : 132 - }, - { - "name" : "#002", - "y" : 104, - "drilldown" : "002" - }, - { - "drilldown" : "003", - "y" : 66, - "name" : "#003" - }, - { - "y" : 86, - "drilldown" : "004", - "name" : "#004" - }, - { - "name" : "#005", - "y" : 66, - "drilldown" : "005" - }, - { - "drilldown" : "006", - "y" : 47, - "name" : "#006" - }, - { - "drilldown" : "007", - "y" : 55, - "name" : "#007" - }, - { - "name" : "#008", - "drilldown" : "008", - "y" : 69 - }, - { - "name" : "#009", - "drilldown" : "009", - "y" : 68 - }, - { - "name" : "#010", - "y" : 60, - "drilldown" : "010" - }, - { - "name" : "#011", - "y" : 78, - "drilldown" : "011" - }, - { - "drilldown" : "012", - "y" : 83, - "name" : "#012" - }, - { - "y" : 76, - "drilldown" : "013", - "name" : "#013" - }, - { - "y" : 95, - "drilldown" : "014", - "name" : "#014" - }, - { - "y" : 93, - "drilldown" : "015", - "name" : "#015" - }, - { - "name" : "#016", - "y" : 66, - "drilldown" : "016" - }, - { - "name" : "#017", - "drilldown" : "017", - "y" : 79 - }, - { - "name" : "#018", - "drilldown" : "018", - "y" : 76 - }, - { - "drilldown" : "019", - "y" : 95, - "name" : "#019" - }, - { - "name" : "#020", - "drilldown" : "020", - "y" : 95 - }, - { - "drilldown" : "021", - "y" : 67, - "name" : "#021" - }, - { - "name" : "#022", - "y" : 63, - "drilldown" : "022" - }, - { - "drilldown" : "023", - "y" : 91, - "name" : "#023" - }, - { - "drilldown" : "024", - "y" : 70, - "name" : "#024" - }, - { - "drilldown" : "025", - "y" : 55, - "name" : "#025" - }, - { - "name" : "#026", - "drilldown" : "026", - "y" : 67 - }, - { - "drilldown" : "027", - "y" : 25, - "name" : "#027" - } - ], - "name" : "Perl Weekly Challenge Languages" - } - ], - "title" : { - "text" : "Perl Weekly Challenge Language" + "subtitle" : { + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-09-29 08:34:52 GMT" }, "tooltip" : { "headerFormat" : "", diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json index 74c83fc4cd..65e606ad8f 100644 --- a/stats/pwc-leaders.json +++ b/stats/pwc-leaders.json @@ -1,17 +1,14 @@ { - "tooltip" : { - "pointFormat" : "{point.name}: {point.y:f}
", - "followPointer" : "true", - "headerFormat" : "" - }, - "legend" : { - "enabled" : "false" - }, "drilldown" : { "series" : [ { + "id" : "Laurent Rosenfeld", "name" : "Laurent Rosenfeld", "data" : [ + [ + "Perl 6", + 51 + ], [ "Perl 5", 52 @@ -19,13 +16,8 @@ [ "Blog", 56 - ], - [ - "Perl 6", - 51 ] - ], - "id" : "Laurent Rosenfeld" + ] }, { "id" : "Joelle Maslak", @@ -46,6 +38,7 @@ ] }, { + "name" : "Jaldhar H. Vyas", "data" : [ [ "Perl 5", @@ -60,10 +53,10 @@ 51 ] ], - "name" : "Jaldhar H. Vyas", "id" : "Jaldhar H. Vyas" }, { + "id" : "Ruben Westerberg", "name" : "Ruben Westerberg", "data" : [ [ @@ -74,20 +67,19 @@ "Perl 6", 49 ] - ], - "id" : "Ruben Westerberg" + ] }, { "id" : "Adam Russell", "data" : [ - [ - "Blog", - 29 - ], [ "Perl 5", 53 ], + [ + "Blog", + 29 + ], [ "Perl 6", 3 @@ -96,31 +88,25 @@ "name" : "Adam Russell" }, { + "id" : "Athanasius", "name" : "Athanasius", "data" : [ - [ - "Perl 5", - 53 - ], [ "Blog", 3 ], + [ + "Perl 5", + 53 + ], [ "Perl 6", 28 ] - ], - "id" : "Athanasius" + ] }, { - "id" : "Arne Sommer", - "name" : "Arne Sommer", "data" : [ - [ - "Perl 6", - 52 - ], [ "Blog", 26 @@ -128,18 +114,24 @@ [ "Perl 5", 3 + ], + [ + "Perl 6", + 52 ] - ] + ], + "name" : "Arne Sommer", + "id" : "Arne Sommer" }, { "data" : [ - [ - "Blog", - 21 - ], [ "Perl 5", 46 + ], + [ + "Blog", + 21 ] ], "name" : "E. Choroba", @@ -149,64 +141,63 @@ "id" : "Kian-Meng Ang", "name" : "Kian-Meng Ang", "data" : [ - [ - "Blog", - 29 - ], [ "Perl 5", 38 + ], + [ + "Blog", + 29 ] ] }, { - "id" : "Simon Proctor", + "name" : "Simon Proctor", "data" : [ [ "Perl 6", 45 ], - [ - "Perl 5", - 5 - ], [ "Blog", 7 + ], + [ + "Perl 5", + 5 ] ], - "name" : "Simon Proctor" + "id" : "Simon Proctor" }, { + "id" : "Andrezgz", "name" : "Andrezgz", "data" : [ [ "Perl 5", 52 ] - ], - "id" : "Andrezgz" + ] }, { - "id" : "Roger Bell West", "data" : [ [ "Perl 6", 12 ], - [ - "Perl 5", - 28 - ], [ "Blog", 10 + ], + [ + "Perl 5", + 28 ] ], - "name" : "Roger Bell West" + "name" : "Roger Bell West", + "id" : "Roger Bell West" }, { - "id" : "Francis Whittle", "name" : "Francis Whittle", "data" : [ [ @@ -217,10 +208,10 @@ "Perl 6", 39 ] - ] + ], + "id" : "Francis Whittle" }, { - "id" : "Duncan C. White", "data" : [ [ "Blog", @@ -231,24 +222,25 @@ 46 ] ], - "name" : "Duncan C. White" + "name" : "Duncan C. White", + "id" : "Duncan C. White" }, { + "name" : "Dave Jacoby", "data" : [ [ - "Blog", - 18 + "Perl 6", + 1 ], [ "Perl 5", 26 ], [ - "Perl 6", - 1 + "Blog", + 18 ] ], - "name" : "Dave Jacoby", "id" : "Dave Jacoby" }, { @@ -262,20 +254,22 @@ "id" : "Daniel Mantovani" }, { - "name" : "Feng Chang", + "id" : "Feng Chang", "data" : [ - [ - "Perl 5", - 19 - ], [ "Perl 6", 21 + ], + [ + "Perl 5", + 19 ] ], - "id" : "Feng Chang" + "name" : "Feng Chang" }, { + "id" : "Steven Wilson", + "name" : "Steven Wilson", "data" : [ [ "Blog", @@ -285,67 +279,66 @@ "Perl 5", 36 ] - ], - "name" : "Steven Wilson", - "id" : "Steven Wilson" + ] }, { "id" : "Gustavo Chaves", + "name" : "Gustavo Chaves", "data" : [ - [ - "Perl 5", - 32 - ], [ "Blog", 4 + ], + [ + "Perl 5", + 32 ] - ], - "name" : "Gustavo Chaves" + ] }, { + "id" : "Yet Ebreo", "data" : [ [ - "Perl 6", - 14 + "Perl 5", + 18 ], [ "Blog", 4 ], [ - "Perl 5", - 18 + "Perl 6", + 14 ] ], - "name" : "Yet Ebreo", - "id" : "Yet Ebreo" + "name" : "Yet Ebreo" }, { - "name" : "Yozen Hernandez", "data" : [ - [ - "Perl 5", - 21 - ], [ "Blog", 14 + ], + [ + "Perl 5", + 21 ] ], + "name" : "Yozen Hernandez", "id" : "Yozen Hernandez" }, { - "id" : "Guillermo Ramos", - "name" : "Guillermo Ramos", "data" : [ [ "Perl 5", 32 ] - ] + ], + "name" : "Guillermo Ramos", + "id" : "Guillermo Ramos" }, { + "id" : "Mark Senn", "name" : "Mark Senn", "data" : [ [ @@ -356,40 +349,39 @@ "Perl 6", 21 ] - ], - "id" : "Mark Senn" + ] }, { "id" : "Kevin Colyer", + "name" : "Kevin Colyer", "data" : [ - [ - "Perl 6", - 27 - ], [ "Perl 5", 2 + ], + [ + "Perl 6", + 27 ] - ], - "name" : "Kevin Colyer" + ] }, { - "id" : "Jo Christian Oterhals", - "name" : "Jo Christian Oterhals", "data" : [ [ - "Perl 6", - 15 + "Perl 5", + 6 ], [ "Blog", 7 ], [ - "Perl 5", - 6 + "Perl 6", + 15 ] - ] + ], + "name" : "Jo Christian Oterhals", + "id" : "Jo Christian Oterhals" }, { "id" : "Duane Powell", @@ -412,28 +404,28 @@ "id" : "Ozzy" }, { - "name" : "Randy Lauen", + "id" : "Randy Lauen", "data" : [ - [ - "Perl 5", - 9 - ], [ "Perl 6", 17 + ], + [ + "Perl 5", + 9 ] ], - "id" : "Randy Lauen" + "name" : "Randy Lauen" }, { + "id" : "Lubos Kolouch", "name" : "Lubos Kolouch", "data" : [ [ "Perl 5", 25 ] - ], - "id" : "Lubos Kolouch" + ] }, { "id" : "Noud", @@ -448,50 +440,51 @@ { "id" : "Dr James A. Smith", "data" : [ - [ - "Perl 5", - 12 - ], [ "Perl 6", 10 + ], + [ + "Perl 5", + 12 ] ], "name" : "Dr James A. Smith" }, { - "name" : "Veesh Goldman", "data" : [ [ - "Perl 6", - 2 + "Blog", + 3 ], [ "Perl 5", 16 ], [ - "Blog", - 3 + "Perl 6", + 2 ] ], + "name" : "Veesh Goldman", "id" : "Veesh Goldman" }, { + "id" : "Nick Logan", "name" : "Nick Logan", "data" : [ [ - "Perl 5", + "Perl 6", 8 ], [ - "Perl 6", + "Perl 5", 8 ] - ], - "id" : "Nick Logan" + ] }, { + "id" : "Lars Balker", "name" : "Lars Balker", "data" : [ [ @@ -502,8 +495,7 @@ "Perl 6", 4 ] - ], - "id" : "Lars Balker" + ] }, { "id" : "Jaime Corchado", @@ -516,36 +508,47 @@ "name" : "Jaime Corchado" }, { - "name" : "Maxim Nechaev", "data" : [ [ "Perl 5", 12 ] ], + "name" : "Maxim Nechaev", "id" : "Maxim Nechaev" }, { "id" : "Alicia Bielsa", + "name" : "Alicia Bielsa", "data" : [ [ "Perl 5", 11 ] - ], - "name" : "Alicia Bielsa" + ] + }, + { + "id" : "Colin Crain", + "name" : "Colin Crain", + "data" : [ + [ + "Perl 5", + 10 + ] + ] }, { "id" : "Doug Schrag", - "name" : "Doug Schrag", "data" : [ [ "Perl 6", 10 ] - ] + ], + "name" : "Doug Schrag" }, { + "id" : "Dave Cross", "name" : "Dave Cross", "data" : [ [ @@ -556,21 +559,19 @@ "Perl 5", 7 ] - ], - "id" : "Dave Cross" + ] }, { + "id" : "Mark Anderson", + "name" : "Mark Anderson", "data" : [ [ "Perl 5", 9 ] - ], - "name" : "Mark Anderson", - "id" : "Mark Anderson" + ] }, { - "name" : "Neil Bowers", "data" : [ [ "Blog", @@ -581,51 +582,42 @@ 6 ] ], + "name" : "Neil Bowers", "id" : "Neil Bowers" }, { - "id" : "Walt Mankowski", + "name" : "Walt Mankowski", "data" : [ [ "Perl 5", 9 ] ], - "name" : "Walt Mankowski" - }, - { - "id" : "Colin Crain", - "name" : "Colin Crain", - "data" : [ - [ - "Perl 5", - 8 - ] - ] + "id" : "Walt Mankowski" }, { + "id" : "Donald Hunter", "data" : [ [ - "Perl 6", + "Blog", 4 ], [ - "Blog", + "Perl 6", 4 ] ], - "name" : "Donald Hunter", - "id" : "Donald Hunter" + "name" : "Donald Hunter" }, { - "name" : "Pete Houston", + "id" : "Pete Houston", "data" : [ [ "Perl 5", 8 ] ], - "id" : "Pete Houston" + "name" : "Pete Houston" }, { "id" : "Robert Gratza", @@ -642,17 +634,21 @@ "name" : "Robert Gratza" }, { + "name" : "John Barrett", "data" : [ [ "Perl 5", 7 ] ], - "name" : "John Barrett", "id" : "John Barrett" }, { "data" : [ + [ + "Perl 6", + 2 + ], [ "Blog", 1 @@ -660,108 +656,125 @@ [ "Perl 5", 4 - ], - [ - "Perl 6", - 2 ] ], "name" : "Khalid", "id" : "Khalid" }, { - "name" : "Aaron Sherman", + "id" : "Aaron Sherman", "data" : [ [ "Perl 6", 6 ] ], - "id" : "Aaron Sherman" + "name" : "Aaron Sherman" }, { + "name" : "Kivanc Yazan", "data" : [ [ "Perl 5", 6 ] ], - "name" : "Kivanc Yazan", "id" : "Kivanc Yazan" } ] }, + "xAxis" : { + "type" : "category" + }, + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : "true", + "headerFormat" : "" + }, "title" : { "text" : "Perl Weekly Challenge Leaders (TOP 50)" }, - "xAxis" : { - "type" : "category" + "chart" : { + "type" : "column" }, - "subtitle" : { - "text" : "Click the columns to drilldown the score breakdown. Last updated at 2019-09-29 04:32:30 GMT" + "plotOptions" : { + "series" : { + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + }, + "borderWidth" : 0 + } }, "yAxis" : { "title" : { "text" : "Total Score" } }, + "legend" : { + "enabled" : "false" + }, + "subtitle" : { + "text" : "Click the columns to drilldown the score breakdown. Last updated at 2019-09-29 08:34:49 GMT" + }, "series" : [ { + "colorByPoint" : "true", "data" : [ { - "y" : 318, "name" : "#1: Laurent Rosenfeld", + "y" : 318, "drilldown" : "Laurent Rosenfeld" }, { - "drilldown" : "Joelle Maslak", "y" : 278, - "name" : "#2: Joelle Maslak" + "name" : "#2: Joelle Maslak", + "drilldown" : "Joelle Maslak" }, { - "name" : "#3: Jaldhar H. Vyas", "y" : 232, + "name" : "#3: Jaldhar H. Vyas", "drilldown" : "Jaldhar H. Vyas" }, { - "name" : "#4: Ruben Westerberg", + "drilldown" : "Ruben Westerberg", "y" : 196, - "drilldown" : "Ruben Westerberg" + "name" : "#4: Ruben Westerberg" }, { "drilldown" : "Adam Russell", - "y" : 170, - "name" : "#5: Adam Russell" + "name" : "#5: Adam Russell", + "y" : 170 }, { - "y" : 168, + "drilldown" : "Athanasius", "name" : "#6: Athanasius", - "drilldown" : "Athanasius" + "y" : 168 }, { + "drilldown" : "Arne Sommer", "name" : "#7: Arne Sommer", - "y" : 162, - "drilldown" : "Arne Sommer" + "y" : 162 }, { + "drilldown" : "E. Choroba", "name" : "#8: E. Choroba", - "y" : 134, - "drilldown" : "E. Choroba" + "y" : 134 }, { + "drilldown" : "Kian-Meng Ang", "name" : "#9: Kian-Meng Ang", - "y" : 134, - "drilldown" : "Kian-Meng Ang" + "y" : 134 }, { - "drilldown" : "Simon Proctor", "y" : 114, - "name" : "#10: Simon Proctor" + "name" : "#10: Simon Proctor", + "drilldown" : "Simon Proctor" }, { "drilldown" : "Andrezgz", - "y" : 104, - "name" : "#11: Andrezgz" + "name" : "#11: Andrezgz", + "y" : 104 }, { "drilldown" : "Roger Bell West", @@ -769,18 +782,18 @@ "y" : 100 }, { - "y" : 96, "name" : "#13: Francis Whittle", + "y" : 96, "drilldown" : "Francis Whittle" }, { - "name" : "#14: Duncan C. White", "y" : 94, + "name" : "#14: Duncan C. White", "drilldown" : "Duncan C. White" }, { - "name" : "#15: Dave Jacoby", "y" : 90, + "name" : "#15: Dave Jacoby", "drilldown" : "Dave Jacoby" }, { @@ -794,9 +807,9 @@ "y" : 80 }, { - "y" : 78, + "drilldown" : "Steven Wilson", "name" : "#18: Steven Wilson", - "drilldown" : "Steven Wilson" + "y" : 78 }, { "drilldown" : "Gustavo Chaves", @@ -804,9 +817,9 @@ "name" : "#19: Gustavo Chaves" }, { - "drilldown" : "Yet Ebreo", + "name" : "#20: Yet Ebreo", "y" : 72, - "name" : "#20: Yet Ebreo" + "drilldown" : "Yet Ebreo" }, { "drilldown" : "Yozen Hernandez", @@ -814,54 +827,54 @@ "y" : 70 }, { + "drilldown" : "Guillermo Ramos", "y" : 64, - "name" : "#22: Guillermo Ramos", - "drilldown" : "Guillermo Ramos" + "name" : "#22: Guillermo Ramos" }, { - "drilldown" : "Mark Senn", + "y" : 62, "name" : "#23: Mark Senn", - "y" : 62 + "drilldown" : "Mark Senn" }, { - "drilldown" : "Kevin Colyer", + "name" : "#24: Kevin Colyer", "y" : 58, - "name" : "#24: Kevin Colyer" + "drilldown" : "Kevin Colyer" }, { + "drilldown" : "Jo Christian Oterhals", "y" : 56, - "name" : "#25: Jo Christian Oterhals", - "drilldown" : "Jo Christian Oterhals" + "name" : "#25: Jo Christian Oterhals" }, { - "drilldown" : "Duane Powell", "y" : 54, - "name" : "#26: Duane Powell" + "name" : "#26: Duane Powell", + "drilldown" : "Duane Powell" }, { - "y" : 52, "name" : "#27: Ozzy", + "y" : 52, "drilldown" : "Ozzy" }, { "drilldown" : "Randy Lauen", - "name" : "#28: Randy Lauen", - "y" : 52 + "y" : 52, + "name" : "#28: Randy Lauen" }, { - "drilldown" : "Lubos Kolouch", + "y" : 50, "name" : "#29: Lubos Kolouch", - "y" : 50 + "drilldown" : "Lubos Kolouch" }, { "drilldown" : "Noud", - "name" : "#30: Noud", - "y" : 48 + "y" : 48, + "name" : "#30: Noud" }, { "drilldown" : "Dr James A. Smith", - "name" : "#31: Dr James A. Smith", - "y" : 44 + "y" : 44, + "name" : "#31: Dr James A. Smith" }, { "drilldown" : "Veesh Goldman", @@ -869,59 +882,59 @@ "y" : 42 }, { - "drilldown" : "Nick Logan", + "name" : "#33: Nick Logan", "y" : 32, - "name" : "#33: Nick Logan" + "drilldown" : "Nick Logan" }, { "drilldown" : "Lars Balker", - "y" : 30, - "name" : "#34: Lars Balker" + "name" : "#34: Lars Balker", + "y" : 30 }, { + "drilldown" : "Jaime Corchado", "name" : "#35: Jaime Corchado", - "y" : 24, - "drilldown" : "Jaime Corchado" + "y" : 24 }, { "drilldown" : "Maxim Nechaev", - "name" : "#36: Maxim Nechaev", - "y" : 24 + "y" : 24, + "name" : "#36: Maxim Nechaev" }, { - "y" : 22, + "drilldown" : "Alicia Bielsa", "name" : "#37: Alicia Bielsa", - "drilldown" : "Alicia Bielsa" + "y" : 22 }, { - "drilldown" : "Doug Schrag", + "drilldown" : "Colin Crain", "y" : 20, - "name" : "#38: Doug Schrag" + "name" : "#38: Colin Crain" }, { - "name" : "#39: Dave Cross", - "y" : 18, - "drilldown" : "Dave Cross" + "y" : 20, + "name" : "#39: Doug Schrag", + "drilldown" : "Doug Schrag" }, { - "name" : "#40: Mark Anderson", - "y" : 18, - "drilldown" : "Mark Anderson" + "drilldown" : "Dave Cross", + "name" : "#40: Dave Cross", + "y" : 18 }, { - "name" : "#41: Neil Bowers", - "y" : 18, - "drilldown" : "Neil Bowers" + "drilldown" : "Mark Anderson", + "name" : "#41: Mark Anderson", + "y" : 18 }, { - "drilldown" : "Walt Mankowski", + "name" : "#42: Neil Bowers", "y" : 18, - "name" : "#42: Walt Mankowski" + "drilldown" : "Neil Bowers" }, { - "y" : 16, - "name" : "#43: Colin Crain", - "drilldown" : "Colin Crain" + "y" : 18, + "name" : "#43: Walt Mankowski", + "drilldown" : "Walt Mankowski" }, { "name" : "#44: Donald Hunter", @@ -929,9 +942,9 @@ "drilldown" : "Donald Hunter" }, { - "y" : 16, + "drilldown" : "Pete Houston", "name" : "#45: Pete Houston", - "drilldown" : "Pete Houston" + "y" : 16 }, { "drilldown" : "Robert Gratza", @@ -940,18 +953,18 @@ }, { "drilldown" : "John Barrett", - "name" : "#47: John Barrett", - "y" : 14 + "y" : 14, + "name" : "#47: John Barrett" }, { - "name" : "#48: Khalid", "y" : 14, + "name" : "#48: Khalid", "drilldown" : "Khalid" }, { + "drilldown" : "Aaron Sherman", "name" : "#49: Aaron Sherman", - "y" : 12, - "drilldown" : "Aaron Sherman" + "y" : 12 }, { "y" : 12, @@ -959,20 +972,7 @@ "drilldown" : "Kivanc Yazan" } ], - "name" : "Perl Weekly Challenge Leaders", - "colorByPoint" : "true" + "name" : "Perl Weekly Challenge Leaders" } - ], - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } - }, - "chart" : { - "type" : "column" - } + ] } diff --git a/stats/pwc-summary-1-30.json b/stats/pwc-summary-1-30.json index b742cd54f8..d012851b03 100644 --- a/stats/pwc-summary-1-30.json +++ b/stats/pwc-summary-1-30.json @@ -1,16 +1,14 @@ { + "title" : { + "text" : "Perl Weekly Challenge - 2019" + }, "subtitle" : { - "text" : "[Champions: 30] Last updated at 2019-09-29 04:32:21 GMT" + "text" : "[Champions: 30] Last updated at 2019-09-29 08:34:40 GMT" }, "tooltip" : { "shared" : 1, "pointFormat" : "{series.name}: {point.y}
" }, - "plotOptions" : { - "column" : { - "stacking" : "percent" - } - }, "series" : [ { "data" : [ @@ -32,7 +30,7 @@ 4, 0, 1, - 8, + 10, 41, 0, 7, @@ -48,6 +46,7 @@ "name" : "Perl 5" }, { + "name" : "Perl 6", "data" : [ 6, 0, @@ -79,8 +78,7 @@ 0, 0, 0 - ], - "name" : "Perl 6" + ] }, { "data" : [ @@ -118,17 +116,16 @@ "name" : "Blog" } ], - "chart" : { - "type" : "column" - }, - "title" : { - "text" : "Perl Weekly Challenge - 2019" + "plotOptions" : { + "column" : { + "stacking" : "percent" + } }, "yAxis" : { + "min" : 0, "title" : { "text" : "" - }, - "min" : 0 + } }, "xAxis" : { "categories" : [ @@ -163,5 +160,8 @@ "Duncan C. White", "E. Choroba" ] + }, + "chart" : { + "type" : "column" } } diff --git a/stats/pwc-summary-31-60.json b/stats/pwc-summary-31-60.json index 21c2a575c4..8e8f78b06d 100644 --- a/stats/pwc-summary-31-60.json +++ b/stats/pwc-summary-31-60.json @@ -1,19 +1,49 @@ { - "subtitle" : { - "text" : "[Champions: 30] Last updated at 2019-09-29 04:32:21 GMT" + "yAxis" : { + "title" : { + "text" : "" + }, + "min" : 0 }, - "plotOptions" : { - "column" : { - "stacking" : "percent" - } + "chart" : { + "type" : "column" }, - "tooltip" : { - "pointFormat" : "{series.name}: {point.y}
", - "shared" : 1 + "xAxis" : { + "categories" : [ + "Eddy HS", + "Feng Chang", + "Finley", + "Francis Whittle", + "Fred Zinn", + "Freddie B", + "Guillermo Ramos", + "Gustavo Chaves", + "Hauke Dampfling", + "Jacques Guinnebault", + "Jaime Corchado", + "Jaldhar H. Vyas", + "Dr James A. Smith", + "Jeff", + "Jeremy Carman", + "Jim Bacon", + "JJ Merelo", + "Jo Christian Oterhals", + "Joe Tym", + "Joelle Maslak", + "John Barrett", + "Juan Caballero", + "Kevin Colyer", + "Khalid", + "Kian-Meng Ang", + "Kiran Kumar", + "Kivanc Yazan", + "Lars Balker", + "Laurent Rosenfeld", + "Lubos Kolouch" + ] }, "series" : [ { - "name" : "Perl 5", "data" : [ 2, 19, @@ -45,7 +75,8 @@ 11, 52, 25 - ] + ], + "name" : "Perl 5" }, { "name" : "Perl 6", @@ -118,50 +149,19 @@ ] } ], - "yAxis" : { - "m