Extensions to make Realm even simpler.
RLMRealm.transaction { realm in
let person = Person()
person.name = "Banana King"
person.age = 24
}
javascript:window.location = "https://github.com/" + window.location.host.split('.')[0] + window.location.pathname |
# Acts like `docker` | |
# No arguments: `docker status` | |
# Ensures docker env is setup | |
# Starts docker-machine if necessary | |
d() { | |
if [ -z "$DOCKER_HOST" ]; | |
then $(docker-machine env) | |
fi | |
if [[ $# > 0 ]]; then |
// | |
// NSUserDefaultsExtension.swift | |
// | |
// Created by Chris Sloey on 24/02/2015. | |
// Copyright (c) 2015 Add Jam. All rights reserved. | |
// | |
import Foundation | |
extension NSUserDefaults { |
I hereby claim:
To claim this, I am signing this object: