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
# shellcheck shell=sh | |
nodenv() { | |
if has nodenv; then | |
export NODENV_VERSION="${1}" | |
else | |
echo "direnv: nodenv is not installed" | |
fi | |
} |
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
(require 'org) | |
(setq-default indent-tabs-mode nil) | |
(setq org-display-inline-images t) | |
(setq org-redisplay-inline-images t) | |
(setq org-startup-with-inline-images "inlineimages") | |
(setq default-frame-alist | |
(append (list '(width . 72) '(height . 40)))) |
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; | |
subtest 'Overriding "isa" on a mock object' => sub { | |
isa_ok( | |
mock( {}, override => [ isa => sub { pop eq 'Foo' } ] ), | |
['Foo'], | |
'should correctly respond to "isa"', | |
); | |
}; |
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/bash | |
set -euxo pipefail | |
git init | |
npm init -y | |
npm install -D depcheck eslint eslint-config-prettier eslint-plugin-jsdoc eslint-plugin-json eslint-plugin-prettier husky lint-staged prettier | |
npm pkg set scripts.depcheck='depcheck' | |
npm pkg set scripts.lint-staged='lint-staged --allow-empty' |
OlderNewer