This file contains 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 v5.10; | |
use re 'eval'; | |
my @a = ( | |
[ 'aaa', sub { say 'Apple' } ], | |
[ 'bbb', sub { say 'Banana' } ], | |
[ 'ccc', sub { say 'Carrot' } ], | |
); | |
my @r = map { |
This file contains 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 | |
# Usage: license [fullname] | |
# Prints an MIT license appropriate for totin' around. | |
# | |
# $ license > COPYING | |
# $ license 'Joe Random' > COPYING | |
#!/bin/sh | |
FULLNAME=${1:-$(getent passwd $(id -u) | cut -d: -f5 | cut -d, -f1)} | |
cat << "." | |
Copyright (c) `date +%Y` $FULLNAME |