See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
import UIKit | |
import MobileCoreServices | |
let image = UIImage() // your actual image | |
let itemProvider = NSItemProvider() | |
itemProvider.registerDataRepresentation(forTypeIdentifier: kUTTypeJPEG as String, visibility: .all) { (completionBlock) -> Progress? in | |
let unitsOfWork = 10 + Int64(arc4random_uniform(UInt32(10))) // 10 - 19 units | |
let progress = Progress.discreteProgress(totalUnitCount: unitsOfWork) |
version: 2.1 | |
commands: | |
setup-sccache: | |
steps: | |
- run: | |
name: Install sccache | |
command: | | |
cargo install sccache | |
# This configures Rust to use sccache. | |
echo 'export "RUSTC_WRAPPER"="sccache"' >> $BASH_ENV |