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 Test::LectroTest::Compat; | |
use Test::LectroTest::Generator qw< :all >; | |
sub Positive_Int { Gen { abs Int->generate(@_) } } | |
holds( | |
Property { | |
##[ a <- Positive_Int, b <- Positive_Int ]## | |
my $c = sub { $_[0] + $_[1] }->( $a, $b ); |
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 | |
# Minimum perl configuration | |
export PLENV_VERSION="5.24.0" | |
cpan "local::lib" "App::cpm" "CPAN" "Log::Log4perl" "Term::ReadKey" "Term::ReadLine::Gnu" "YAML" | |
eval "$(perl -Mlocal::lib=local)" |
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.016; | |
use Test::More; | |
use Test::Exception; | |
package Script { | |
use Moo; | |
use MooX::Options; | |
option start => ( | |
doc => 'Start running the application', |
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 strict'; | |
const chai = require('chai'), | |
chaiAsPromised = require('chai-as-promised'), | |
AWS = require('aws-sdk-mock'), | |
Demo = require('../src/demo'), | |
expect = chai.expect; | |
chai.use(chaiAsPromised); |
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
=== npm audit security report === | |
┌──────────────────────────────────────────────────────────────────────────────┐ | |
│ Manual Review │ | |
│ Some vulnerabilities require your attention to resolve │ | |
│ │ | |
│ Visit https://go.npm.me/audit-guide for additional guidance │ | |
└──────────────────────────────────────────────────────────────────────────────┘ | |
┌───────────────┬──────────────────────────────────────────────────────────────┐ |
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 Test2::V0; | |
use Data::Dumper::Concise qw< Dumper >; | |
use DBIx::Class::Migration; | |
use Path::Tiny qw< tempdir >; | |
use Test::mysqld; | |
my $mysqld = Test::mysqld->new( | |
my_cnf => { |
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
{ | |
"builders": [ | |
{ | |
"add_force": true, | |
"communicator": "ssh", | |
"source_path": "ubuntu/trusty64", | |
"type": "vagrant" | |
} | |
], | |
"provisioners": [ |
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 | |
# download and install vagrant | |
cd "$(mktemp -d)" | |
wget -qc "https://releases.hashicorp.com/vagrant/2.2.4/vagrant_2.2.4_x86_64.deb" | |
sudo dpkg -i "vagrant_2.2.4_x86_64.deb" | |
# install bash completion | |
wget -qc "https://raw.github.com/kura/vagrant-bash-completion/master/etc/bash_completion.d/vagrant" | |
sudo mv -v "vagrant" "/etc/bash_completion.d/" |
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 PerlX::Maybe qw< :all >; | |
subtest 'provided_deref' => sub { | |
my $object = mock {} => ( | |
add => [ | |
count => sub { 1 }, | |
interval => sub { 1 }, | |
update => sub { |
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 perl ${PERL_VERSION} | |
eval $(perl -Mlocal::lib="${HOME}/.plenv/libs/${PERL_VERSION}@${LIB_NAME}") |