This file contains hidden or 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
sub fetch : Chained('base') PathPart('') CaptureArgs(1) { | |
my ($self, $c, $company_id) = @_; | |
## $company_id is undef AFTER ->go | |
} | |
sub edit : Chained('fetch') PathPart('edit') Args(0) { | |
my ($self, $c) = @_; | |
## ... |
This file contains hidden or 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
App::ControllerBase::REST | |
App::ControllerBase::REST::API | |
App::ControllerBase::REST::GUI | |
App::Controller::API::V1::Manufacturer (currently inherits from App::ControllerBase::REST::API) | |
App::Controller::GUI::Manufacturer (currently inherits from App::ControllerBase::REST::GUI) | |
But also needs to inherit from a common ::Manufacturer class that actually implements most of the | |
shared functionality for fetching records from store. Currently done via Traits, but this is undesirable | |
due to __PACKGE__->config needing to be shared as well, which cannot be added via Traits. |
This file contains hidden or 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 App::Schema::ResultSet; | |
use strict; | |
use warnings; | |
use parent 'DBIx::Class::ResultSet'; | |
__PACKAGE__->mk_group_accessors(inherited => qw/ | |
stash | |
/); |
This file contains hidden or 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
my $r = $self->routes; | |
push @{$r->namespaces}, 'Atlas::Backup::Web::Controller'; | |
my $job = $r->route('/job')->to(controller => 'Backup::Job'); | |
$job->get('')->to(action => 'collection'); | |
for my $method (qw/get post put delete/) { | |
$job->$method('/:id')->to(action => "single_$method"); | |
} |
This file contains hidden or 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
#!/bin/bash | |
# | |
# chkconfig: - 16 84 | |
# description: Start up transmission-daemon | |
# | |
# processname: transmission-daemon | |
# config: /etc/sysconfig/transmission | |
# source function library | |
. /etc/rc.d/init.d/functions |
This file contains hidden or 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
# WORKS | |
perl -Ilocal bin/daemons/gearman-worker.pl start -f | |
# DOES NOT WORK | |
carton exec "bin/daemons/gearman-worker.pl start -f" | |
dyld: lazy symbol binding failed: Symbol not found: _gearman_worker_create | |
Referenced from: local/lib/perl5/darwin-2level/auto/Gearman/XS/XS.bundle | |
Expected in: dynamic lookup |
This file contains hidden or 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 A; | |
sub file { | |
__FILE__; | |
} | |
package B; | |
use base 'A'; |
This file contains hidden or 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
export PERL_CPANM_OPT="--cascade-search --save-dists=$HOME/.cpanm/cache --mirror=$HOME/.cpanm/cache --mirror=http://search.cpan.org/CPAN" |
This file contains hidden or 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
Undefined symbols for architecture x86_64: | |
"cv::fastMalloc(unsigned long)", referenced from: | |
cv::Ptr<cv::flann::SearchParams>::Ptr(cv::flann::SearchParams*) in FindTheGhost-306b62.o | |
cv::Ptr<cv::flann::IndexParams>::Ptr(cv::flann::IndexParams*) in FindTheGhost-306b62.o | |
"cv::_InputArray::_InputArray(cv::Mat const&)", referenced from: | |
_main in FindTheGhost-306b62.o | |
"cv::drawMatches(cv::Mat const&, std::__1::vector<cv::KeyPoint, std::__1::allocator<cv::KeyPoint> > const&, cv::Mat const&, std::__1::vector<cv::KeyPoint, std::__1::allocator<cv::KeyPoint> > const&, std::__1::vector<cv::DMatch, std::__1::allocator<cv::DMatch> > const&, cv::Mat&, cv::Scalar_<double> const&, cv::Scalar_<double> const&, std::__1::vector<char, std::__1::allocator<char> > const&, int)", referenced from: | |
_main in FindTheGhost-306b62.o | |
"cv::_OutputArray::_OutputArray(cv::Mat&)", referenced from: | |
_main in FindTheGhost-306b62.o |
This file contains hidden or 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
asdasd | |
new trhing | |
update gist | |
asdasd | |
new line |