Skip to content

Instantly share code, notes, and snippets.

View olarn's full-sized avatar

Olarn U. olarn

  • Bangkok, Thailand
View GitHub Profile
@olarn
olarn / gist:7edd7cb4078c18c9c7a2
Created October 2, 2015 04:35 — forked from leovandriel/gist:3786554
Objective-C method for composing a HTTP multipart/form-data body
// Objective-C method for composing a HTTP multipart/form-data body.
// Provide parameters and data in a NSDictionary. Outputs a NSData request body.
// License: Public Domain
// Author: Leonard van Driel, 2012
@interface MultipartExample @end
@implementation MultipartExample
+ (void)exampleUsageUploadImage
@olarn
olarn / osx-for-hackers.sh
Last active August 29, 2015 14:25 — forked from matthewmueller/osx-for-hackers.sh
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront