Skip to content

Instantly share code, notes, and snippets.

View rafl's full-sized avatar

Florian Ragwitz rafl

View GitHub Profile
$self->process_form($ctx, 'Scheduling::Waitlist' => {
available_locations => [$ctx->model('DB::Location')->all],
available_events => [$ctx->model('DB::Experience')->all],
init_object => {
location => $waitlist->location->id,
event => $waitlist->experience->id,
notes => $waitlist->note,
},
on_success => fun ($form) {
...
@rafl
rafl / Lite.pm
Created July 29, 2009 07:29 — forked from dhoss/Lite.pm
package WMC::Server::Lite;
use Moose;
use HTTP::Server::Simple;
use IO::Socket::SSL;
use IO::File;
use Regexp::Common qw /URI/;
use DateTime;
use File::Spec;
use Log::Dispatch::Syslog;
@rafl
rafl / Sugar.pm
Created March 11, 2009 11:10 — forked from pdcawley/Sugar.pm
# Devel::Declare::Sugar
package Test::Class::Sugar;
use Modern::Perl;
use Devel::Declare ();
use Devel::Declare::Context::Simple;
use Carp qw/croak/;