Skip to content

Instantly share code, notes, and snippets.

@4d47
Created April 12, 2017 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4d47/dc95f75b153d82f2840a8e7b036692bc to your computer and use it in GitHub Desktop.
Save 4d47/dc95f75b153d82f2840a8e7b036692bc to your computer and use it in GitHub Desktop.
# Just some meta stuff I found interesting ...
sub meta-method-names {
Metamodel::ClassHOW.^methods>>.name
}
sub core-names {
CORE::.keys
}
sub loaded-modules {
$*REPO.repo-chain.map(*.loaded).flat
}
sub watch-home-changes-non-recursively {
my $sup = "/home/mat".IO.watch;
$sup.tap(-> $notif { say $notif.path, " ", $notif.event });
$sup.wait;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment