Skip to content

Instantly share code, notes, and snippets.

View stmuk's full-sized avatar

Steve Mynott stmuk

  • London and Suffolk, England
View GitHub Profile
use v6;
BEGIN @*INC.push: 't/spec/S02-magicals/';
use UsedEnv;
env_exists();
@stmuk
stmuk / 79778.t
Created August 11, 2013 13:21
#79778: [BUG] .trans from a regex to a string does the Wrong Thing in Rakudo
use v6;
use Test;
is "this sentence no verb".trans( / \s+ / => " " ), 'this sentence no verb',"RT #79778 got expected string" ;
done;
@stmuk
stmuk / stmuk01.patch
Created August 11, 2013 13:50
[PATCH] import of spectest for RT #78258
From 813a6c0ba5478dbfe454e5ece4b652c831817edb Mon Sep 17 00:00:00 2001
From: Steve Mynott <[email protected]>
Date: Sun, 11 Aug 2013 14:45:21 +0100
Subject: [PATCH] import of spectest for RT #78258
---
78258.t | 5 +++++
UsedEnv.pm6 | 7 +++++++
2 files changed, 12 insertions(+)
create mode 100644 78258.t
@stmuk
stmuk / stmuk02.patch
Created August 11, 2013 13:55
import of spectest for RT #79778
From 030d8bb4e83de0d302fec28fb13bf609c9dc22bb Mon Sep 17 00:00:00 2001
From: Steve Mynott <[email protected]>
Date: Sun, 11 Aug 2013 14:52:09 +0100
Subject: [PATCH 2/2] import of spectest for RT #79778
---
79778.t | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 79778.t
http://zzapper.co.uk/vimtips.html
@stmuk
stmuk / p6hd
Last active August 29, 2015 14:04
P6 HD
Getting Started
How to start hacking on Rakudo Perl 6 by Brent Laabs: http://derplnmiit.appspot.com/blog.brentlaabs.com/2013/05/how-to-start-hacking-on-rakudo-perl-6.html
Write tests to close Rakudo tickets
Some issues have been fixed, but the associated bug ticket can't be closed until there is test coverage! Such tickets are listed here:
http://rakudo.org/rt/testneeded
Look at github bug tracker for Task-Star
steve@fizzy:~/sandbox/perl6-lwp-simple
$ git checkout -b stmuk
Switched to a new branch 'stmuk'
steve@fizzy:~/sandbox/perl6-lwp-simple
$ vi t/parse-url.t +48
steve@fizzy:~/sandbox/perl6-lwp-simple
$ git commit -m"isa-ok now" -a
[stmuk cdbbe17] isa-ok now
1 file changed, 1 insertion(+), 1 deletion(-)
steve@fizzy:~/sandbox/perl6-lwp-simple
@stmuk
stmuk / gist:edc483dac38baef4c0f4
Last active August 29, 2015 14:22
rakudobrew
rakudobrew build moar --configure-opts=--moar-option=--cc=clang36
rakudobrew build moar --configure-opts=--moar-option='--debug=3'
@stmuk
stmuk / gist:25b0a169ac0ec7e130b0
Created June 8, 2015 14:47
Cannot invoke null object (Cannot invoke null object)
$ perl6 -version
This is perl6 version 2015.05-86-gd39fe1c built on MoarVM version 2015.05-35-gc4c7ebd
$ panda install DBIish
==> Fetching DBIish
==> Building DBIish
Cannot invoke null object
in sub strip-pod at lib/Panda/Builder.pm:15
in sub build-order at lib/Panda/Builder.pm:56
in method build at lib/Panda/Builder.pm:92
in method install at lib/Panda.pm:127
@stmuk
stmuk / pi
Created November 11, 2015 17:36
# pi_sequential_iteration.rb port
use v6;
#my $n = 100000;
my int $n = 100000;
my $delta = 1.0 / $n;
my $sum = 0.0;
#my $i = 1;
my int $i = 1;
while ( $i <= $n) {
my $x = ( $i - 0.5 ) * $delta;