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/perl | |
use Cache::Memcached; | |
use YAML; | |
use YAML::Dumper; | |
print YAML::Dumper->new->dump( | |
Cache::Memcached->new( servers => [ "localhost:11211" ] ) | |
->get( shift ) | |
); |
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 perl | |
use strict; | |
use warnings; | |
use URI; | |
use URI::QueryParam; | |
use LWP::Simple qw/ get /; | |
use File::Temp qw/ tempfile /; | |
use Email::Sender::Simple qw(sendmail); |
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/perl | |
use 5.10.0; | |
use strict; | |
use warnings; | |
sub hash_map(&+) { | |
my( $sub, $hash ) = @_; | |
my @mapped; |
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
package XML::Writer::SelfContained; | |
=pod | |
Tired of giving a output to XML::Writer? Me too. This allows to do | |
use 5.10.0; | |
use XML::Writer::SelfContained; |
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
extends perl | |
## ROUTE DEFINITIONS | |
snippet get "GET route" !b | |
get '/${1}' => sub { | |
${2:${VISUAL:...;}} | |
}; | |
endsnippet |
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
$ perl bin/rt-to-github.pl puppies App-Cmd | |
github issues: | |
ticket 81512 | |
ticket 57808 | |
ticket 59656 | |
ticket 73901 | |
And then https://github.com/yanick/puppies/issues |
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
# in your main application class (e.g. lib/S****T***.pm): | |
sub rs { | |
my ( $c, $table ) = @_; | |
my $model = 'DBIx::' . $table; | |
return $c->model($model); | |
} | |
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
package LockedLockFile; | |
use strict; | |
use warnings; | |
use Moose; | |
use Path::Tiny; | |
use File::Flock::Tiny; |
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
"How can I seek Death?" asked the disciple to the master. | |
The master smiled. "How can you make mountains rise? How | |
do you make the sea ebbs at tides? How do you make time flow?" | |
The disciple frowned. And frowned some more. And then, | |
in a moment of enlightenment, thought of 'autodie', had | |
an aneurysm, and died. |
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
$ cpan-release-counts --user YANICK | |
2005 ( 3) # | |
2006 ( 17) ###### | |
2007 ( 22) ######## | |
2008 ( 28) ########### | |
2009 ( 15) ###### | |
2010 ( 45) ################## | |
2011 ( 57) ###################### | |
2012 ( 76) ############################## | |
2013 (125) ################################################## |
OlderNewer