(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| COPIED FROM https://build.opensuse.org/package/view_file/games/stockfish/stockfish-interface.txt?expand=1 | |
| Description of the universal chess interface (UCI) April 2006 | |
| ================================================================= | |
| * The specification is independent of the operating system. For Windows, | |
| the engine is a normal exe file, either a console or "real" windows application. | |
| * all communication is done via standard input and output with text commands, |
| import RealmSwift | |
| import Realm | |
| protocol CascadeDeleting: class { | |
| func delete<Entity>(_ list: List<Entity>, cascading: Bool) | |
| func delete<Entity>(_ results: Results<Entity>, cascading: Bool) | |
| func delete<Entity: Object>(_ entity: Entity, cascading: Bool) | |
| } |
| // Create an `Observable` of Optional<Int> | |
| let values: Observable<Int?> = [1, 2, .None, 3, .None, 4, 5].toObservable() | |
| // Method 1: using a free function | |
| // Requires passing the function to `flatMap` | |
| func ignoreNil<A>(x: A?) -> Observable<A> { | |
| return x.map { Observable.just($0) } ?? Observable.empty() | |
| } |
| import UIKit | |
| import RxSwift | |
| import RxCocoa | |
| let requiredUserNameLength = 5 | |
| let requiredPasswordLength = 5 | |
| let limitUserNameLength = 20 | |
| class ValidationViewController: UIViewController { |
| Basically, UIPasteBoard allows us to share data to other application. Below is an example of UIpasteBoard usage. | |
| COPY | |
| UIPasteboard *appPasteBoard = [UIPasteboard generalPasteboard]; | |
| appPasteBoard.persistent = YES; | |
| [appPasteBoard setString:@"STRING TO COPY"]; | |
| PASTE |