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
import java.net.UnknownHostException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.junit.Test; | |
import com.mongodb.BasicDBObject; | |
import com.mongodb.DB; | |
import com.mongodb.MongoClient; | |
import com.mongodb.MongoClientOptions; |
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 v5.18.2 on MacOSX v10.10.2 | |
echo "hello" > /tmp/file | |
alias realpath="perl -MCwd -e 'print Cwd::realpath ($ARGV[0]), qq<\n>'" | |
cd /tmp && realpath file | |
# Outputs: /private/tmp/ARRAY(0x7fb6518042e8) |
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
$ sudo luarocks install ansicolors --verbose | |
os.execute: unzip -n '/Users/marco/.cache/luarocks/https___rocks.moonscript.org/manifest-5.1.zip' | |
Archive: /Users/marco/.cache/luarocks/https___rocks.moonscript.org/manifest-5.1.zip | |
inflating: manifest-5.1 | |
Results: 1 | |
1 (number): 0 | |
Installing https://rocks.moonscript.org/ansicolors-1.0.2-3.src.rock... | |
Using https://rocks.moonscript.org/ansicolors-1.0.2-3.src.rock... switching to 'build' mode |
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
$ busted -o spec/busted-print.lua --coverage spec/ spec/ | |
spec/integration/admin_api/admin_api_spec.lua: | |
Admin API / should return Kong's version and a welcome message ... ● | |
Admin API / should have a Server header ... ● | |
Admin API POST application/x-www-form-urlencoded should not create with an invalid application/x-www-form-urlencoded body ... ● | |
Admin API POST application/x-www-form-urlencoded should create an entity with an application/x-www-form-urlencoded body ... ● | |
Admin API POST application/x-www-form-urlencoded should not create with an invalid application/x-www-form-urlencoded body ... ● | |
Admin API POST application/x-www-form-urlencoded should create an entity with an application/x-www-form-urlencoded body ... ● | |
Admin API POST application/x-www-form-urlencoded should not create with an invalid application/x-www-form-urlencoded body ... ● |
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 | |
set -o errexit | |
# Force bash | |
if [ -z "$BASH_VERSION" ] | |
then | |
exec bash "$0" "$@" | |
fi |
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
<api format="JSON"> | |
<authentication type="header"> | |
<description><![CDATA[This is a simple header authentication]]><description> | |
<parameters> | |
<parameter name="X-Pippo-Username" optional="false"> | |
<description><![CDATA[Please enter here your username]]></description> | |
</parameter> | |
<parameter name="X-Pippo-Password" optional="false"> | |
<description><![CDATA[Please enter here your password]]></description> |
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
<?php | |
require_once("Bitly.php"); | |
$bitly = new Bitly("MY_PUBLIC_KEY", "MY_PRIVATE_KEY"); | |
// ... | |
?> |
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
<object name="User"> | |
<field>username</field> | |
<field>age</field> | |
<field array="true">emails</field> | |
<field array="true" object="Comment">comments</field> | |
</object> | |
<object name="Comment"> | |
<field>id</field> | |
<field>text</field> | |
</object> |
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
{ | |
"name": "Mark", | |
"email": "mark@mashape.com" | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<api xmlns="http://mashape.com" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://mashape.com http://mashape.com/schema/mashape-api-3.0.xsd"> | |
<method name="Get User" http="GET"> | |
<url><![CDATA[/users/{id}]]></url> | |
<parameters> | |
<parameter optional="false">id</parameter> | |
</parameters> |
OlderNewer