http://guides.rubyonrails.org/layouts_and_rendering.html#the-status-option
- 200 - ok
- request 성공
- ex) resource 목록/resource 상세/resource 수정/그외 대부분의 API 성공
- 201 - create
- request 성공
- ex) resource 생성 성공
// This sample function uses SharpZipLib (http://icsharpcode.github.io/SharpZipLib/) to extract | |
// a zip file without blocking Unity's main thread. Remember to call it with StartCoroutine(). | |
// Byte data is passed so a MemoryStream object is created inside the function to prevent it | |
// from being reclaimed by the garbage collector. | |
public IEnumerator ExtractZipFile(byte[] zipFileData, string targetDirectory, int bufferSize = 256 * 1024) | |
{ | |
Directory.CreateDirectory(targetDirectory); | |
using (MemoryStream fileStream = new MemoryStream()) |
http://guides.rubyonrails.org/layouts_and_rendering.html#the-status-option
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
#!/usr/bin/env ruby | |
# Requires ImageMagick: `brew install imagemagick` | |
# Requires version.sh from https://gist.github.com/osteslag/1089407 | |
# | |
# Set RGM_STAMP_VERSION_ON_ICONS=1 in your build settings to enable/disable | |
# stamping on Debug/Relase configurations. | |
# | |
# Make base unstamped versions Icon.base.png, &c. in the source tree. The | |
# script will make stamped versions Icon.png, &c. It relies on Xcode to copy |