Skip to content

Instantly share code, notes, and snippets.

View j1n3l0's full-sized avatar

Nelo Onyiah j1n3l0

  • Goznel Limited
  • Kent UK
  • 19:47 (UTC -12:00)
View GitHub Profile
use Test2::V0;
use Moo;
{
package Person;
use Moo;
has age => ( is => 'ro' );
}
{
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__) }
}
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}++ }
}
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,
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' );
(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)
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
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 {
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
#!/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