Skip to content

Instantly share code, notes, and snippets.

View cybersiddhu's full-sized avatar

Siddhartha Basu cybersiddhu

View GitHub Profile
#!/usr/bin/perl -w
use strict;
use Pod::Usage;
use Getopt::Long;
GetOptions( 'h|help' => sub { pod2usage(1); } );
pod2usage("no module name given") if !$ARGV[0];
package DictyREST;
use strict;
use warnings;
use base 'Mojolicious';
use Config::Simple;
use Carp;
use File::Spec::Functions;
@cybersiddhu
cybersiddhu / gist:160629
Created August 3, 2009 15:53
Application module for DictyREST
package DictyREST;
use strict;
use warnings;
use base 'Mojolicious';
use Config::Simple;
use Carp;
use File::Spec::Functions;
package DictyREST::Controller::Page;
use strict;
use warnings;
use base qw/Mojolicious::Controller/;
use dicty::UI::Tabview::Page::Gene;
use dicty::Factory::Tabview::Tab;
use dicty::Factory::Tabview::Section;
sub index {
package DictyREST::Controller::Tab;
use strict;
use warnings;
use base qw/Mojolicious::Controller/;
use dicty::UI::Tabview::Page::Gene;
use dicty::Factory::Tabview::Tab;
use dicty::Factory::Tabview::Section;
sub section {
package DictyREST::Renderer::JSON;
use warnings;
use strict;
use Carp;
use version; our $VERSION = qv('1.0.0');
# Other modules:
use base 'Mojo::Base';
package DictyREST::Renderer::TT;
use warnings;
use strict;
use Carp qw/confess cluck carp/;
use version; our $VERSION = qv('1.0.0');
# Other modules:
use base 'Mojo::Base';
package DictyREST::Helper;
use version; our $VERSION = qv('1.0.0');
# Other modules:
use base qw/Mojo::Base/;
use dicty::Gene;
# Module implementation
#
#!/usr/bin/perl -w
use strict;
use Pod::Usage;
use Getopt::Long;
use File::Spec::Functions;
use FindBin qw/$Bin/;
use Bio::Chado::Schema;
use DBIx::Class::Fixtures;
{
sets: [
{
class: 'Cv::Cv',
quantity: 'all',
fetch: [ {
rel: 'cvterms',
quantity: 'all',
fetch: [ {
rel: 'dbxref',