Removing the cache:
git rm -r --cached .
Adding files:
git add .
Commiting changes:
| // | |
| // RecordAudio.swift | |
| // | |
| // This is a Swift 3.0 class | |
| // that uses the iOS RemoteIO Audio Unit | |
| // to record audio input samples, | |
| // (should be instantiated as a singleton object.) | |
| // | |
| // Created by Ronald Nicholson on 10/21/16. Updated 2017Feb07 | |
| // Copyright © 2017 HotPaw Productions. All rights reserved. |
| @available(iOS 5.0, *) | |
| open class UIStoryboard : NSObject { | |
| public /*not inherited*/ init(name: String, bundle storyboardBundleOrNil: Bundle?) | |
| open func instantiateInitialViewController() -> UIViewController? | |
| open func instantiateViewController(withIdentifier identifier: String) -> UIViewController | |
| } |
| #!/bin/bash | |
| update="update" | |
| bootstrap="bootstrap" | |
| expectation_message="EXPECTED: [ $update | $bootstrap ]" | |
| if [ $# -eq 0 ]; then | |
| echo "ERROR: No argument supplied." | |
| echo $expectation_message |
Removing the cache:
git rm -r --cached .
Adding files:
git add .
Commiting changes:
Extension:
extension URL: ExpressibleByStringLiteral {
public init(stringLiteral value: StaticString) {
guard let url = URL(string: "\(value)") else {
fatalError("Invalid URL string literal: \(value)")
}
self = url
}
| public extension Equatable { | |
| func isAny(of candidates: Self...) -> Bool { | |
| return candidates.contains(self) | |
| } | |
| } |
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'killall Dock| extension CGSize { | |
| func widthScaling(with value: CGFloat) -> CGSize { | |
| return CGSize(width: value, height: (value * height) / width) | |
| } | |
| func heightScaling(with value: CGFloat) -> CGSize { | |
| return CGSize(width: (value * width) / height, height: value) | |
| } | |
| } |
| import Foundation | |
| public enum ResultType<Value> { | |
| case success(Value) | |
| case failure(Swift.Error) | |
| } | |
| extension ResultType { | |
| public init(value: () throws -> Value) { | |
| do { |