Skip to content

Instantly share code, notes, and snippets.

View ShimmerFairy's full-sized avatar

Faye ShimmerFairy

  • The Doctor's TARDIS
View GitHub Profile
@ShimmerFairy
ShimmerFairy / testgram.p6
Last active August 29, 2015 13:56
Grammar that's broken on perl6-m
use v6;
sub DEBUG(*@a) { say [~] @a }
grammar Blink::Grammar {
token TOP {
[ .*? <link> \h* \n {DEBUG($<link>[*-1]<syn>, " ", $<link>[*-1]<sect>)}]+
}
token link {
@ShimmerFairy
ShimmerFairy / error
Created February 19, 2014 21:56
Failure of pod vvi.p6
Can not bind attribute '$!shared' declared in class 'Cursor' with this object
in any !cursor_init at gen/parrot/stage2/QRegex.nqp:575
in method parse at gen/parrot/CORE.setting:12556
in method parsefile at gen/parrot/CORE.setting:12560
in sub MAIN at bin/vvi.p6:21
in block at bin/vvi.p6:3
@ShimmerFairy
ShimmerFairy / output
Last active August 29, 2015 13:56
Failing Panda
$ ./bootstrap.pl
==> Bootstrapping Panda
==> Fetching File::Find
==> Building File::Find
Cannot assign a non-Perl 6 value to a Perl 6 container
current instr.: 'REIFY' pc 356641 (src/gen/p-CORE.setting.pir:150015) (gen/parrot/CORE.setting:8407)
called from Sub '' pc 332861 (src/gen/p-CORE.setting.pir:139964) (gen/parrot/CORE.setting:7279)
called from Sub 'reify' pc 331618 (src/gen/p-CORE.setting.pir:139494) (gen/parrot/CORE.setting:7234)
called from Sub 'gimme' pc 340764 (src/gen/p-CORE.setting.pir:143444) (gen/parrot/CORE.setting:7724)
called from Sub 'push' pc 342954 (src/gen/p-CORE.setting.pir:144291) (gen/parrot/CORE.setting:7803)
@ShimmerFairy
ShimmerFairy / LA LISTE
Last active August 29, 2015 13:56
List of things to know
Qu'est-ce que ce fait quand vous jouez le fichier dans «64DD mode» (avec le cheat code pour 64DD mode) quand...
1) Il n'y a aucune 64DD sous la N64 (devrait la même comme l'utilisation de le cheat code dans un émulateur)
2) 64DD, sans un disque.
3) 64DD, avec un disque faux.
4) 64DD, avec un disque apparemment correct. (devrait la même comme un disque corrompu de «Ura Zelda»)
@ShimmerFairy
ShimmerFairy / ttest.p6
Last active August 29, 2015 13:57
Simple test of concurrency.
sub foo($a) {
say "1> $a";
return [~] $a.comb Z <a b c d e f g h i j k l m n o p q r s t u v w x y z>;
}
sub bar($a) {
say "2> $a";
say $a.uc;
}
@ShimmerFairy
ShimmerFairy / S32-Stringy.pod6
Last active August 29, 2015 13:58
Potential S32::Str replacement.
=begin pod
=TITLE Synopsis 32: Setting Library: Stringy Types
=AUTHORS
=for code :allow<L>
Faye N. "ShimmerFairy" <L<rnddim@gmail.com|mailto:rnddim@gmail.com>>
=VERSION
Created: 31 March 2014
@ShimmerFairy
ShimmerFairy / output
Created April 5, 2014 06:02
Error on p-all
$ make p-all
/usr/bin/perl5.16.3 tools/build/gen-cat.pl parrot src/core/core_prologue.pm src/core/traits.pm src/core/Positional.pm src/core/Associative.pm src/core/Callable.pm src/core/natives.pm src/core/stubs.pm src/core/control.pm src/core/Mu.pm src/core/Stringy.pm src/core/Any.pm src/core/array_slice.pm src/core/hash_slice.pm src/core/Scalar.pm src/core/Code.pm src/core/WhateverCode.pm src/core/Block.pm src/core/Attribute.pm src/core/Variable.pm src/core/Routine.pm src/core/Sub.pm src/core/Macro.pm src/core/Method.pm src/core/Submethod.pm src/core/Junction.pm src/core/Cool.pm src/core/Enumeration.pm src/core/Whatever.pm src/core/Bool.pm src/core/Numeric.pm src/core/Real.pm src/core/Int.pm src/core/Order.pm src/core/UInt64.pm src/core/Num.pm src/core/Buf.pm src/core/Str.pm src/core/Capture.pm src/core/Parcel.pm src/core/Iterable.pm src/core/Iterator.pm src/core/Nil.pm src/core/Range.pm src/core/ListIter.pm src/core/MapIter.pm src/core/GatherIter.pm src/core/List.pm src/core/LoL.pm src/core/Array.pm src/cor
@ShimmerFairy
ShimmerFairy / arrays.p6
Created April 18, 2014 23:15
Test of capturing things in Rakudo
use v6;
my regex atom { \N }
my regex foo { (<atom>)+ }
my regex bar { (<.atom>)+ }
my regex baz { ($<atom>=(\N))+ }
my regex quux { (\N)+ }
say "TEST 1: Many positional captures of capturing subrule";
"ABC" ~~ /<foo>/;
@ShimmerFairy
ShimmerFairy / makelink.p6
Last active August 29, 2015 14:00
Simple link parser, for fun
@ShimmerFairy
ShimmerFairy / actor_list
Created June 1, 2014 00:16
OoT actor list, not guaranteed complete
ACTOR LIST
General layout:
ACTOR # <number> '<description>'
Using object(s) <objects>
Variable fields:
Field: <description> (Bitmask: <bits> / <nybbles>)
<Pre-shifted value> (<raw number, if different>) --- <description>
When adding up field values for the variable, use the pre-shifted values, NOT