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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: cyan; icon-glyph: wallet; | |
// Card Number | |
const prizeCardAmount = (await prizeCard("1234567890123456")).amount | |
// Username, Password, Date | |
const daCardAmount = (await daCard("username", "password", "31081980")) |
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 Cocoa | |
@propertyWrapper | |
struct Clapping<Value: Comparable> { | |
var value: Value | |
let range: ClosedRange<Value> | |
init(wrappedValue: Value, _ range: ClosedRange<Value>) { | |
precondition(range.contains(wrappedValue)) |
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 Cocoa | |
indirect enum BinaryTree<T> { | |
case node(BinaryTree, T, BinaryTree) | |
case empty | |
} | |
extension BinaryTree { | |
static func leaf(_ value: T) -> BinaryTree { |