Skip to content

Instantly share code, notes, and snippets.

@yaokaige
yaokaige / iterm2-solarized.md
Created January 29, 2019 06:52 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@yaokaige
yaokaige / .vimrc
Created March 27, 2017 02:53
vimrc file autobackup
" initilize
static UIView *PSPDFViewWithSuffix(UIView *view, NSString *classNameSuffix) {
if (!view || classNameSuffix.length == 0) return nil;
UIView *theView = nil;
for (__unsafe_unretained UIView *subview in view.subviews) {
if ([NSStringFromClass(subview.class) hasSuffix:classNameSuffix]) {
return subview;
}else {
if ((theView = PSPDFViewWithSuffix(subview, classNameSuffix))) break;
}
@yaokaige
yaokaige / JSONKit.podspec
Created November 28, 2013 02:46
got errors when building jsonkit with cocoapods, found out they changed compile flag here https://github.com/CocoaPods/Specs/blob/017c423e46e58049b7f68b2ac9d901533d515132/JSONKit/1.5pre/JSONKit.podspec
Pod::Spec.new do |s|
s.name = 'JSONKit'
s.version = '1.5pre'
s.license = 'BSD / Apache License, Version 2.0'
s.summary = 'A Very High Performance Objective-C JSON Library.'
s.homepage = 'https://github.com/johnezang/JSONKit'
s.author = 'John Engelhart'
s.source = { :git => 'https://github.com/johnezang/JSONKit.git', :commit => '0aff3deb5e1bb2bbc88a83fd71c8ad5550185cce' }
s.source_files = 'JSONKit.*'