- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Copy only the p4merge.app file into your /Applications/ directory
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
soga,2=▔▽▔ | |
qushi,2=(´▽` ) | |
shima,2=( ̄m ̄) | |
haokeai,2=(*^-^*) | |
lala,2=♪(^∇^*) | |
kongbu,2=┌(。Д。)┐ | |
nihao,2=( ̄▽ ̄)ノ | |
haoxihuan,2=(≧∇≦)ノ | |
jiujiuwo,2=_(__)ノ彡 | |
chidiao,2=ψ(`∇´)ψ |
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
// | |
// CLLocation+Sino.h | |
// | |
// Created by i0xbean@gmail.com on 13-4-26. | |
// 火星坐标系转换扩展 | |
// | |
// earth(国外 WGS84), mars(国内 GCJ-02), bearPaw(百度 BD-09) 坐标系间相互转换 | |
// 未包含 mars2earth. 需要这个可参考 http://xcodev.com/131.html | |
#import <CoreLocation/CoreLocation.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
#!/bin/sh | |
for dir in $(ls -d */) | |
do | |
if [ -d "$dir"/.git ]; then | |
echo "$dir" && cd "$dir" && git pull && cd .. | |
fi | |
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
+ (BOOL)isMobileNumber:(NSString *)mobileNum { | |
/** | |
* 手机号码 | |
* 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 | |
* 联通:130,131,132,152,155,156,185,186 | |
* 电信:133,1349,153,180,189 | |
*/ | |
NSString * MOBILE = @"^1(3[0-9]|5[0-35-9]|8[025-9])\\d{8}$"; | |
/** | |
10 * 中国移动:China Mobile |
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
if ([date1 compare:date2] == NSOrderedDescending) { | |
NSLog(@"date1 is later than date2"); | |
} else if ([date1 compare:date2] == NSOrderedAscending) { | |
NSLog(@"date1 is earlier than date2"); | |
} else if ([date1 compare:date2] == NSOrderedSame) { | |
NSLog(@"dates are the same"); | |
} |
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
@interface NSDictionary (NullReplacement) | |
- (NSDictionary *)dictionaryByReplacingNullsWithBlanks; | |
@end | |
@implementation NSDictionary (NullReplacement) | |
- (NSDictionary *)dictionaryByReplacingNullsWithBlanks { |
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
@interface NSArray (NullReplacement) | |
- (NSArray *)arrayByReplacingNullsWithBlanks; | |
@end | |
@implementation NSArray (NullReplacement) | |
- (NSArray *)arrayByReplacingNullsWithBlanks { |
- Prepare New Signing Assets
$ security cms -D -i path/to/MyProfile.mobileprovision > provision.plist
$ /usr/libexec/PlistBuddy -x -c 'Print :Entitlements' provision.plist > entitlements.plist
- Replace Provisioning Profile