Skip to content

Instantly share code, notes, and snippets.

Ryuichi Sai ryuichis

  • Houston, TX
Block or report user

Report or block ryuichis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View clang -E test.m
# 1 "/System/Library/Frameworks/Foundation.framework/Headers/FoundationLegacySwiftCompatibility.h" 1 3
# 185 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 2 3
# 2 "test.m" 2
typedef enum NS_ENUM_State : int NS_ENUM_State; enum NS_ENUM_State : int{
kATC_start = 0,
kATC_stop
};
typedef enum C2 : NSInteger C2; enum C2 : NSInteger {
@ryuichis
ryuichis / Event.swift
Created Oct 15, 2016
Swift 3 Struct & NSCoding
View Event.swift
public struct Event {
public internal(set) var timeStamp: Date
public internal(set) var eventTag: String
public init(timeStamp: Date, tag: String) {
self.timeStamp = timeStamp
self.eventTag = tag
}
}
@ryuichis
ryuichis / gist:755e6297aec13c900cdf
Last active Mar 12, 2019 — forked from gavrix/gist:5054182
Script integrating OCLint into XCode. Put it in "Run script" build phase.
View gist:755e6297aec13c900cdf
source ~/.bash_profile
cd ${SRCROOT}
xcodebuild clean
xcodebuild | xcpretty -r json-compilation-database
oclint-json-compilation-database -- -report-type xcode
You can’t perform that action at this time.