- Introduction to Functional Programming Johannes Weiß - http://kcy.me/1ngiv
- ReactiveCocoa at MobiDevDay Andrew Sardone - http://kcy.me/1nhl3
- The Future Of ReactiveCocoa Justin Spahr-Summers - http://kcy.me/1nhs7
- Enemy of the State Justin Spahr-Summers - http://kcy.me/1njzs
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - http://kcy.me/1pyva
- Functioning as a Functionalist Andy Matuschak - http://kcy.me/22o45
- Controlling Complexity in Swift Andy Matuschak - http://kcy.me/23sc9
- Functional and reactive programming with Swift Ash Furrow -
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
- (NSData *) getDataFromAssetRepresentation: (ALAssetRepresentation *) representation | |
{ | |
if(!representation) | |
{ | |
NSLog(@"asset representation is NIL!"); | |
return nil; | |
} | |
uint8_t *buffer = malloc(representation.size); | |
NSError *error = nil; |
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
extension LBJSON: Printable { | |
var description: String { | |
return "description" | |
} | |
} |
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
func unregisterForNotificationsForApp(){ | |
let application = UIApplication.sharedApplication() | |
application.unregisterForRemoteNotifications() | |
NSUserDefaults.standardUserDefaults().setBool(false, forKey: "pushPermissions") | |
} | |
func registerForNotificationsForApp(){ | |
let userNotificationTypes = (UIUserNotificationType.Alert | | |
UIUserNotificationType.Badge | | |
UIUserNotificationType.Sound); |
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
let connectionProperties = ConnectionProperties(host: "localhost", port: 5984, secured: false) | |
let client = CouchDBClient(connectionProperties: connectionProperties) | |
let database = client.database("test") | |
func test() { | |
let dict = ["key":"value"] | |
let json = JSON(dict) | |
database.create(json) { id, revision, doc, error in | |
if let id = id { | |
database.retrieve(id) { doc, error in |
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
func loginButton(_ loginButton: FBSDKLoginButton!, didCompleteWith result: FBSDKLoginManagerLoginResult!, error: Error!) { | |
if let error = error { | |
print(error.localizedDescription) | |
return | |
} | |
if !result.isCancelled { | |
let credential = FIRFacebookAuthProvider.credential(withAccessToken: FBSDKAccessToken.current().tokenString) | |
FIRAuth.auth()?.signIn(with: credential) { (user, error) in | |
if let error = error { |
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
final class MessageFilterExtension: ILMessageFilterExtension { | |
var words:[Item] = [] | |
let stack = CoreDataStack() | |
func loadItems() { | |
let context = stack.persistentContainer.viewContext | |
let itemDAO = ItemDAO(managedObjectContext: context) | |
let allItems = itemDAO.fetchItmes() | |
self.words = allItems.flatMap({ item in | |
return item.value != nil ? item : nil |
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
class PersonCell: UICollectionViewCell { | |
@IBOutlet weak var firstLabel: UILabel! | |
@IBOutlet weak var secondLabel: UILabel! | |
} | |
struct Person { | |
let firstName: String | |
let lastName: String | |
} |
I hereby claim:
- I am lucianboboc on github.
- I am lucianboboc (https://keybase.io/lucianboboc) on keybase.
- I have a public key ASDeoz3SvKNaOUzUThpZWs6B-11PsRXXePnxFjVN8KSYhQo
To claim this, I am signing this object: