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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; | |
color: #333; | |
} |
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 | |
class GCDDelayTask: NSObject { | |
typealias DelayTask = (_ cancel: Bool) -> Void | |
var pendingTask: DelayTask? | |
/// 延时执行 | |
func delay(time: TimeInterval, task: @escaping () -> ()) { |
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 | |
func printLog<T>(_ message: T, | |
file: String = #file, | |
method: String = #function, | |
line: Int = #line) | |
{ | |
#if DEBUG | |
print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)") | |
#endif |
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 | |
struct EFUIntPixel { | |
var red: UInt8 = 0 | |
var green: UInt8 = 0 | |
var blue: UInt8 = 0 | |
var alpha: UInt8 = 0 | |
} | |
extension CIImage { |