Skip to content

Instantly share code, notes, and snippets.

View nickcheng's full-sized avatar
🛴
Vibing

nickcheng nickcheng

🛴
Vibing
View GitHub Profile
@nickcheng
nickcheng / gist:6657120
Created September 22, 2013 06:02
Compare version no.
NSString *smallVersion = @"3.8";
NSString *bigVersion = @"3.10";
if ([smallVersion compare:bigVersion options:NSNumericSearch] == NSOrderedAscending) {
NSLog(@"%@ is smaller than %@!", smallVersion, bigVersion);
} else {
NSLog(@"%@ is bigger than %@!", smallVersion, bigVersion);
}
@nickcheng
nickcheng / LoggingConfig.h
Created November 12, 2012 12:50
Global log level configuration for CocoaLumberjack
//
// LoggingConfig.h
//
// Created by nickcheng on 12-11-12.
// Copyright (c) 2012年 nx. All rights reserved.
//
#import "DDLog.h"
extern int const ddLogLevel;