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
zack |
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
curl -s -XPOST http://api.metacpan.org/release/_search -d'{ "query": { "match_all": {} }, "size": 999, "fields": ["download_url"], "filter": { "term": { "distribution": "MooseX-NonMoose" } } }' | dpath -i json -o flat '//download_url' |
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 Test::More; | |
plan tests => 2; | |
ok (1, "affe"); | |
ok (1, "zomtec"); | |
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 Test::More; | |
plan tests => 2; | |
ok (1, "affe"); | |
ok (1, "zomtec"); | |
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
# Approaching the metacpan API with DPath: | |
# example from https://github.com/CPAN-API/cpan-api/wiki/API-docs extended: | |
curl -s -XPOST http://api.metacpan.org/v0/author/SCHWIGON?join=release -d ' | |
{ | |
"query": { | |
"bool": { | |
"should": [{ | |
"term": { |
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
{ | |
"version": "1.6", | |
"api_version": "2.0.0", | |
"build": 25, | |
"date": 1463785622, | |
"details_url": "https://github.com/PocketMine/PocketMine-MP", | |
"myversion" : "0.14.0", | |
"download_url": "https://dl.bintray.com/pocketmine/PocketMine/PocketMine-MP_1.6dev-23_6ba0abf5_API-2.0.0.phar" | |
} |
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
#Properties Config file | |
#Thu May 26 19:50:15 CEST 2016 | |
server-name=LANPARTY PE 1 | |
server-port=19132 | |
gamemode=0 | |
max-players=50 | |
spawn-protection=16 | |
white-list=off | |
enable-query=on | |
enable-rcon=on |
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
for @els -> $t { | |
my $f = False; | |
given $t.WHAT { | |
when Perl6::String::Interpolation { print "INTERPOLATION"; $f=True} | |
when Perl6::Bareword { print "BAREWORD"; $f=True } | |
} | |
say " ({$t.content})" if $f; | |
} |
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
CREATE TABLE tap_dom ( | |
tap_dom_id BIGSERIAL PRIMARY KEY, | |
uuid UUID NOT NULL, | |
created TIMESTAMPTZ NOT NULL DEFAULT NOW(), | |
dom JSONB | |
); |
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 | |
# Mojolicious 8.17 | |
# PostgreSQL 9.5.14 | |
use 5.022; | |
use Mojo::Pg; | |
use UUID; | |
# as seen in https://metacpan.org/pod/Mojo::Pg |
OlderNewer