git rebase origin/master- Review difference of local and remote branch:
git log HEAD..origin/master| #!/bin/sh | |
| # disable_ats_debug.sh | |
| INFO_PLIST="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
| PLISTBUDDY="/usr/libexec/PlistBuddy" | |
| if [ "${CONFIGURATION}" == "Debug" ]; then | |
| $PLISTBUDDY -c "Add :NSAppTransportSecurity dict" "${INFO_PLIST}" || true | |
| $PLISTBUDDY -c "Add :NSAppTransportSecurity:NSAllowsArbitraryLoads bool true" "${INFO_PLIST}" || true | |
| $PLISTBUDDY -c "Set :NSAppTransportSecurity:NSAllowsArbitraryLoads true" "${INFO_PLIST}" | 
| import UIKit | |
| extension UIView { | |
| var allSubviews: [UIView] { | |
| subviews + subviews.flatMap { $0.allSubviews } | |
| } | |
| func firstSubview<T: UIView>(of type: T.Type) -> T? { | |
| allSubviews.first { $0 is T } as? T | 
| /// Observes a run loop to detect any stalling or blocking that occurs. | |
| /// | |
| /// This class is thread-safe. | |
| @interface GHRunLoopWatchdog : NSObject | |
| /// Initializes the receiver to watch the specified run loop, using a default | |
| /// stalling threshold. | |
| - (id)initWithRunLoop:(CFRunLoopRef)runLoop; | |
| /// Initializes the receiver to detect when the specified run loop blocks for | 
| protocol Buildable {} | |
| extension Buildable { | |
| func set<T>(_ keyPath: WritableKeyPath<Self, T>, to newValue: T) -> Self { | |
| var copy = self | |
| copy[keyPath: keyPath] = newValue | |
| return copy | |
| } | |
| } | 
| struct Edge { | |
| var u: Int | |
| var v: Int | |
| var weight: Int | |
| func other(_ vertex: Int) -> Int { | |
| return vertex == u ? v : u | |
| } | |
| } | 
| class UnionFind { | |
| private var id: [Int] | |
| private var sizes: [Int] | |
| private(set) var components: Int | |
| init(_ N: Int) { | |
| id = (0..<N).map { $0 } | |
| sizes = Array(repeating: 1, count: N) | |
| components = N | |
| } | 
| [ | |
| { | |
| "currencyCode": "AUD", | |
| "country": "Australia", | |
| "currencyName": "Australian Dollar", | |
| "countryCode": "AU" | |
| }, | |
| { | |
| "currencyCode": "BGN", | |
| "country": "Bulgaria", | 
| import Foundation | |
| import UIKit | |
| struct ViewStyle<T> { | |
| let style: (T) -> Void | |
| } | |
| let filled = ViewStyle<UIButton> { | |
| $0.setTitleColor(.white, for: .normal) | |
| $0.backgroundColor = .red | 
| import UIKit | |
| /// Represents a single `NSLayoutConstraint` | |
| enum LayoutAnchor { | |
| case constant(attribute: NSLayoutConstraint.Attribute, | |
| relation: NSLayoutConstraint.Relation, | |
| constant: CGFloat) | |
| case relative(attribute: NSLayoutConstraint.Attribute, | |
| relation: NSLayoutConstraint.Relation, | 
git rebase origin/mastergit log HEAD..origin/master