Skip to content

Instantly share code, notes, and snippets.

View patch's full-sized avatar

Nova Patch patch

View GitHub Profile
###
# This is World class :)
###
class World
greet: ->
print "Hello, world"
---
Title: TestML: Write Once, Test Everywhere
Tags: testing perl5 perl6 acmeism testml
Abstract URL: http://testml.org
Duration: 50 minutes
Target audience: Any
Abstract: >
TestML is a software testing meta language for writing unit tests that can be
shared among many programming languages. When writing modules in multiple
languages, such as Perl 5 and Perl 6, TestML allows you to write tests once,
---
Title: Modern Getopt for Command Line Processing
Tags: getopt moose perl5
Duration: 20 minutes
Target audience: Beginner
Abstract: >
Getopt modules, such as Getopt::Long, are used for processing
command line options. There are over sixty Getopt modules on CPAN, which can be
intimidating to select from. This talk will highlight some of the Getopt pearls
that have been released in the past few years. Both beginners to command line
#!/usr/bin/perl
use strict;
use warnings;
use WWW::Mechanize;
my $mech = WWW::Mechanize->new;
my @modules;
while (my $module = <DATA>) {
@patch
patch / gist:1389336
Created November 23, 2011 17:43
books read in 2011

List of books read in 2011, excluding field guides, cookbooks, zines, and ebooks.

  1. Seed to Seed: The Secret Life of Plants by Nicholas Harberd
  2. The Tree: A Natural History of What Trees Are, How They Live, and Why They Matter by Colin Tudge
  3. A Year in the Maine Woods by Bernd Heinrich
  4. The Trees in My Forest by Bernd Heinrich
  5. Reading the Forested Landscape: A Natural History of New England by Tom Wessels
  6. Mycelium Running: How Mushrooms Can Help Save the World by Paul Stamets
  7. The Chanterelle Book by Olle Persson
  8. Urban Foraging: Finding and Eating Wild Plants in the City by David Craft
@patch
patch / gist:1580877
Last active September 29, 2015 09:37
books read in 2012

List of books read in 2012:

  1. The Kingdom Fungi: The Biology of Mushrooms, Molds, and Lichens by Steven L. Stephenson
  2. Lichens by William Purvis
  3. Mycophilia: Revelations from the Weird World of Mushrooms by Eugenia Bone
  4. Magic Mushrooms by Peter Stafford
  5. A Beachcomber’s Botany by Loren C. Petry & Marcia G. Norman
  6. Stalking the Wild Asparagus by Euell Gibbons
  7. Wild Plants I Have Known … and Eaten by Russ Cohen
  8. The Joy of Foraging: Gary Lincoff’s Illustrated Guide to Finding, Harvesting, and Enjoying a World of Wild Food by Gary Lincoff
@patch
patch / gist:1659070
Created January 22, 2012 22:04
TODO

TODO list for patch's modules, CPAN or otherwise, in order of priority:

  1. Template::Plugin::StringDump: change dump('foo') filter to dump_foo filters
  2. Unicode::Util: handle exceptions
  3. String::Dump: add OO interface
  4. Unicode::Util: add graph_substr, graph_index, graph_rindex
  5. String::Dump: remove dumpstr/dump_string
  6. Text::Ligature: remove to_ligature/from_ligature
  7. StringDump.js: create
  8. JS::StringDump: create
@patch
patch / dcbpw2012-talks.yaml
Created February 22, 2012 04:51
DCBPW 2012 talk submission
---
Title: Fundamental Unicode‎
Tags: perl5 unicode utf8
Language: English
Duration: 20 minutes
Target audience: Any
Abstract: >
UTF-8 is the most popular character encoding on the web and has been for 5
years. Modern applications have to be developed with an understanding of
Unicode. Fortunately, Perl is rich in functionality for working with Unicode
@patch
patch / yapcna2012-talks.yaml
Created February 22, 2012 04:55
YAPC::NA 2012 talk submission
---
Title: Fundamental Unicode‎
Tags: perl5 unicode utf8
Language: English
Duration: 50 minutes
Target audience: Beginner
Abstract: >
UTF-8 is the most popular character encoding on the web and has been for 5
years. Modern applications have to be developed with an understanding of
Unicode. Fortunately, Perl is rich in functionality for working with Unicode
@patch
patch / gist:3935008
Created October 22, 2012 22:21
\X regex history

History of \X in regex engines:

  • 2000-05-23 — Perl 5.6 — introduced
  • 2003-04 — Unicode 4.0 — UAX #29: EGC defined
  • 2004-09-14 — PCRE 5.0 — introduced
  • 2010-04-12 — Perl 5.12 — EGC implemented
  • 2012-01-31 — Unicode 6.1 — EGC changes: Thai, Lao
  • 2012-05-20 — Perl 5.16 — Unicode 6.1 support

Key: