I hereby claim:
- I am gatada on github.
- I am johanhwb (https://keybase.io/johanhwb) on keybase.
- I have a public key ASCacjLLyHyxKcFR8KEAMqLOq_Z7KNFKf7RUf_o9lSRcFwo
To claim this, I am signing this object:
@tool | |
extends Control | |
## Highlight Label Tool | |
## | |
## A simple node with a highlight state. Highlighting the node will change the background color. | |
## The highlight state will reset after `state_duration` seconds (to ensure the highlight is seen). | |
## | |
## The scene consists of: | |
## |
import Foundation | |
class Weak<T: AnyObject> { | |
weak var value: T? | |
init (value: T) { | |
self.value = value | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
import UIKit | |
public extension UIColor { | |
/// Initialize a color from a hex value. Optionally include an alpha value (default is 1). | |
/// | |
/// - Parameters: | |
/// - hex: The integer that will be resolved to the red, green and blue component. | |
/// - alpha: The alpha value of the color. | |
public convenience init?(hex: UInt, alpha: CGFloat = 1) { |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
public enum Shared { | |
static public var Heartbeat = HeartbeatManager() | |
} | |
} | |
public class HeartbeatManager { |
import UIKit | |
import PlaygroundSupport | |
/// Prints the `items` with an optional separator and terminator. | |
/// The benefit of this approach is that all calls will be entirely removed during compiler optimization for release builds. | |
/// Additionally you can provide an optional closure to perform text processing. The processed string gets printed either before or immediately after `message` depending on the returned boolean. | |
/// | |
/// - Parameters: | |
/// - items: Zero or more items to print. | |
/// - separator: An optional string to print between each item; default is a single whitespace. |
import UIKit | |
import PlaygroundSupport | |
class SingleInstance { | |
#if TESTING | |
open static var shared = SingleInstance() | |
static func reset() { | |
SingleInstance.shared = SingleInstance() | |
} |