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 USA
  • 10:23 (UTC -05:00)
View GitHub Profile
@tbrowder
tbrowder / log.txt
Created March 6, 2024 18:06
deprecation notice
bigtom:FontFactory-Type1$ mi6 test
==> RunAfterBuild: Execute raku --doc=Markdown docs/METHODS.rakudoc > METHODS.md
t/00-wx-bbox.t ............... ok
t/01-fonts.t .................60/119Saw 1 occurrence of deprecated code.
================================================================================
Method absolute (from Distribution::Resource) seen at:
/usr/local/git-repos/my-public-modules/FontFactory-Type1/lib/FontFactory/Type1/Subs.rakumod (FontFactory::Type1::Subs), lines 57,58
Please use %?RESOURCES<key> directly instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
name, language, hobby
Steve, US English, watching ralroad operations
@tbrowder
tbrowder / catch-attempt.txt
Created October 26, 2023 20:15
Demo CATCH
sub resource-exists($path? --> Bool) is export {
return False if not $path.defined;
my $exists = $?DISTRIBUTION.content($path); # may die
return True if $exists;
}
{
my $return = resource-exists;
say "Returned $return";
@tbrowder
tbrowder / xclip-mockup-debian.sh
Created September 11, 2023 13:44
An xclip mockup forDebian OS
#== From: Max Nikulin <manikulin@gmail.com>
#== Subject: Re: xclip - how to use without a graphics display for testing on Github workflows
#== Date: Sun, 10 Sep 2023 23:48:28 +0700
#== Content-Type: text/plain; charset=UTF-8; format=flowed
#== Content-Transfer-Encoding: 7bit
#== Resent-From: debian-user@lists.debian.org
#== X-Mailing-List: <debian-user@lists.debian.org> archive/latest/803232
#== X-Loop: debian-user@lists.debian.org
#== List-Id: <debian-user.lists.debian.org>
#== List-URL: <https://lists.debian.org/debian-user/>
@tbrowder
tbrowder / README.md
Created August 27, 2023 22:06
Rakudo-pkg issues

Issues encountered:

Documentation

Execution

@tbrowder
tbrowder / make-pdf.raku
Created March 20, 2023 00:12
pdf-lite-prod
#!/bin/env raku
use PDF::Lite;
use PDF::Font::Loader;
use lib "./lib";
use Subs;
my enum Paper <Letter A4>;
my $debug = 0;
@tbrowder
tbrowder / show-unichars.raku
Created March 23, 2020 01:33
show-unichars.raku
#!/usr/bin/env raku
my $ucd-ver = '10.0'; # use same as rakudo
my $ucd-dir = "./UCD.v{$ucd-ver}";
my $ucd = 'UnicodeData.txt';
my $fi = "$ucd-dir/$ucd";
my $fo = 'space-chars.list';
my $fh = open $fo, :w;
my @v;
Pseudo code for setting a domain's host records via its registrar's API:
-----------------------------------------------------------------------
=== Given three physical servers:
host servers' FQDN, IPv4, and role:
----------------------------------
host2.mydom.net - 2.2.2.1 - web server
host4.mydom.net - 4.4.4.1 - backup mail server
host6.mydom.net - 6.6.6.1 - primary mail server and
@tbrowder
tbrowder / test.md
Last active December 4, 2019 23:43

a header

a para

another para

@tbrowder
tbrowder / damian-conway-pod-config-values.md
Created August 10, 2019 16:17
Damian Conway view on pod configuration values

The following text is a verbatime quote from an e-mail received from Damian Conway in response to my asking him for his view on legitimate values for pod configuration keys:

My intention was always that the meaning of adverbials in Perl 6 Pod
should be exactly the same as everywhere else in Perl 6. Hence:

:a{}              ---> 'a' => %empty-hash
:b()              ---> 'b' => ()
:c('') ---&gt; 'c' =&gt; ''