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
swagger: "2.0" | |
info: | |
description: "This is a super simple swagger sample Book server" | |
version: "1.0.0" | |
title: "Swagger bookserver" | |
termsOfService: "http://google.com/" | |
contact: | |
email: "[email protected]" | |
license: | |
name: "Apache 2.0" |
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
<html> | |
<head> | |
<title>Geolocation</title> | |
</head> | |
<body> | |
<script> | |
if ("geolocation" in navigator){ | |
console.log("Geolocation available"); | |
navigator.geolocation.getCurrentPosition(success, error); | |
} |
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 | |
declare -a ENVS_TO_PLAN=(test sandbox production) | |
for i in "${ENVS_TO_PLAN[@]}"; do | |
echo Planning environment: $i | |
cd $i | |
ls -al | |
echo Running Init for $i environment | |
aws-vault exec ident -- terraform init |
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 | |
BB_ACCOUNT_NAME="john" | |
BB_USERNAME="doe" | |
BB_PASSWORD="password" | |
declare -a repositoryList=( "limerick-generator" ) | |
for repository in "${repositoryList[@]}" | |
do |
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 | |
CITIES="Paris, Madrid, Berlin" | |
IFS=', ' read -r -a citiesArray <<< "$CITIES" | |
for city in "${citiesArray[@]}" | |
do | |
echo "City: $city" | |
done |
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 | |
BB_ACCOUNT_NAME="robot_org" | |
BB_USERNAME="cleveron" | |
BB_PASSWORD="password" | |
NEW_REPO_HOOK_ID="a1b2c3d4e5f6" | |
declare -a repositoryList=( "package_manifest" ) |
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/groovy | |
// NOTE: The jar "activemq-all-5.15.8.jar" needs to be put under $HOME/.groovy/lib | |
// for this script to work | |
import javax.jms.* | |
import org.apache.activemq.* | |
def amqURL = "failover:tcp://localhost:61616" | |
println "Connecting to ActiveMQ at URL " + amqURL |
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
<html> | |
<head> | |
<title>Testing XHR</title> | |
</head> | |
<body> | |
<p>This is a test</p> | |
<br /> | |
<div id="foobar"></div> | |
<script> | |
// Create the HTTP request |
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
swagger: "2.0" | |
info: | |
description: "This is a blog API defined in swagger" | |
version: "1.0.0" | |
title: "Swagger blog API" | |
termsOfService: "http://blog.dukic.co.nz/terms" | |
contact: | |
email: "[email protected]" | |
license: | |
name: "AGPL 3.0" |
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
#!/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 | |
####!/usr/bin/python3 | |
import os | |
import yaml | |
class APIGW(): | |
def __init__(self, responses, passThroughBehavior, requestTemplates, | |
gwType): |