Skip to content

Instantly share code, notes, and snippets.

View isaldin's full-sized avatar
Working from home


Working from home
View GitHub Profile
nakiostudio / UpdateRealmObject.swift
Last active June 25, 2019 14:04
Make RealmSwift write and update an Object keeping the existing relationships
Writes a set of objects in the database.
- parameter objects: Array of `Objects` to be stored on the database
- parameter configuration: Realm `Configuration` in which the write action will be performed
- parameter update: Enabled the custom *update* maintaining existing relationships
static func write(objects : [Object], configuration: Realm.Configuration, update: Bool = false) {
if let realm = try? Realm(configuration: configuration) {
jfmengels /
Last active February 6, 2024 20:57
Generated docs for Lodash/fp. Help make them better at
// UIButtonBox.h
// Created by Jose Antonio Lopez on 28/11/13.
// Copyright (c) 2014 Asenit Technologies SL. All rights reserved.
#import <UIKit/UIKit.h>
@interface UIButtonBox : UIButton
jchudzynski / KVOOperationQueue.m
Last active October 24, 2016 18:17
KVO of NSOperationQueue
@interface KVOOperationQueue()
@property(nonatomic, strong) NSOperationQueue *queue;
@implementation KVOOperationQueue
self = [super init];
filePath = filename;