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
var select2Options = { allowClear: true, width: 'resolve' }; | |
$('select#country, select#region').select2(select2Options); |
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 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 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
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 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 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 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
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 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
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 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
<html> | |
<head> | |
<title>MODX Revolution - Home</title> | |
<base href="http://www.example.com/roman-modx-003/" /> | |
</head> | |
<body> | |
</body> | |
</html> |
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 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 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
select * | |
from products p | |
left join product_custom_fields pcf1 on p.id = pcf1.product_id and pcf1.custom_field_id = 1 | |
left join product_custom_fields pcf2 on p.id = pcf2.product_id and pcf2.custom_field_id = 3 |
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
SELECT `me`.`id`, `me`.`parent_id`, `me`.`created`, `me`.`updated`, `me`.`type`, `me`.`name`, `me`.`contact_id` | |
FROM ( | |
SELECT `me`.`id`, `me`.`parent_id`, `me`.`created`, `me`.`updated`, `me`.`type`, `me`.`name`, `me`.`contact_id` | |
FROM `companies` `me` | |
WHERE `id` IN ( ( | |
SELECT `me`.`company_id` | |
FROM `user_roles` `me` | |
WHERE `user_id` = 'ARRAY(0x7fbb6072f818)' | |
GROUP BY `company_id` | |
), ( |