Skip to content

Instantly share code, notes, and snippets.

View nickcheng's full-sized avatar
🛴
Transforming

nickcheng nickcheng

🛴
Transforming
View GitHub Profile
Family name: Marion
>Font name: Marion-Italic
>Font name: Marion-Bold
>Font name: Marion-Regular
Family name: Copperplate
>Font name: Copperplate-Light
>Font name: Copperplate
>Font name: Copperplate-Bold
Family name: Heiti SC
>Font name: STHeitiSC-Medium
Family name: Copperplate
>Font name: Copperplate-Light
>Font name: Copperplate
>Font name: Copperplate-Bold
Family name: Heiti SC
Family name: Iowan Old Style
>Font name: IowanOldStyle-Italic
>Font name: IowanOldStyle-Roman
>Font name: IowanOldStyle-BoldItalic
>Font name: IowanOldStyle-Bold
Family name: Copperplate
>Font name: Copperplate-Light
>Font name: Copperplate
>Font name: Copperplate-Bold
Family name: Heiti SC
Family name: Kohinoor Telugu
>Font name: KohinoorTelugu-Regular
>Font name: KohinoorTelugu-Medium
>Font name: KohinoorTelugu-Light
Family name: Thonburi
@nickcheng
nickcheng / gist:21c292f28cc259228a30
Created March 13, 2016 09:32
Check your daily work. XD
git diff --shortstat "@{0 day ago}"
@nickcheng
nickcheng / uncrustify.cfg
Created February 29, 2016 07:02
Uncrustify configuration file I use now
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.4.3 (252)
#
# Alignment
# ---------
## Alignment
cowsay -l | tail +2 | tr " " "\\n" | xargs -I {} cowsay -f {} "cowsay -f {} 'Message'" | lolcat
@nickcheng
nickcheng / action.rb
Last active August 29, 2015 14:04
QiNiu Action for Dropzone 3
# Dropzone Action Info
# Name: QiNiu
# Description: Upload file to QiNiu and get the link.
# Handles: Files
# Creator: nickcheng
# URL: http://nickcheng.com
# OptionsNIB: ExtendedLogin
# Events: Clicked, Dragged
# KeyModifiers: Command, Option, Control, Shift
# SkipConfig: No
@nickcheng
nickcheng / gist:9182803
Created February 24, 2014 06:18
导出 cocos2d 2.1
git archive --format=zip --output=cocos2dv2.zip release-2.1
@nickcheng
nickcheng / gist:6681224
Created September 24, 2013 06:59
Best way to reset NSUserDefaults
NSString *domainName = [[NSBundle mainBundle] bundleIdentifier];
[[NSUserDefaults standardUserDefaults] removePersistentDomainForName:domainName];
@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);
}