Skip to content

Instantly share code, notes, and snippets.

View neilkimmett's full-sized avatar

Neil Kimmett neilkimmett

View GitHub Profile
import UIKit
public func draw(size: CGSize, drawBlock: (CGContext) -> ()) -> UIImage? {
UIGraphicsBeginImageContextWithOptions(size, true, 0.0)
defer {
UIGraphicsEndImageContext()
}
guard let context = UIGraphicsGetCurrentContext() else {
return nil
//
// Created by azu on 2013/06/09.
// License MIT
#import <Foundation/Foundation.h>
#import "KWMatcher.h"
typedef NS_ENUM(NSUInteger, KWDateInequalityType){
KWDateInequalityTypeEqualToDateIgnoringTime,// ≒