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
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"strings" | |
"unicode" | |
"mvdan.cc/sh/v3/syntax" |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature qw{ say }; | |
use Getopt::Long; | |
my $options = {}; | |
GetOptions( $options, "--directory=s", "--start=s", "--finish=s" ); |
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
A BCDEFDG | |
AH I ECDDF | |
HDICJ | |
A BIKFDGLM | |
NODCAJDC | |
IHG GDMPQANDG | |
NOD CAEODQ | |
AH I HDICRS | |
EIJD |
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
#! /usr/bin/perl -l | |
use strict; | |
use warnings; | |
use File::Find; | |
my %seen; | |
for my $inc (@INC) { | |
next unless (-d $inc); |
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
package main | |
import ( | |
"fmt" | |
"path/filepath" | |
) | |
func main() { | |
paths := []string{ | |
"/home/arnie/amelia.jpg", |
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
{ | |
repository(name: "darksky", owner: "mlbright") { | |
ref(qualifiedName: "refs/heads/master") { | |
target { | |
... on Commit { | |
tree { | |
id | |
entries { | |
oid | |
name |
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
{ | |
repository(name: "darksky", owner: "mlbright") { | |
ref(qualifiedName: "master") { | |
target { | |
... on Commit { | |
id | |
history(first: 5) { | |
pageInfo { | |
hasNextPage | |
} |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $days = 7; | |
my $nights = $days - 1; | |
my $bar = 2; | |
my $maid = 5; | |
my $alacarte = 5; |
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
perl trees.pl | grep -v "wild" | grep -v "fast" | grep -v "RT" | grep -i -v "flood" | grep -v "eaten" | grep -v "provides" | grep -i moist | grep -v Ironwood | grep -v "Tamarack" | grep -v muscle | perl -p -e 's/ => /:/g' | perl -F: -lane 'print lc($F[1])' |
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 Mojolicious::Lite; | |
# Search MetaCPAN for "mojolicious" | |
get '/' => sub { | |
my $c = shift; | |
$c->ua->get( | |
'api.metacpan.org/v0/module/_search?q=mojolicious' => sub { | |
my ( $ua, $tx ) = @_; | |
sleep(3); | |
$c->app->log->debug( |
NewerOlder