Skip to content

Instantly share code, notes, and snippets.

@gnusosa
gnusosa / output_dancer_script
Created May 30, 2011 17:52
Some lame output to debug later.
+ hello
Failed to write file to ./hello/public/images/perldancer-bg.jpg - No such file or directory at /usr/lib/perl5/site_perl/5.12.3/Dancer/Script.pm line 219.
Failed to write file to ./hello/public/images/perldancer.jpg - No such file or directory at /usr/lib/perl5/site_perl/5.12.3/Dancer/Script.pm line 219.
Failed to write file to ./hello/public/favicon.ico - No such file or directory at /usr/lib/perl5/site_perl/5.12.3/Dancer/Script.pm line 219.
Odd number of elements in anonymous hash at /usr/lib/perl5/site_perl/5.12.3/Dancer/Script.pm line 124.
+ hello/bin
+ hello/bin/app.pl
+ hello/config.yml
+ hello/environments
+ hello/environments/development.yml
@gnusosa
gnusosa / output_dancer_module
Created May 31, 2011 06:07
It works braaah!
gnusosa@GN005-virtue ~/test $ dancer -a hello
+ hello
+ hello/bin
+ hello/bin/app.pl
+ hello/config.yml
+ hello/environments
+ hello/environments/development.yml
+ hello/environments/production.yml
+ hello/views
+ hello/views/index.tt
@gnusosa
gnusosa / new.t
Created June 3, 2011 05:17
Test for the Dancer::Script->new.
use Test::More tests => 3;
use Dancer::Script;
my $script = Dancer::Script->new(appname => 'Hello', path => '.', check_version => '1');
isa_ok( $script, 'Dancer::Script', );
can_ok( $script, 'parse_opts', 'validate_app_name', );
can_ok( $script, '_set_application_path', '_set_script_path', '_set_lib_path', );
@gnusosa
gnusosa / Dancer::Script::Update
Created June 21, 2011 20:54
Suggestion for user manual update.
use Text::Buffer;
#Add the following to Dancer::Script
sub upgrade {
my $self = shift;
my $file = catfile($self->{path},$self->{appname},'lib',$self->lib_path},$self->{lib_file});
my $deprecated = $self->deprecated;
my $text = Text::Buffer->new(-file=>"$file");
@gnusosa
gnusosa / Dancer::Script Tests for Debian Unstable
Created July 12, 2011 08:00
prove -lt 19_dancer/object/ in refactoring/script repo.
Linux eeepc 2.6.39-2-686-pae #1 SMP Tue Jul 5 03:48:49 UTC 2011 i686 GNU/Linux
Testing Dancer::Script Dancer: 1.3049_01, Perl 5.012004, /usr/bin/perl
t/19_dancer/object/00_load.t ...... ok
t/19_dancer/object/01_new.t ....... ok
t/19_dancer/object/02_write.t ..... ok
t/19_dancer/object/03_run.t ....... ok
t/19_dancer/object/04_scaffold.t .. ok
t/19_dancer/object/05_output.t .... ok
All tests successful.
Files=6, Tests=31, 5 wallclock secs ( 0.15 usr 0.04 sys + 4.82 cusr 0.33 csys = 5.34 CPU)
@gnusosa
gnusosa / Dancer::Script Tests for MacOS X PPC
Created July 12, 2011 08:02
prove -lt 19_dancer/object/ in refactoring/script repo.
Darwin server.gundam 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh
19_dancer/object/00_load.t ...... ok
19_dancer/object/01_new.t ....... ok
19_dancer/object/02_write.t ..... ok
19_dancer/object/03_run.t ....... ok
19_dancer/object/04_scaffold.t .. ok
19_dancer/object/05_output.t .... ok
All tests successful.
Files=6, Tests=31, 3 wallclock secs ( 0.08 usr 0.07 sys + 2.21 cusr 0.58 csys = 2.94 CPU)
Result: PASS
@gnusosa
gnusosa / Dancer::Script Tests for Mac OS X x86
Created July 12, 2011 08:03
prove -lt 19_dancer/object/ in refactoring/script repo.
Darwin Carlos-Computer.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
Testing Dancer::Script Dancer: 1.3049_01, Perl 5.014001, /Users/ron/perl5/perlbrew/perls/perl-5.14.1/bin/perl
object/00_load.t ...... ok
object/01_new.t ....... ok
object/02_write.t ..... ok
object/03_run.t ....... ok
object/04_scaffold.t .. ok
object/05_output.t .... ok
All tests successful.
Files=6, Tests=31, 2 wallclock secs ( 0.04 usr 0.02 sys + 1.19 cusr 0.17 csys = 1.42 CPU)
@gnusosa
gnusosa / gist:1095775
Created July 20, 2011 19:52
Franck and me meeting Fri May 20 12:07:36 2011
09:16 -!- gnusosa_ [[email protected]] has joined #dancer-soc
09:16 [Users #dancer-soc]
09:16 [ franck] [ gnusosa_]
09:16 -!- Irssi: #dancer-soc: Total of 2 nicks [0 ops, 0 halfops, 0 voices, 2 normal]
09:16 -!- Channel #dancer-soc created Fri May 20 12:07:36 2011
09:16 -!- Irssi: Join to #dancer-soc was synced in 14 secs
09:21 < gnusosa_> franck: ping
09:21 < franck> gnusosa_: I'm leaving work
09:21 < franck> I'm really sorry I was not available this weekend
09:21 < franck> *really*
@gnusosa
gnusosa / git_log_decorate
Created January 3, 2013 19:33
A better git log
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
.chart {
background: #b0e0f8;
margin: 5px;
}
.chart rect {
stroke: white;
fill: steelblue;
}