- Get and Start Kong and Co
git clone [email protected]:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
- Create Kong API Route
git clone [email protected]:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
var formData = new FormData(); | |
formData.append("user", "Mario"); | |
formData.append("testdot", imgData); | |
createRequest("POST", "some webservice", callback).send(formData); | |
/* | |
* SOLUTION 1 | |
*/ | |
function callback(file) { | |
var reader = new FileReader(); |
php
# install gender http://www.php.net/manual/en/book.gender.php | |
sudo apt-get install libpcre3-dev | |
sudo pecl install gender | |
# generate data | |
mkdir ~/gender | |
sudo pear run-scripts pecl/gender | |
# eneble module | |
echo 'extension=gender.so' >> /etc/php5/cli/php.ini |
<?php | |
/* | |
* Iteration and Recursive Iteration Examples Code | |
* | |
* @link http://stackoverflow.com/questions/12077177/how-does-recursiveiteratoriterator-works-in-php | |
* @author hakre <http://hakre.wordpress.com> | |
*/ | |
### To have these examples to work, a directory with subdirectories is needed, | |
### I named mine "tree": |
This code was originally taken from a StackOverflow question here.
I'd like to also add image resize.
<?php | |
/* | |
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED! | |
*/ | |
ini_set( 'display_errors', 1 ); | |
error_reporting( E_ALL ); | |
$from = '[email protected]'; |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <unistd.h> | |
char* logo = | |
" ____ ____ ____ ____\n" |
<?php | |
/** | |
* UUID class | |
* | |
* The following class generates VALID RFC 4122 COMPLIANT | |
* Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
* | |
* UUIDs generated validates using OSSP UUID Tool, and output | |
* for named-based UUIDs are exactly the same. This is a pure | |
* PHP implementation. |