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
#!/usr/bin/env raku | |
# | |
# File: install-reaper-latest.raku | |
# Summary: Download and install the latest | |
# version of Reaper from reaper.fm. | |
# | |
# Usage: | |
# ./install-reaper-latest.raku [--arch[=Any]] [--install_dir[=Any]] [--tmp_dir[=Any]] | |
use v6; |
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
#!/bin/bash | |
zef install --force-install --/test \ | |
File::Directory::Tree \ | |
File::Find File::Temp \ | |
Terminal::ANSIColor \ | |
Template6 \ | |
Template::Mustache \ | |
Test::Output \ | |
HTTP::Parser \ |
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 $input = 'While there was a brief hiatus in the development of the open firmware for Raspberry Pi, we can now boot Linux straight from bootcode.bin (note, this does require an initrd built in with zImage as there are still issues with eMMC working reliably at boot).'; | |
my @input_arr = $input.comb; | |
my $i = 0; | |
my %working_set; | |
# example 1: rotor | |
my $now = now; | |
@input_arr.rotor(5 => -4).map: -> @set { | |
%working_set{'a', 'b', 'c', 'd', 'e'} = @set; |
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 v6; | |
unit module Foo; | |
our proto sub bar(|) {*} | |
multi bar( | |
Hash $config, | |
*%sig where { is-overridden $config, $?PACKAGE, &?ROUTINE }) { | |
override($config<overrides>{ me }, :$config, :%sig); | |
} |
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
#!/usr/bin/env perl6 | |
use v6; | |
use Template::Mustache; | |
my %h = categories => [ | |
category_pages => [{ | |
title => "Perl 6", | |
url => "https://www.perl6.org"}, { |
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
#!/usr/bin/env perl6 | |
use v6; | |
#use v6.d.PREVIEW; | |
use Template::Mustache; | |
my $html = q:to/EOF/; | |
<html> | |
{{> head }} |
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
165 10736 RMD: try-load 0BDF8C54D33921FEA066491D8D13C96A7CB144B9: /tmp/.mount_y5cmQl/usr/share/perl6/site/sources/0BDF8C54D33921FEA0664[192/1719] | |
A7CB144B9 | |
5 10736 RMD: Trying to load 0BDF8C54D33921FEA066491D8D13C96A7CB144B9 from /home/admin/.perl6/precomp | |
5 10736 RMD: Trying to load 0BDF8C54D33921FEA066491D8D13C96A7CB144B9.repo-id from /home/admin/.perl6/precomp | |
1 10736 RMD: Repo changed: 6B786C2998385EA82DE1BE33A57511DA188F37B7 ne E03253559C31895E3F13545D8B23A899E5973874. Need to re-check dependencies. | |
0 10736 RMD: Repo chain changed: 6B786C2998385EA82DE1BE33A57511DA188F37B7 ne E03253559C31895E3F13545D8B23A899E5973874. Need to re-check depende | |
ncies. | |
27 10736 RMD: dependency: 51E302443A2C8FF185ABC10CA1E5520EFEE885A1 /tmp/.mount_xD7kng/usr/share/perl6/sources/51E302443A2C8FF185ABC10CA |
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
#!/usr/bin/env perl6 | |
use v6; | |
use lib 'lib'; | |
use Cache::LRU; | |
use Bailador; | |
Bailador::import(rootdir => "./examples"); | |
my $cache = Cache::LRU.new(size => 1024); |
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
#!/usr/bin/env perl6 | |
use v6; | |
my $input = 'While there was a brief hiatus in the development of the open firmware for Raspberry Pi, we can now boot Linux straight from bootcode.bin (note, this does require an initrd built in with zImage as there are still issues with eMMC working reliably at boot).'; | |
my @input_arr = $input.comb; | |
my $i = 0; | |
my %working_set; |
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
#!/usr/bin/env perl6 | |
use v6; | |
use HTTP::UserAgent; | |
my $ua = HTTP::UserAgent.new; |
NewerOlder