git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| import Foundation | |
| // MARK: - Comparable | |
| extension NSDecimalNumber: Comparable {} | |
| public func ==(lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool { | |
| return lhs.compare(rhs) == .OrderedSame | |
| } |
| import UIKit | |
| //It basically just gets image from assets, saves its data to disk and return file URL. | |
| class AssetExtractor { | |
| static func createLocalUrl(forImageNamed name: String) -> URL? { | |
| let fileManager = FileManager.default | |
| let cacheDirectory = fileManager.urls(for: .cachesDirectory, in: .userDomainMask)[0] | |
| let url = cacheDirectory.appendingPathComponent("\(name).png") |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: blue; icon-glyph: brain; | |
| let items = await loadItems() | |
| if (config.runsInWidget) { | |
| let widget = await createWidget(items) | |
| Script.setWidget(widget) | |
| } else if (config.runsWithSiri) { | |
| let firstItems = items.slice(0, 5) | |
| let table = createTable(firstItems) |
| description |
|---|
Mini Beast |
<tool_preambles>