$ git config --global core.editor "subl -n -w"
Install following CLI tools:
-
$ npm install apiary-blueprint-parser
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
if application "Google Chrome" is running then | |
tell application "Google Chrome" to make new window with properties {mode:"incognito"} | |
else | |
do shell script "open -a /Applications/Google\\ Chrome.app --args --incognito" | |
end if | |
tell application "Google Chrome" to activate |
FORMAT: 1A
Answer to "How to format a POST request on apiary.io". Make sure to refer to "application/x-www-form-urlencoded or multipart/form-data".
Do not forget to escape [
with %5B
and ]
with %5D
in data[User][username]=qq&data[User][password]=qq&data[User][remember]=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
{ | |
"_version": "1.0", | |
"metadata": {}, | |
"name": "", | |
"description": "", | |
"resourceGroups": [ | |
{ | |
"name": "", | |
"description": "", | |
"resources": [ |
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
$ sudo apt-get install libfontconfig | |
$ cd /usr/local/share | |
$ sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
$ sudo tar xjf phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
$ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs | |
$ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs | |
$ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs |
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
$ sudo apt-get install python-software-properties | |
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
$ sudo apt-get update | |
$ sudo apt-get install gcc-4.7 g++-4.7 | |
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 | |
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7 | |
$ sudo update-alternatives --config gcc |
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
# Collection API | |
# Group Coupons | |
Group of all coupon-related resources. | |
## Coupon [/coupons/{id}] | |
A resource representing one coupon. | |
+ Coupon Object (application/json) | |
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
# POST /path/to/script.php | |
+ Request (multipart/form-data, boundary=AaB03x) | |
+ Headers | |
Content-Length: $requestlen | |
+ Body | |