This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package RoleBar; | |
use v5.10; | |
use Moose::Role; | |
around thing => sub { | |
my $next = shift; | |
my $self = shift; | |
say "RoleBar thing start"; | |
$self->$next(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $x = reverse $@; | |
$x =~ s/^.*? \ ta \ //xms; | |
$x = reverse $x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v5.16; | |
use Plack::Request; | |
my $app = sub { | |
# Plack::Request makes getting parameters easier | |
my $req = Plack::Request->new(shift); | |
# Load the name | |
my $name = $req->parameters->{name}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v5.16; | |
use Plack::Request; | |
my $app = sub { | |
# Use Plack::Request to help parse the environment | |
my $req = Plack::Request->new(shift); | |
# Load our input | |
my $input = $req->parameters->{input}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
None of the workflow examples given in the Google Authentication OAuth2 documentation | |
(https://developers.google.com/accounts/docs/OAuth2) handle what's needed for Pebble. I | |
basically had to mix the needs of a client-side application with an offline web application | |
to get what's needed and work within the restrictions of the Pebble JS toolkit. | |
The steps are as follows: | |
1. Setup a Client ID for Web Application on the Google Developer Console | |
2. On the configuration web pages, with SSL: | |
* In the configuration page, use JavaScript to retrieve a authorization code, which |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So after publishing 0.1.Draft of P6SGI, the most prominent feedback I have | |
received is whether or not Channels are the best option for streaming data. The | |
main alternative put forward is to use a Supply rather than a Channel. After | |
carefully weighing the options, I am not sure there is a clear winner in this. | |
The short answer is, Channel is simpler for app and middleware devs, but may not | |
scale as well or as easily as a Supply-based solution. On the other hand, there | |
is no obvious best solution when using a Supply and using a Supply can lead to | |
lost data if the app and middleware developers are not careful. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Okay, so I am at a loss so far as to what is happening here, but something | |
broke. | |
In Template::Anti, the node-set.t test is failing: | |
t/node-set.t ........... | |
ok 1 - text works | |
ok 2 - attrib one works | |
ok 3 - attrib two works | |
ok 4 - attrib three works |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[11:10] sterling@Weasley Smack#master% perl6 -Ilib --ll-exception t/sent.t | |
# Unhandled exception: Cannot unbox a type object | |
# at <unknown>:1 (/Users/sterling/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:print_exception:4294967295) | |
# from gen/moar/m-CORE.setting:17236 (/Users/sterling/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:<anon>:40) | |
# from gen/moar/stage2/NQPHLL.nqp:1425 (/Users/sterling/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:command_eval:380) | |
# from src/Perl6/Compiler.nqp:59 (/Users/sterling/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Compiler.moarvm:command_eval:93) | |
# from gen/moar/stage2/NQPHLL.nqp:1365 (/Users/sterling/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:command_line:114) | |
# from gen/moar/m-main.nqp:39 (/Users/sterling/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:MAIN:18) | |
# from gen/moar/m-main.nqp:35 (/Users/sterling/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ulimit -a | |
-t: cpu time (seconds) unlimited | |
-f: file size (blocks) unlimited | |
-d: data seg size (kbytes) unlimited | |
-s: stack size (kbytes) 8192 | |
-c: core file size (blocks) 0 | |
-v: address space (kbytes) unlimited | |
-l: locked-in-memory size (kbytes) unlimited | |
-u: processes 709 | |
-n: file descriptors 256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ulimit -a | |
-t: cpu time (seconds) unlimited | |
-f: file size (blocks) unlimited | |
-d: data seg size (kbytes) unlimited | |
-s: stack size (kbytes) 8192 | |
-c: core file size (blocks) 0 | |
-m: resident set size (kbytes) unlimited | |
-u: processes 15691 | |
-n: file descriptors 1024 | |
-l: locked-in-memory size (kbytes) 64 |
OlderNewer