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
#import "NSData+OADataHelpers.h" | |
@implementation NSData (OADataHelpers) | |
- (NSString*) UTF8String | |
{ | |
// First we try strict decoding to avoid iconv overhead when not needed (majority of cases). | |
NSString* str = [[[NSString alloc] initWithData:self encoding:NSUTF8StringEncoding] autorelease]; | |
if (!str) | |
{ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.xcode_ramdisk.agent</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>xcode_ramdisk.sh</string> | |
<string>start</string> |
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
// | |
// NSObject+Blocks.h | |
// Filemator | |
// | |
// Created by Zachary Waldowski on 4/12/11. | |
// Copyright 2011 Dizzy Technology. All rights reserved. | |
// | |
@interface NSObject (Blocks) |
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
@implementation NSString (CoreAdditions) | |
/* | |
URL encode | |
*/ | |
- (NSString *)encodeURIComponent_NON_ARC | |
{ | |
static NSString * const kLegalCharactersToBeEscaped = @"!*'();:@&=+$,/?%#[]"; | |
return [(NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, | |
(CFStringRef)self, |
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
# Objective-C most watched repositories | |
[link](https://github.com/languages/Objective-C/most_watched) | |
* [three20](https://github.com/facebook/three20) | |
**faebook的320库** | |
* [AFNetworking](https://github.com/AFNetworking/AFNetworking) | |
**网络库** |
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
# Very alpha still, but getting there... | |
# Yeah, I like it this way | |
require 'pp' | |
require 'set' | |
require 'zlib' | |
require 'base64' | |
require 'socket' | |
require 'openssl' | |
require 'stringio' |
NewerOlder