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
// define selector | |
SEL selector = @selector(postToURL:withParams:async:); | |
// get method signeture | |
NSMethodSignature* signature = [[self class] methodSignatureForSelector: selector]; | |
// make NSInvocation instance | |
NSInvocation* invocation = [ NSInvocation invocationWithMethodSignature: signature ]; | |
[invocation setSelector:selector]; | |
[invocation setTarget:[self class]]; | |
[invocation setArgument:&strurl atIndex:2]; | |
[invocation setArgument:¶ms atIndex:3]; |
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
% git clone git@github.com:{ACCOUNT_NAME}/{ACCOUNT_NAME}.github.io.git | |
Cloning into '{ACCOUNT_NAME}.github.com'... | |
remote: Counting objects: 895, done. | |
remote: Compressing objects: 100% (366/366), done. | |
remote: Total 895 (delta 500), reused 880 (delta 486) | |
Receiving objects: 100% (895/895), 1.02 MiB | 368 KiB/s, done. | |
Resolving deltas: 100% (500/500), done. |
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
platform :ios, '5.1' | |
pod 'AFNetworking', '1.1.0' | |
target :NSRemoteJsonObjectTests, :exclusive => true do | |
pod 'Kiwi' | |
end |
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 <Foundation/Foundation.h> | |
@interface NSURL (dictionaryFromQueryString) | |
-(NSDictionary *) dictionaryFromQueryString; | |
@end |
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
% git clone git@github.com:{ACCOUNT_NAME}/{ACCOUNT_NAME}.github.com.git | |
Cloning into '{ACCOUNT_NAME}.github.com'... | |
remote: Counting objects: 895, done. | |
remote: Compressing objects: 100% (366/366), done. | |
remote: Total 895 (delta 500), reused 880 (delta 486) | |
Receiving objects: 100% (895/895), 1.02 MiB | 368 KiB/s, done. | |
Resolving deltas: 100% (500/500), done. |
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
{ | |
"meta": { | |
"limit": 20, | |
"next": null, | |
"offset": 0, | |
"previous": null, | |
"total_count": 3 | |
}, | |
"objects": [ | |
{ |
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
// | |
// MMPropertyUtil.h | |
// MoyaMap | |
// | |
// Created by Haruyuki Seki on 2/16/13. | |
// Copyright (c) 2013 Hacker's Cafe. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
"Couldn't register com.yourcompany.yourapp with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger." |
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
id myTilesource = [[[RMCloudMadeMapSource alloc] | |
initWithAccessKey:@"YOUR_API_KEY" styleNumber:999] autorelease]; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title> | |
<script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(function () { | |
var extractToken = function(hash) { |