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
mkdir $HOME/deps | |
cd $HOME/deps | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
git clone https://github.com/google/skia.git | |
export PATH="${PWD}/depot_tools:${PATH}" | |
cd skia | |
python tools/git-sync-deps | |
//static | |
bin/gn gen out/release --args="is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_libwebp=false extra_cflags_cc=[\"-frtti\"]" |
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
import Foundation | |
var count: UInt32 = 0 | |
let list = class_copyMethodList(NSObject.self, &count) | |
var result: Set<String> = Set() | |
for i in 0 ..< count { | |
let x = list![Int(i)] | |
let nameString = NSStringFromSelector(method_getName(x)) |
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
import Foundation | |
fileprivate protocol Statelike { | |
var stateMachine: StateMachine { get } | |
func logIn() | |
func logOut() | |
} | |
extension Statelike { | |
func logIn() {} |
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 YANCollectionViewFlowLayout : UICollectionViewFlowLayout | |
@property (nonatomic, assign) CGFloat previousOffset; | |
@property (nonatomic, assign) NSInteger currentPage; | |
@end | |
@implementation YANCollectionViewFlowLayout | |
- (void) setupInitialContentOffset { |