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
import Foundation | |
class AsyncOperation: Operation { | |
private var asyncOperationFinished: Bool | |
private var asyncOperationExecuting: Bool | |
override init() { | |
self.asyncOperationFinished = false | |
self.asyncOperationExecuting = false |
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
/* 1. Store this in ~Library/Application Support/BBEdit/Preview CSS/redmine.css */ | |
/* 2. Open a textile-file */ | |
/* 3. Ctrl+CMD+P */ | |
/* 4. Select redmine.css in Preview as CSS */ | |
/* 5. There's no 5. */ | |
body { | |
font-family: Verdana, sans-serif; | |
color: #333; | |
font-size: 12px; |
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
import UIKit | |
class TableViewController: UITableViewController { | |
var elements : [String] = ["A", "B", "C"] | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
NotificationCenter.default.addObserver(self, selector: #selector(TableViewController.showAlert(_:)), name:NSNotification.Name(rawValue: "showAlert"), object: nil) | |
} |