Skip to content

Instantly share code, notes, and snippets.

View tbrowder's full-sized avatar

Tom Browder tbrowder

  • Retired from: USAF and ManTech International Corporation
  • Gulf Breeze, Florida 32561 USA
  • 09:42 (UTC -05:00)
View GitHub Profile
@tbrowder
tbrowder / 15-numbered-alias-pod.t
Created August 31, 2018 16:23
S26 :numbered-alias'#'
```
use v6;
use Test;
plan 46;
my $o;
my $p = -1;
# These tests validate a new specification for S26's abbreviated
@tbrowder
tbrowder / scalar-ref.txt
Last active June 25, 2018 13:40
scalar ref as hash value
Given this Perl 5 script which allows a scalar reference
as a hash value:
#!/usr/bin/env perl
my $b = 0;
my %h = ( a => \$b );
my $b1 = ${$h{a}};
print "\$b1 = $b1\n"; # output: 0
$b = 1;
$b1 = ${$h{a}};
example-vim.p6:
#!/usr/bin/env perl6
say qq:to/HERE/;
Usage: $*PROGRAM-NAME go
Options (this text overhangs desired left margin):
a - something
HERE
#|(
This sub does everything including
filling the kitchen sink. It includes:
+ knives
+ forks
and all kinds of other things.
)
@tbrowder
tbrowder / my-toaster.txt
Last active March 12, 2018 19:20
my toaster
goal:
periodically test all perl6 modules on linux and windows
against latest stable rakudo
against current master branch of rakudo
the modules will be the latest version only
besides running each module's defined tests, each
will be checked for:
a valid and complete META6.json
a travis setup
@tbrowder
tbrowder / grammar.txt
Last active February 6, 2018 21:15
grammar test
# cat file: lib/Presenters.pm6
unit module Presenters;
use Grammar::Tracer;
grammar Presenters::PGrammar {
token TOP {
[
| <entry>
| <blank>
]+
}
@tbrowder
tbrowder / nqp-nested-pod.txt
Last active January 22, 2018 00:10
nqp-nested-pod
use World class and define:
@!pod-blocks;
types of pod tokens (pod_comment needs modifying)
=begin * =end # pop a pod element if @pod-blocks
=begin identifier # push identifier to @pod-blocks
* in a pod block # normal parse?
@tbrowder
tbrowder / table-pod-cell-formatting.md
Last active November 16, 2017 12:47
table pod cell formatting

thoughts on how to handle table cell formatting

  • I think "double parsing" is required, so disallow table cell formatting if we cannot tolerate double-parsing

  • double parsing can be done inside Pod.nqp with a sub instead of calling the parser

  • the parsing would result in a twine for each cell

  • handling would require renderers to recognize each table cell contains a twine structure rather than a simple string

@tbrowder
tbrowder / ecosystem.txt
Last active September 28, 2017 23:31
Perl 6 Ecosystem and zef
Given an ecosystem entry in github.com/perl6/ecosystem/META.list as follows:
https://raw.githubusercontent.com/tbrowder/Text-More-Perl6/release/META6.json
Its release brancg META6.json file contains these pertinent lines:
{
"version" : "0.1.7",
"source-url" : "https://github.com/tbrowder/Text-More-Perl6.git",
}
@tbrowder
tbrowder / config.log
Created April 8, 2017 21:41
httpd config.log with included apr, apr-util, sqlite3, and pgsql
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /usr/local/src/httpd-2.4.25/configure --prefix=/usr/local/apache2 --enable-ssl --enable-ssl-staticlib-deps --enable-mods-static=ssl --with-ssl=/opt/openssl --enable-mods-shared=reallyall --with-perl --with-pgsql --with-sqlite3 --with-included-apr --with-python --with-lua=/usr --enable-layout=Apache --with-pcre=/usr/local/bin/pcre-config --with-ldap --enable-session-crypto --enable-session --with-crypto --with-openssl=/opt/openssl
## --------- ##
## Platform. ##