Skip to content

Instantly share code, notes, and snippets.

View xuzhongzhou's full-sized avatar
😶

Joe xuzhongzhou

😶
View GitHub Profile
@xuzhongzhou
xuzhongzhou / CleanBinaryStrings.py
Created August 9, 2016 03:17 — forked from varungulshan/CleanBinaryStrings.py
Script to rename strings in a binary for obfuscation purposes
#!/usr/bin/env python
# Call with python CleanBinaryStrings.py <binaryName>
# Will edit the binary in place
import struct
import sys
import mmap
import string
import binascii
import hashlib
import subprocess
67 facebook-ios-sdk
48 Bolts-iOS
39 AFNetworking
38 Google-Mobile-Ads-SDK
38 Reachability (Apple)
37 Crashlytics
31 Flurry-iOS-SDK
30 CocoaPods
29 GoogleConversionTracking
26 SDWebImage
#define NSNullObjects @[@"",@0,@{},@[]]
@interface NSNull (InternalNullExtention)
@end
@implementation NSNull (InternalNullExtention)
@xuzhongzhou
xuzhongzhou / gist:9224860
Created February 26, 2014 06:52
快速枚举
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block;
- (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, BOOL *stop))block;
[arrays enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL *stop) {
}];
[dictionary enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
}];
@xuzhongzhou
xuzhongzhou / How_to_use_MKNetworkKit
Last active December 17, 2015 12:38
How to use MKNetworkKit
1.Drag the MKNetworkKit directory to your project.
2.Add the CFNetwork.Framework, ImageIO.framework, SystemConfiguration.framework and Security.framework.
3.Include MKNetworkKit.h to your PCH file
4.Delete NSAlert+MKNetworkKitAdditions.h file if you are building for iOS.
5.Delete UIAlertView+MKNetworkKitAdditions.h file if you are building for Mac.
对于不使用ARC的项目,需要给MKNetworkKit的文件加标记“-fobjc-arc”:
See more detail at : http://blog.mugunthkumar.com/products/ios-framework-introducing-mknetworkkit/
@xuzhongzhou
xuzhongzhou / projects
Created May 20, 2013 04:43
GitHub上的优秀Objective-C项目
# 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)
**网络库**