Skip to content

Instantly share code, notes, and snippets.

View bobbyjim's full-sized avatar

Robert Eaglestone bobbyjim

  • USAA
  • Dallas, Texas
View GitHub Profile
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: Uber API
description: Move your app forward with the Uber API
version: "1.0.0"
# the domain of the service
host: api.uber.com
# array of all schemes that your API supports
put $*PROGRAM-NAME;
say 'hello world';
put 'hello world';
say 'Hamadryas' ~~ m/ Hama /;
my $pattern = rx/ Hama /;
say 'Hamadryas' ~~ $pattern;
@bobbyjim
bobbyjim / test42.p6
Last active December 29, 2016 20:34
=begin table
TYPE | M | VOL | C | M | J | Fuel | TL | ETC | S | R | CAR | Hi | Mi | Lo | L | M | S | G | C | MCR
================ | == | ==== | = | = | = | ==== | == | === | = | = | === | == | == | == | = | = | = | = | = | ====
FREE TRADER | A1 | 200 | S | 1 | 1 | 22 | 10 | --0 | 1 | 1 | 82 | 8 | 0 | 8 | 0 | 0 | 0 | 0 | 0 | 42
FAR TRADER | A2 | 200 | S | 1 | 2 | 42 | 11 | --0 | 1 | 1 | 65 | 6 | 0 | 4 | 0 | 0 | 0 | 0 | 0 | 52
CRUISER | CM | 800 | U | 3 | 3 | 288 | 13 | --1 | 5 | 5 | 25 | 0 | 0 | 8 | 4 | 4 | 1 | 0 | 0 | 323
CORVETTE | EB | 500 | A | 5 | 3 | 192 | 16 | FL1 | 5 | 5 | 40 | 0 | 0 | 5 | 3 | 3 | 1 | 1 | 0 | 300
FREIGHTER | FL | 1000 | S | 1 | 3 | 316 | 12 | --0 | 1 | 1 | 410 | 12 | 0 | 10 | 2 | 0 | 0 | 0 | 0 | 230
PROSPECTOR | J1 | 100 | S | 1 | 1 | 12 | 9 | --0 | 1 | 1 | 20 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 57
SAFARI SHIP | KA | 200 | L | 2 | 2 | 36 | 15 | WS0 | 3 | 3 | 20 | 7 | 0 | 0 | 0
=begin ships
FREE TRADER A1 200 S 1 1 22 10 --0 1 1 82 8 0 8 0 0 0 0 0 42
FAR TRADER A2 200 S 1 2 42 11 --0 1 1 65 6 0 4 0 0 0 0 0 52
CRUISER CM 800 U 3 3 288 13 --1 5 5 25 0 0 8 4 4 1 0 0 323
CORVETTE EB 500 A 5 3 192 16 FL1 5 5 40 0 0 5 3 3 1 1 0 300
FREIGHTER FL 1000 S 1 3 316 12 --0 1 1 410 12 0 10 2 0 0 0 0 230
PROSPECTOR J1 100 S 1 1 12 9 --0 1 1 20 0 3 0 0 0 0 0 0 57
SAFARI SHIP KA 200 L 2 2 36 15 WS0 3 3 20 7 0 0 0 0 0 0 0 95
LAB SHIP L2 400 C 1 2 74 16 --1 0 0 50 20 0 0 0 0 0 0 2 239
LINER MK 600 S 1 3 192 12 --0 0 0 120 8 13 20 0 0 0 0 0 138