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
use Test2::V0; | |
use Moo; | |
{ | |
package Person; | |
use Moo; | |
has age => ( is => 'ro' ); | |
} | |
{ |
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
use 5.026; | |
use Log::Any::Adapter qw< TAP >; | |
use Test::Most; | |
{ | |
package Bar; | |
use Moo; | |
use Log::Any qw< $log >; | |
sub BUILD { $log->debugf('building package: %s', __PACKAGE__) } | |
} |
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
use 5.026; | |
use Test::Most; | |
{ | |
package Process; | |
use Moo; | |
has state => ( is => 'ro', lazy => 1, default => sub { { } } ); | |
sub at_max_retries { $_[0]->state->{retries} // 0 >= 10 } | |
sub retry { $_[0]->state->{retries}++ } | |
} |
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
use 5.026; | |
use DBIx::RunSQL; | |
use DBIx::Class::Schema::Loader 'make_schema_at'; | |
BEGIN { | |
my $sql = <<'SQL'; | |
BEGIN; | |
CREATE TABLE request ( | |
id INTEGER NOT NULL, |
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
use 5.026; | |
use Test::Most; | |
{ | |
package TemplateGen; | |
use Moose; | |
use Types::Standard qw( ArrayRef Str ); | |
use experimental qw( signatures ); | |
has descriptors => ( is => 'ro', isa => ArrayRef[Str], lazy => 1, builder => '_build_descriptors' ); |
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
(use-package cperl-mode | |
:ensure t | |
:init (defalias 'perl-mode 'cperl-mode) | |
:mode (("\\.t\\'" . cperl-mode) | |
("cpanfile" . cperl-mode)) | |
:config (setq cperl-indent-level 4 | |
cperl-close-paren-offset -4 | |
cperl-continued-statement-offset 4 | |
cperl-indent-parens-as-block t | |
cperl-tab-always-indent t) |
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
Vagrant is currently configured to create VirtualBox synced folders with | |
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant | |
guest is not trusted, you may want to disable this option. For more | |
information on this option, please refer to the VirtualBox manual: | |
https://www.virtualbox.org/manual/ch04.html#sharedfolders | |
This option can be disabled globally with an environment variable: | |
VAGRANT_DISABLE_VBOXSYMLINKCREATE=1 |
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
use 5.024; | |
use Test::Most; | |
package C { | |
use Moo::Role; | |
has dir => ( is => 'ro', required => 1 ); | |
has file => ( is => 'ro', default => sub { sprintf '%s/%s.pm.ep' => $_[0]->dir, ref($_[0]) =~ s/::/\//gr } ); | |
}; | |
package 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
Your build configuration: | |
CC = gcc | |
CPPFLAGS = -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE | |
CFLAGS = -g -O2 -Wall -Wextra -Wdeclaration-after-statement -g -gdwarf-2 -fno-omit-frame-pointer | |
CXX = g++ | |
CXXFLAGS = -g -O2 -Wall -Wextra -g -gdwarf-2 -fno-omit-frame-pointer | |
LDFLAGS = | |
prefix: /usr/local | |
version: 4.9.4 |
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/sh -ex | |
apt-get install -y autoconf automake libssl-dev libtool pkg-config python-dev | |
cd /tmp | |
git clone https://github.com/facebook/watchman.git | |
cd watchman | |
./autogen.sh | |
./configure | |
make | |
make install |