aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2019-12-08 03:31:22 +0000
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2019-12-08 03:31:22 +0000
commit1bc39b559acfabc89a8baacda6c665a0329a52fb (patch)
tree7d3fd5694ee0e56bb1ffda635d52814f10d167a1
parent277a2213b59faea9b50655144dc1cc640be2c1de (diff)
downloadperlweeklychallenge-club-1bc39b559acfabc89a8baacda6c665a0329a52fb.tar.gz
perlweeklychallenge-club-1bc39b559acfabc89a8baacda6c665a0329a52fb.tar.bz2
perlweeklychallenge-club-1bc39b559acfabc89a8baacda6c665a0329a52fb.zip
- Added solutions by Arne Sommer.
-rw-r--r--challenge-037/arne-sommer/blog.txt1
-rwxr-xr-xchallenge-037/arne-sommer/perl6/ch-1.p617
-rwxr-xr-xchallenge-037/arne-sommer/perl6/ch-2.p6119
-rwxr-xr-xchallenge-037/arne-sommer/perl6/daylight82
-rwxr-xr-xchallenge-037/arne-sommer/perl6/daylight-turbo108
-rwxr-xr-xchallenge-037/arne-sommer/perl6/daylight-turbo2119
-rwxr-xr-xchallenge-037/arne-sommer/perl6/weekdays17
-rw-r--r--stats/pwc-current.json165
-rw-r--r--stats/pwc-language-breakdown-summary.json60
-rw-r--r--stats/pwc-language-breakdown.json292
-rw-r--r--stats/pwc-leaders.json898
-rw-r--r--stats/pwc-summary-1-30.json106
-rw-r--r--stats/pwc-summary-121-150.json94
-rw-r--r--stats/pwc-summary-31-60.json126
-rw-r--r--stats/pwc-summary-61-90.json86
-rw-r--r--stats/pwc-summary-91-120.json52
-rw-r--r--stats/pwc-summary.json330
17 files changed, 1577 insertions, 1095 deletions
diff --git a/challenge-037/arne-sommer/blog.txt b/challenge-037/arne-sommer/blog.txt
new file mode 100644
index 0000000000..edc82805fd
--- /dev/null
+++ b/challenge-037/arne-sommer/blog.txt
@@ -0,0 +1 @@
+https://raku-musings.com/weekdays-daylight.html
diff --git a/challenge-037/arne-sommer/perl6/ch-1.p6 b/challenge-037/arne-sommer/perl6/ch-1.p6
new file mode 100755
index 0000000000..14b4825ac8
--- /dev/null
+++ b/challenge-037/arne-sommer/perl6/ch-1.p6
@@ -0,0 +1,17 @@
+#! /usr/bin/env raku
+
+unit sub MAIN (Int $year = 2019, Bool :$sum);
+
+my @day-count;
+my @month-name = ("", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
+my $date = Date.new($year, 1, 1);
+
+while $date.year == $year
+{
+ @day-count[$date.month]++ if $date.day-of-week <= 5;
+ $date.=later(days => 1);
+}
+
+say "Year: $year" unless $year == 2019;
+say "@month-name[$_]: @day-count[$_] days" for 1 .. 12;
+say "Total: { @day-count.sum}" if $sum; \ No newline at end of file
diff --git a/challenge-037/arne-sommer/perl6/ch-2.p6 b/challenge-037/arne-sommer/perl6/ch-2.p6
new file mode 100755
index 0000000000..304897b455
--- /dev/null
+++ b/challenge-037/arne-sommer/perl6/ch-2.p6
@@ -0,0 +1,119 @@
+#! /usr/bin/env raku
+
+use LWP::Simple;
+
+unit sub MAIN (*@citymapping, :$left = "London:2019:11", :$right = "London:2019:12");
+
+my $base-url = 'https://www.timeanddate.com/sun/';
+
+my @months = ('', 'January', 'February', 'March', 'April', 'May', 'June', 'July',
+ 'August', 'September', 'October', 'November', 'December');
+
+my %city2url = (
+ Berlin => 'germany/berlin',
+ Birmingham => 'uk/birmingham',
+ Edinburgh => 'uk/edinburgh',
+ London => 'uk/london',
+ Manchester => 'uk/manchester',
+ 'New York' => 'usa/new-york',
+ Oslo => 'norway/oslo',
+ Paris => 'france/paris',
+ Sydney => 'australia/sydney',
+ );
+
+if @citymapping
+{
+ for @citymapping -> $line
+ {
+ my ($city, $url) = $line.split(":");
+ %city2url{$city} = $url;
+ }
+}
+
+my %data;
+
+read-data($left);
+read-data($right);
+
+sub read-data ($city-month)
+{
+ my $line;
+
+ my ($city, $year, $month) = $city-month.split(':');
+
+ die "Illegal month \"$month\" (use 01..12)" unless $month eq one <01 02 03 04 05 06 07 08 09 10 11 12>;
+ die "Illegal year \"$year\" (use 1900..2199)" unless 1900 <= $year.Int <= 2199;
+ die "City '$city' not supported. Use one of { %city2url.keys.sort }." unless %city2url{$city};
+
+ if "$city-month.html".IO.e
+ {
+ $line = slurp "$city-month.html";
+ }
+ else
+ {
+ my $url = $base-url ~ %city2url{$city} ~ "?month=" ~ $month ~ "&year=" ~ $year;
+
+ $line = LWP::Simple.get($url).lines.join("\n");
+
+ spurt "$city-month.html", $line;
+ }
+
+ $line ~~ /\<tbody\>(.*?)\<\/tbody\>/;
+
+ for $0.Str.split("</tr>") -> $line
+ {
+ $line ~~ /data\-day\=(\d+) \s .*? \"c \s tr \s sep\-l\"\>(\d+\:\d+\:\d+)\<\/td\>/;
+
+ next unless $0;
+
+ %data{$city-month}{$0.Str} = $1.Str;
+ }
+}
+
+my ($left-city, $left-year, $left-month) = $left.split(':');
+my ($right-city, $right-year, $right-month) = $right.split(':');
+
+
+say " { $left-city.fmt('%8s') } { $right-city.fmt('%8s') }";
+say "Day { @months[$left-month].fmt('%8s') } { @months[$right-month].fmt('%8s') } Difference";
+say " { $left-year.fmt('%8s')} { $right-year.fmt('%8s') }";
+
+for 1..31 -> $day
+{
+ my $left-value = %data{$left}{$day};
+ my $right-value = %data{$right}{$day};
+
+ ! $left-value && ! $right-value && last;
+
+ print $day.fmt('%2d') ~ ' ';
+
+ print $left-value
+ ?? $left-value.fmt('%9s') ~ ' '
+ !! ' ' x 11;
+
+ print $right-value
+ ?? $right-value.fmt('%9s') ~ ' '
+ !! ' ' x 11;
+
+ print "{ (s2hms( hms2s($right-value) - hms2s($left-value))).fmt('%10s') }" if $left-value && $right-value;
+ say '';
+}
+
+sub hms2s ($hms)
+{
+ my @parts = $hms.split(':') // return 0;
+ return @parts[0] * 60 * 60 + @parts[1] * 60 + @parts[2];
+}
+
+sub s2hms ($s is copy)
+{
+ my $sign = "";
+ if $s < 0 { $s = -$s; $sign = "-"; }
+
+ my $h = $s div 3600; $s -= $h * 3600;
+ my $m = $s div 60; $s -= $m * 60;
+
+ return "$sign$h:{ $m.fmt('%02d') }:{ $s.fmt('%02d') }" if $h;
+ return "$sign$m:{ $s.fmt('%02d') }" if $s;
+ return "$sign$s";
+}
diff --git a/challenge-037/arne-sommer/perl6/daylight b/challenge-037/arne-sommer/perl6/daylight
new file mode 100755
index 0000000000..2e3ffc4cac
--- /dev/null
+++ b/challenge-037/arne-sommer/perl6/daylight
@@ -0,0 +1,82 @@
+#! /usr/bin/env raku
+
+use LWP::Simple;
+
+my %file = (
+ nov => '2019-nov.html',
+ dec => '2019-dec.html'
+ );
+
+
+my %url = (
+ nov => 'https://www.timeanddate.com/sun/uk/london?month=11&year=2019',
+ dec => 'https://www.timeanddate.com/sun/uk/london?month=12&year=2019'
+ );
+
+my %data;
+
+read-data("nov");
+read-data("dec");
+
+sub read-data ($month)
+{
+ my $line;
+
+ if %file{$month}.IO.e
+ {
+ $line = slurp %file{$month};
+ }
+ else
+ {
+ $line = LWP::Simple.get(%url{$month}).lines.join("\n");
+ spurt %file{$month}, $line;
+ }
+
+ $line ~~ /\<tbody\>(.*?)\<\/tbody\>/;
+
+ for $0.Str.split("</tr>") -> $line
+ {
+ # $line ~~ /data\-day\=(\d+) \s .*? /; # \<td \s class\=\"c \s tr \s sep\-l\"\>\s+\:(\d+\:\d+\:\d+)\<\/td\>/;
+ # $line ~~ /data\-day\=(\d+) \s .*? \"c \s tr \s sep\-l\"\>\s(\d+\:\d+\:\d+)\<\/td\>/;
+ $line ~~ /data\-day\=(\d+) \s .*? \"c \s tr \s sep\-l\"\>(\d+\:\d+\:\d+)\<\/td\>/;
+
+ next unless $0;
+
+ %data{$month}{$0.Str} = $1.Str;
+
+ # say "$0 --- $1";
+ }
+}
+
+say "Day November December Difference";
+
+for 1..30 -> $day
+{
+ my $nov = %data<nov>{$day};
+ my $dec = %data<dec>{$day};
+
+ say "{ $day.fmt('%2d') } { $nov.fmt('%9s') } { $dec.fmt('%9s') } { (s2hms( hms2s($dec) - hms2s($nov))).fmt('%10s') }";
+}
+
+say "{ "31".fmt('%2d') } { %data<dec>{31}.fmt('%9s') }";
+
+# say %data;
+
+sub hms2s ($hms)
+{
+ my @parts = $hms.split(":") // return 0;
+ return @parts[0] * 60 * 60 + @parts[1] * 60 + @parts[2];
+}
+
+sub s2hms ($s is copy)
+{
+ my $sign = "";
+ if $s < 0 { $s = -$s; $sign = "-"; }
+
+ my $h = $s div 3600; $s -= $h * 3600;
+ my $m = $s div 60; $s -= $m * 60;
+
+ return "$sign$h:{ $m.fmt('%02d') }:{ $s.fmt('%02d') }" if $h;
+ return "$sign$m:{ $s.fmt('%02d') }" if $s;
+ return "$sign$s";
+}
diff --git a/challenge-037/arne-sommer/perl6/daylight-turbo b/challenge-037/arne-sommer/perl6/daylight-turbo
new file mode 100755
index 0000000000..597682dc62
--- /dev/null
+++ b/challenge-037/arne-sommer/perl6/daylight-turbo
@@ -0,0 +1,108 @@
+#! /usr/bin/env raku
+
+use LWP::Simple;
+
+unit sub MAIN (:$left = "London:2019:11", :$right = "London:2019:12");
+
+my $base-url = 'https://www.timeanddate.com/sun/';
+
+my @months = ('', 'January', 'February', 'March', 'April', 'May', 'June', 'July',
+ 'August', 'September', 'October', 'November', 'December');
+
+my %city2url = (
+ Berlin => 'germany/berlin',
+ Birmingham => 'uk/birmingham',
+ Edinburgh => 'uk/edinburgh',
+ London => 'uk/london',
+ Manchester => 'uk/manchester',
+ 'New York' => 'usa/new-york',
+ Oslo => 'norway/oslo',
+ Paris => 'france/paris',
+ Sydney => 'australia/sydney',
+ );
+
+my %data;
+
+read-data($left);
+read-data($right);
+
+sub read-data ($city-month)
+{
+ my $line;
+
+ my ($city, $year, $month) = $city-month.split(':');
+
+ die "City '$city' not supported. Use one of { %city2url.keys.sort }." unless %city2url{$city};
+
+ if "$city-month.html".IO.e
+ {
+ $line = slurp "$city-month.html";
+ }
+ else
+ {
+ my $url = $base-url ~ %city2url{$city} ~ "?month=" ~ $month ~ "&year=" ~ $year;
+
+ $line = LWP::Simple.get($url).lines.join("\n");
+
+ spurt "$city-month.html", $line;
+ }
+
+ $line ~~ /\<tbody\>(.*?)\<\/tbody\>/;
+
+ for $0.Str.split("</tr>") -> $line
+ {
+ $line ~~ /data\-day\=(\d+) \s .*? \"c \s tr \s sep\-l\"\>(\d+\:\d+\:\d+)\<\/td\>/;
+
+ next unless $0;
+
+ %data{$city-month}{$0.Str} = $1.Str;
+ }
+}
+
+my ($left-city, $left-year, $left-month) = $left.split(':');
+my ($right-city, $right-year, $right-month) = $right.split(':');
+
+
+say " { $left-city.fmt('%8s') } { $right-city.fmt('%8s') }";
+say "Day { @months[$left-month].fmt('%8s') } { @months[$right-month].fmt('%8s') } Difference";
+say " { $left-year.fmt('%8s')} { $right-year.fmt('%8s') }";
+
+for 1..31 -> $day
+{
+ my $left-value = %data{$left}{$day};
+ my $right-value = %data{$right}{$day};
+
+ ! $left-value && ! $right-value && last;
+
+ print $day.fmt('%2d') ~ ' ';
+
+ print $left-value
+ ?? $left-value.fmt('%9s') ~ ' '
+ !! ' ' x 11;
+
+ print $right-value
+ ?? $right-value.fmt('%9s') ~ ' '
+ !! ' ' x 11;
+
+ print "{ (s2hms( hms2s($right-value) - hms2s($left-value))).fmt('%10s') }" if $left-value && $right-value;
+ say '';
+}
+
+sub hms2s ($hms)
+{
+ my @parts = $hms.split(':') // return 0;
+ return @parts[0] * 60 * 60 + @parts[1] * 60 + @parts[2];
+}
+
+sub s2hms ($s is copy)
+{
+ my $sign = "";
+ if $s < 0 { $s = -$s; $sign = "-"; }
+
+ my $h = $s div 3600; $s -= $h * 3600;
+ my $m = $s div 60; $s -= $m * 60;
+
+ return "$sign$h:{ $m.fmt('%02d') }:{ $s.fmt('%02d') }" if $h;
+ return "$sign$m:{ $s.fmt('%02d') }" if $s;
+ return "$sign$s";
+}
diff --git a/challenge-037/arne-sommer/perl6/daylight-turbo2 b/challenge-037/arne-sommer/perl6/daylight-turbo2
new file mode 100755
index 0000000000..304897b455
--- /dev/null
+++ b/challenge-037/arne-sommer/perl6/daylight-turbo2
@@ -0,0 +1,119 @@
+#! /usr/bin/env raku
+
+use LWP::Simple;
+
+unit sub MAIN (*@citymapping, :$left = "London:2019:11", :$right = "London:2019:12");
+
+my $base-url = 'https://www.timeanddate.com/sun/';
+
+my @months = ('', 'January', 'February', 'March', 'April', 'May', 'June', 'July',
+ 'August', 'September', 'October', 'November', 'December');
+
+my %city2url = (
+ Berlin => 'germany/berlin',
+ Birmingham => 'uk/birmingham',
+ Edinburgh => 'uk/edinburgh',
+ London => 'uk/london',
+ Manchester => 'uk/manchester',
+ 'New York' => 'usa/new-york',
+ Oslo => 'norway/oslo',
+ Paris => 'france/paris',
+ Sydney => 'australia/sydney',
+ );
+
+if @citymapping
+{
+ for @citymapping -> $line
+ {
+ my ($city, $url) = $line.split(":");
+ %city2url{$city} = $url;
+ }
+}
+
+my %data;
+
+read-data($left);
+read-data($right);
+
+sub read-data ($city-month)
+{
+ my $line;
+
+ my ($city, $year, $month) = $city-month.split(':');
+
+ die "Illegal month \"$month\" (use 01..12)" unless $month eq one <01 02 03 04 05 06 07 08 09 10 11 12>;
+ die "Illegal year \"$year\" (use 1900..2199)" unless 1900 <= $year.Int <= 2199;
+ die "City '$city' not supported. Use one of { %city2url.keys.sort }." unless %city2url{$city};
+
+ if "$city-month.html".IO.e
+ {
+ $line = slurp "$city-month.html";
+ }
+ else
+ {
+ my $url = $base-url ~ %city2url{$city} ~ "?month=" ~ $month ~ "&year=" ~ $year;
+
+ $line = LWP::Simple.get($url).lines.join("\n");
+
+ spurt "$city-month.html", $line;
+ }
+
+ $line ~~ /\<tbody\>(.*?)\<\/tbody\>/;
+
+ for $0.Str.split("</tr>") -> $line
+ {
+ $line ~~ /data\-day\=(\d+) \s .*? \"c \s tr \s sep\-l\"\>(\d+\:\d+\:\d+)\<\/td\>/;
+
+ next unless $0;
+
+ %data{$city-month}{$0.Str} = $1.Str;
+ }
+}
+
+my ($left-city, $left-year, $left-month) = $left.split(':');
+my ($right-city, $right-year, $right-month) = $right.split(':');
+
+
+say " { $left-city.fmt('%8s') } { $right-city.fmt('%8s') }";
+say "Day { @months[$left-month].fmt('%8s') } { @months[$right-month].fmt('%8s') } Difference";
+say " { $left-year.fmt('%8s')} { $right-year.fmt('%8s') }";
+
+for 1..31 -> $day
+{
+ my $left-value = %data{$left}{$day};
+ my $right-value = %data{$right}{$day};
+
+ ! $left-value && ! $right-value && last;
+
+ print $day.fmt('%2d') ~ ' ';
+
+ print $left-value
+ ?? $left-value.fmt('%9s') ~ ' '
+ !! ' ' x 11;
+
+ print $right-value
+ ?? $right-value.fmt('%9s') ~ ' '
+ !! ' ' x 11;
+
+ print "{ (s2hms( hms2s($right-value) - hms2s($left-value))).fmt('%10s') }" if $left-value && $right-value;
+ say '';
+}
+
+sub hms2s ($hms)
+{
+ my @parts = $hms.split(':') // return 0;
+ return @parts[0] * 60 * 60 + @parts[1] * 60 + @parts[2];
+}
+
+sub s2hms ($s is copy)
+{
+ my $sign = "";
+ if $s < 0 { $s = -$s; $sign = "-"; }
+
+ my $h = $s div 3600; $s -= $h * 3600;
+ my $m = $s div 60; $s -= $m * 60;
+
+ return "$sign$h:{ $m.fmt('%02d') }:{ $s.fmt('%02d') }" if $h;
+ return "$sign$m:{ $s.fmt('%02d') }" if $s;
+ return "$sign$s";
+}
diff --git a/challenge-037/arne-sommer/perl6/weekdays b/challenge-037/arne-sommer/perl6/weekdays
new file mode 100755
index 0000000000..14b4825ac8
--- /dev/null
+++ b/challenge-037/arne-sommer/perl6/weekdays
@@ -0,0 +1,17 @@
+#! /usr/bin/env raku
+
+unit sub MAIN (Int $year = 2019, Bool :$sum);
+
+my @day-count;
+my @month-name = ("", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
+my $date = Date.new($year, 1, 1);
+
+while $date.year == $year
+{
+ @day-count[$date.month]++ if $date.day-of-week <= 5;
+ $date.=later(days => 1);
+}
+
+say "Year: $year" unless $year == 2019;
+say "@month-name[$_]: @day-count[$_] days" for 1 .. 12;
+say "Total: { @day-count.sum}" if $sum; \ No newline at end of file
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 9cbd70eedd..1ff0c9a5de 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,23 +1,20 @@
{
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
- }
+ "legend" : {
+ "enabled" : 0
+ },
+ "xAxis" : {
+ "type" : "category"
},
"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/>",
- "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/>"
},
- "chart" : {
- "type" : "column"
- },
- "xAxis" : {
- "type" : "category"
+ "title" : {
+ "text" : "Perl Weekly Challenge - 037"
},
"series" : [
{
- "name" : "Perl Weekly Challenge - 037",
"data" : [
{
"name" : "Andrezgz",
@@ -25,19 +22,24 @@
"y" : 2
},
{
+ "name" : "Arne Sommer",
+ "drilldown" : "Arne Sommer",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Daniel Mita",
"name" : "Daniel Mita",
- "y" : 3,
- "drilldown" : "Daniel Mita"
+ "y" : 3
},
{
"name" : "Dave Jacoby",
- "y" : 3,
- "drilldown" : "Dave Jacoby"
+ "drilldown" : "Dave Jacoby",
+ "y" : 3
},
{
"y" : 1,
- "drilldown" : "Duane Powell",
- "name" : "Duane Powell"
+ "name" : "Duane Powell",
+ "drilldown" : "Duane Powell"
},
{
"y" : 2,
@@ -45,71 +47,80 @@
"name" : "Duncan C. White"
},
{
- "y" : 3,
"drilldown" : "E. Choroba",
- "name" : "E. Choroba"
+ "name" : "E. Choroba",
+ "y" : 3
},
{
- "name" : "Javier Luque",
+ "y" : 5,
"drilldown" : "Javier Luque",
- "y" : 5
+ "name" : "Javier Luque"
},
{
+ "y" : 2,
"name" : "Lubos Kolouch",
- "drilldown" : "Lubos Kolouch",
- "y" : 2
+ "drilldown" : "Lubos Kolouch"
},
{
+ "drilldown" : "Mark Anderson",
"name" : "Mark Anderson",
- "y" : 2,
- "drilldown" : "Mark Anderson"
+ "y" : 2
},
{
"y" : 1,
- "drilldown" : "Pete Houston",
- "name" : "Pete Houston"
+ "name" : "Pete Houston",
+ "drilldown" : "Pete Houston"
},
{
- "y" : 2,
+ "name" : "Richard Nuttall",
"drilldown" : "Richard Nuttall",
- "name" : "Richard Nuttall"
+ "y" : 2
},
{
"y" : 4,
- "drilldown" : "Roger Bell West",
- "name" : "Roger Bell West"
+ "name" : "Roger Bell West",
+ "drilldown" : "Roger Bell West"
},
{
+ "name" : "Ryan Thompson",
"drilldown" : "Ryan Thompson",
- "y" : 2,
- "name" : "Ryan Thompson"
+ "y" : 2
},
{
- "y" : 2,
"drilldown" : "Saif Ahmed",
- "name" : "Saif Ahmed"
+ "name" : "Saif Ahmed",
+ "y" : 2
},
{
"y" : 1,
- "drilldown" : "Simon Proctor",
- "name" : "Simon Proctor"
+ "name" : "Simon Proctor",
+ "drilldown" : "Simon Proctor"
},
{
+ "name" : "Steven Wilson",
"drilldown" : "Steven Wilson",
- "y" : 1,
- "name" : "Steven Wilson"
+ "y" : 1
},
{
+ "y" : 2,
"name" : "Ulrich Rieke",
- "drilldown" : "Ulrich Rieke",
- "y" : 2
+ "drilldown" : "Ulrich Rieke"
}
],
- "colorByPoint" : 1
+ "colorByPoint" : 1,
+ "name" : "Perl Weekly Challenge - 037"
}
],
- "legend" : {
- "enabled" : 0
+ "subtitle" : {
+ "text" : "[Champions: 18] Last updated at 2019-12-08 03:30:51 GMT"
+ },
+ "chart" : {
+ "type" : "column"
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
},
"drilldown" : {
"series" : [
@@ -124,6 +135,20 @@
"name" : "Andrezgz"
},
{
+ "id" : "Arne Sommer",
+ "data" : [
+ [
+ "Perl 6",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Arne Sommer"
+ },
+ {
"name" : "Daniel Mita",
"id" : "Daniel Mita",
"data" : [
@@ -153,13 +178,13 @@
},
{
"name" : "Duane Powell",
- "id" : "Duane Powell",
"data" : [
[
"Perl 5",
1
]
- ]
+ ],
+ "id" : "Duane Powell"
},
{
"id" : "Duncan C. White",
@@ -186,6 +211,7 @@
"name" : "E. Choroba"
},
{
+ "name" : "Javier Luque",
"id" : "Javier Luque",
"data" : [
[
@@ -200,17 +226,16 @@
"Blog",
1
]
- ],
- "name" : "Javier Luque"
+ ]
},
{
- "id" : "Lubos Kolouch",
"data" : [
[
"Perl 5",
2
]
],
+ "id" : "Lubos Kolouch",
"name" : "Lubos Kolouch"
},
{
@@ -224,27 +249,28 @@
"name" : "Mark Anderson"
},
{
- "name" : "Pete Houston",
"data" : [
[
"Perl 5",
1
]
],
- "id" : "Pete Houston"
+ "id" : "Pete Houston",
+ "name" : "Pete Houston"
},
{
- "name" : "Richard Nuttall",
- "id" : "Richard Nuttall",
"data" : [
[
"Perl 6",
2
]
- ]
+ ],
+ "id" : "Richard Nuttall",
+ "name" : "Richard Nuttall"
},
{
"name" : "Roger Bell West",
+ "id" : "Roger Bell West",
"data" : [
[
"Perl 5",
@@ -254,28 +280,27 @@
"Perl 6",
2
]
- ],
- "id" : "Roger Bell West"
+ ]
},
{
- "name" : "Ryan Thompson",
+ "id" : "Ryan Thompson",
"data" : [
[
"Perl 5",
2
]
],
- "id" : "Ryan Thompson"
+ "name" : "Ryan Thompson"
},
{
+ "name" : "Saif Ahmed",
"data" : [
[
"Perl 5",
2
]
],
- "id" : "Saif Ahmed",
- "name" : "Saif Ahmed"
+ "id" : "Saif Ahmed"
},
{
"data" : [
@@ -288,24 +313,24 @@
"name" : "Simon Proctor"
},
{
- "name" : "Steven Wilson",
"id" : "Steven Wilson",
"data" : [
[
"Perl 5",
1
]
- ]
+ ],
+ "name" : "Steven Wilson"
},
{
"name" : "Ulrich Rieke",
- "id" : "Ulrich Rieke",
"data" : [
[
"Perl 6",
2
]
- ]
+ ],
+ "id" : "Ulrich Rieke"
}
]
},
@@ -313,15 +338,9 @@
"series" : {
"borderWidth" : 0,
"dataLabels" : {
- "enabled" : 1,
- "format" : "{point.y}"
+ "format" : "{point.y}",
+ "enabled" : 1
}
}
- },
- "subtitle" : {
- "text" : "[Champions: 17] Last updated at 2019-12-08 03:12:51 GMT"
- },
- "title" : {
- "text" : "Perl Weekly Challenge - 037"
}
}
diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json
index 4c2625775e..1f97203870 100644
--- a/stats/pwc-language-breakdown-summary.json
+++ b/stats/pwc-language-breakdown-summary.json
@@ -1,32 +1,26 @@
{
- "subtitle" : {
- "text" : "Last updated at 2019-12-08 03:13:01 GMT"
- },
- "title" : {
- "text" : "Perl Weekly Challenge Contributions - 2019"
+ "legend" : {
+ "enabled" : "false"
},
"chart" : {
"type" : "column"
},
+ "yAxis" : {
+ "min" : 0,
+ "title" : {
+ "text" : null
+ }
+ },
+ "subtitle" : {
+ "text" : "Last updated at 2019-12-08 03:31:00 GMT"
+ },
"series" : [
{
- "dataLabels" : {
- "rotation" : -90,
- "y" : 10,
- "enabled" : "true",
- "align" : "right",
- "format" : "{point.y:.0f}",
- "style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
- },
- "color" : "#FFFFFF"
- },
"name" : "Contributions",
"data" : [
[
"Blog",
- 395
+ 396
],
[
"Perl 5",
@@ -34,14 +28,23 @@
],
[
"Perl 6",
- 910
+ 912
]
- ]
+ ],
+ "dataLabels" : {
+ "enabled" : "true",
+ "format" : "{point.y:.0f}",
+ "align" : "right",
+ "style" : {
+ "fontFamily" : "Verdana, sans-serif",
+ "fontSize" : "13px"
+ },
+ "rotation" : -90,
+ "y" : 10,
+ "color" : "#FFFFFF"
+ }
}
],
- "tooltip" : {
- "pointFormat" : "<b>{point.y:.0f}</b>"
- },
"xAxis" : {
"type" : "category",
"labels" : {
@@ -51,13 +54,10 @@
}
}
},
- "yAxis" : {
- "min" : 0,
- "title" : {
- "text" : null
- }
+ "title" : {
+ "text" : "Perl Weekly Challenge Contributions - 2019"
},
- "legend" : {
- "enabled" : "false"
+ "tooltip" : {
+ "pointFormat" : "<b>{point.y:.0f}</b>"
}
}
diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json
index a6a6cea41c..c3cfc34829 100644
--- a/stats/pwc-language-breakdown.json
+++ b/stats/pwc-language-breakdown.json
@@ -1,65 +1,55 @@
{
- "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" : {
"borderWidth" : 0,
"dataLabels" : {
- "enabled" : 1,
- "format" : "{point.y}"
+ "format" : "{point.y}",
+ "enabled" : 1
}
}
},
"title" : {
"text" : "Perl Weekly Challenge Language"
},
- "subtitle" : {
- "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-12-08 03:13:02 GMT"
- },
"xAxis" : {
"type" : "category"
},
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
- }
- },
- "legend" : {
- "enabled" : "false"
- },
"series" : [
{
- "colorByPoint" : "true",
"data" : [
{
- "drilldown" : "001",
"name" : "#001",
+ "drilldown" : "001",
"y" : 132
},
{
- "y" : 104,
"name" : "#002",
- "drilldown" : "002"
+ "drilldown" : "002",
+ "y" : 104
},
{
- "name" : "#003",
+ "y" : 67,
"drilldown" : "003",
- "y" : 67
+ "name" : "#003"
},
{
- "drilldown" : "004",
"name" : "#004",
- "y" : 87
+ "y" : 87,