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 SW::Web::Model::DB; | |
use Moose; | |
extends 'Catalyst::Model::DBIC::Schema'; | |
use SW::Schema::RestrictingObject; | |
## CatalystX::Component::Traits | |
# has '+_trait_merge' => (default => 1); |
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
var select2Options = { allowClear: true, width: 'resolve' }; | |
$('select#country, select#region').select2(select2Options); |
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 WWW::MenuGrinder::Plugin::BoolMethod; | |
# ABSTRACT: WWW::MenuGrinder plugin that does boolean checks on items. | |
use Moose; | |
use Carp; | |
with 'WWW::MenuGrinder::Role::ItemMogrifier'; | |
sub item_mogrify { |
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
Inconsistent hierarchy during C3 merge of class 'SW::Schema::Result::RoleTemporary': | |
current merge results [ | |
SW::Schema::Result::RoleTemporary, | |
] | |
merging failed on 'DBIx::Class::Core' at /Users/roman/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/darwin-2level/mro.pm line 27. |
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 SW::Web::Controller::Manufacturer; | |
use Moose; | |
use namespace::autoclean; | |
BEGIN { extends 'Catalyst::Controller'; } | |
__PACKAGE__->config(namespace => 'm'); | |
sub create : Chained('/superuser') PathPart('m/create') Args(0) { |
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
ansible-playbook init.yml --connection="ssh" --inventory-file="/path/to/inventory-file" --user=="root" --ask-pass | |
GATHERING FACTS ********************* | |
fatal: [ansible] => failed to transfer file to command-line line 0: Missing argument./setup: | |
command-line line 0: Missing argument. | |
Connection closed |
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
var url = 'http://www.google.com'; | |
var prefix = 'CA'; | |
var totalScreenshots = 10; | |
var screenshotDelay = 10; // seconds | |
var i = 0; | |
function makeScreenshot(url, filename, callback) { | |
var page = new WebPage(); | |
page.settings.userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0'; | |
page.open(url, function(status) { |
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
<html> | |
<head> | |
<title>MODX Revolution - Home</title> | |
<base href="http://www.example.com/roman-modx-003/" /> | |
</head> | |
<body> | |
</body> | |
</html> |
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 SW::Web::Form::Component::InlineHelp; | |
use warnings; | |
use strict; | |
use HTML::FormHandler::Moose::Role; | |
=head2 inline_help | |
Inline help for a field. |
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
asdasd | |
new trhing | |
update gist | |
asdasd | |
new line |