Skip to content

Instantly share code, notes, and snippets.

@dagolden
dagolden / M::B create_mymeta
Created December 1, 2010 02:06
M::B create_mymeta
sub create_mymeta {
my ($self) = @_;
my $mymetafile = $self->mymetafile;
my $metafile = $self->metafile;
# cleanup
if ( $self->delete_filetree($mymetafile) ) {
$self->log_verbose("Removed previous '$mymetafile'\n");
}
$self->log_info("Creating new '$mymetafile' with configuration results\n");
#!/usr/bin/env perl
use 5.012;
use strict;
use warnings;
use autodie;
use Archive::Zip qw(:ERROR_CODES :CONSTANTS);
use Archive::Zip::MemberRead;
use Archive::Tar;
use CPAN::Visitor;
use CPAN::Mini;
#!/usr/bin/env perl
use 5.010;
use strict;
use warnings;
my $app = GrindPerl->new;
$app->run;
{
package GrindPerl;
@dagolden
dagolden / cpan-local-lib-demo.txt
Created January 5, 2011 11:31
Demo of CPAN.pm with local::lib bootstrap
cleanroom@vulcan:~$ /opt/perl/v5.13.7-clean/bin/cpan
CPAN is the world-wide archive of perl resources. It consists of about
300 sites that all replicate the same contents around the globe. Many
countries have at least one CPAN site already. The resources found on
CPAN are easily accessible with the CPAN.pm module. If you want to use
CPAN.pm, lots of things have to be configured. Fortunately, most of
them can be determined automatically. If you prefer the automatic
configuration, answer 'yes' below.
@dagolden
dagolden / gist:846558
Created February 27, 2011 21:29
MI authors sorted
ADAMK => 232
RJBS => 232
MIYAGAWA => 187
BINGOS => 155
FLORA => 149
MARCEL => 147
SMUELLER => 134
GUGOD => 122
DMAKI => 113
INGY => 111
#!/usr/bin/env perl
use 5.010;
use strict;
use warnings;
use autodie;
use Git::Wrapper;
use File::Find::Rule ();
use File::Find::Rule::Perl ();
my $tag = shift
t/2-scalars.t ................. 1/134
# Failed test at t/2-scalars.t line 14.
# got: '--- !!perl/ref
# =: &1 !!perl/ref
# =: *1
# '
# expected: '--- &1 !!perl/ref
# =: *1
# '
@dagolden
dagolden / gist:1058318
Created July 1, 2011 11:07
Metabase query language brainstorming
head2 Constraints
[ FIELD => OPERATOR => EXPRESSION ]
[ -or => [CONSTRAINT1, CONSTRAINT2, ...] ]
[ -and => [CONSTRAINT1, CONSTRAINT2, ...] ]
[ -not => CONSTRAINT ]

Synopsis of notes posted on http://piratepad.net/5ioB3dDVFA

Potential topics/proposals:

  1. Identity/branding

There are currently three NY groups: NY.pm (social only, currently), NY Perl Seminar (technical) and The NY Perl Meetup Group (on meetup.com, mostly technical). Do we need three? Or two (one social and one technical)? Or one identity (that happens to have both social and technical meetings)

  1. Online venues
@dagolden
dagolden / gist:1077176
Created July 12, 2011 01:13
README.PATCHING
README.PATCHING
Thank you for considering contributing to this distribution. This file
contains instructions that will help you work with the source code.
The distribution is managed with Dist::Zilla. This means than many of the
usual files you might expect are not in the repository, but are generated
at release time (e.g. Makefile.PL).
However, you can run tests directly using the 'prove' tool: