This file contains hidden or 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
| #! /usr/bin/perl | |
| use feature ':5.10'; | |
| use re 'eval'; | |
| my $len; | |
| say $]; | |
| ">>" =~ m/ >{2} /x; | |
| say $&; | |
| $len = 0; |
This file contains hidden or 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
| #! /usr/bin/perl | |
| use feature ':5.10'; | |
| use re 'eval'; | |
| my $len; | |
| say $]; | |
| ">>" =~ m/ >{2} /x; | |
| say $&; | |
| $len = 0; |
This file contains hidden or 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
| #! /usr/bin/env perl | |
| =pod | |
| =head1 NAME | |
| gitprompt -- output info about git status, current repo, current branch name for use in a shell prompt | |
| =head1 DESCRIPTION | |
| Make sure gitprompt is executable and accessible from you PATH. | |
| With the bash shell, add the following line in your C<~/.profile> |
This file contains hidden or 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
| #! /usr/bin/env perl | |
| use feature ':5.10'; | |
| use strict; | |
| use autodie; | |
| use List::Util qw( max ); | |
| =pod | |
| =head1 NAME |
This file contains hidden or 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
| This post talks about using node.js to improve the ergonomy of a web | |
| page : the raku compiler feature matrix. It quickly presents the | |
| the raku project current state, then move to the specifics of my | |
| small project written in coffeescript and to be run on node.js. I | |
| briefly discuss some of coffeescript merits. Thx to the use of the | |
| jsdom library pulled from the npn archive network, my project can use | |
| jquery to exploit a web page DOM API outside of a web browser. | |
| raku, the next generation Perl environment, currently has two | |
| competing experimental implementations : rakudo and niecza. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| <!DOCTYPE html> | |
| <!-- | |
| I want to edit an editable element if I click on it. | |
| Elements of class "editing" are editable as per the css. | |
| Clicking an element of class code makes it editable. | |
| Typing escape makes the englobing element editable. | |
| Everything works fine except that the blue box indicating | |
| the editable area does not appear until I move the caret with |
This file contains hidden or 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
| BEGIN { @*INC.push('/Users/stephanepayrard/git/grammar-debugger/lib/') } | |
| # use Grammar::Tracer; | |
| grammar ParseTree { | |
| sub t { say "ok" } | |
| rule TOP { ^ '"parse"' "=>" <scalrule> } | |
| rule rule { [ \< <nm> \> | \[ $<nr>=\d+ { say "===$<nr>" }\] ] "=>" [ <scalrule> | <aryrule> | <parseref> ] } | |
| rule scalrule { PMC "'Regex;Match'" '=>' <string> \@ \d+ [ \{ <rule>+ \} <O>? ]? } |
This file contains hidden or 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 $data = a => ( b => 'c'); | |
| # unexpected different outputs | |
| say test $data; | |
| say test1 $data; | |
| sub test($p) { | |
| my $s = ''; | |
| $s ~= "$p.key() => (" ~ test($p.value) ~ ")" if $p ~~ Pair; | |
| $s ~= $p if $p ~~ Str; |
This file contains hidden or 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
| --- a/src/core/Exception.pm | |
| +++ b/src/core/Exception.pm | |
| @@ -69,10 +69,15 @@ do { | |
| $err.print: $e.gist; | |
| $err.print: "\n"; | |
| } | |
| - elsif is_runtime($ex.backtrace) { | |
| + elsif %*ENV<RAKUDO_BACKTRACE> | is_runtime($ex.backtrace) { | |
| $err.print: $e; | |
| $err.print: "\n"; |