I hereby claim:
- I am jasdev on github.
- I am jasdev (https://keybase.io/jasdev) on keybase.
- I have a public key whose fingerprint is 711E 45E8 FF90 3997 AA07 6FD0 D107 2F37 4EB8 54D8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
extension String { | |
func containsUpperCaseLetter() -> Bool { | |
let beginCodePoint = Character("A").unicodeScalarCodePoint() | |
let endCodePoint = Character("Z").unicodeScalarCodePoint() | |
for scalar in self.unicodeScalars { | |
if case beginCodePoint...endCodePoint = scalar.value { | |
return true | |
} | |
} |
A list of presenters at the Brooklyn Swift Developers Meetup with links to videos, slides and source code: http://www.meetup.com/Brooklyn-Swift-Developers
David Grandinetti - Learning Swift the Euler Way (Video) / Slides)
import UIKit | |
enum Notifications { | |
enum Categories: String { | |
case Message | |
} | |
enum Actions: String { | |
case RemindMeLater | |
case Reply |
class CustomCell: UITableViewCell, Reusable { | |
class var reuseIdentifier: String { | |
return "customCell" | |
} | |
} | |
class SupaHotCustomCell: CustomCell { | |
override class var reuseIdentifier: String { | |
return "supaHotCustomCell" | |
} |
class Operation: NSOperation { | |
override var asynchronous: Bool { | |
return true | |
} | |
private var _executing = false { | |
willSet { | |
willChangeValueForKey("isExecuting") | |
} |
final class SampleViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let button = UIButton(type: .System) | |
// ... | |
button.addTarget(self, action: #selector(SampleViewController.buttonTapped(_:)), forControlEvents: .TouchUpInside) |
final class SampleViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let button = UIButton(type: .System) | |
// ... | |
button.addTarget(self, action: #selector(SampleViewController.buttonTapped(_:)), forControlEvents: .TouchUpInside) |
import Foundation | |
enum AppDefault { | |
case APIServer, runMode, homeDirectory, reactHost | |
var stringValue: String? { | |
get { | |
return NSUserDefaults.standardUserDefaults().stringForKey(String(self)) | |
} | |
extension CharacterSet: StringLiteralConvertible, ExtendedGraphemeClusterLiteralConvertible { | |
public init(stringLiteral value: String) { | |
self.init(charactersIn: value) | |
} | |
public init(extendedGraphemeClusterLiteral value: ExtendedGraphemeClusterType) { | |
self.init(charactersIn: value) | |
} | |
public init(unicodeScalarLiteral value: UnicodeScalarType) { |