This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| ; Map Left Windows key (E0 5B) to F13 (0064) | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
| "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,64,00,5b,e0,00,00,00,00 |
This file contains hidden or 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
| public struct Tuple<each T> { | |
| public private(set) var value: (repeat each T) | |
| public init(_ value: repeat each T) { self.value = (repeat each value) } | |
| } | |
| extension Tuple { | |
| public func map<each U>( | |
| _ transform: (repeat each T) throws -> (repeat each U) | |
| ) rethrows -> (repeat each U) { |
This file contains hidden or 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 Darwin | |
| import Foundation | |
| import UIKit | |
| // https://github.com/xybp888/iOS-SDKs/blob/master/iPhoneOS17.1.sdk/System/Library/PrivateFrameworks/CoreSVG.framework/CoreSVG.tbd | |
| // https://developer.limneos.net/index.php?ios=17.1&framework=UIKitCore.framework&header=UIImage.h | |
| @objc | |
| class CGSVGDocument: NSObject { } |
This file contains hidden or 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
| /// This is a list of Hypertext Transfer Protocol (HTTP) response status codes. | |
| /// It includes codes from IETF internet standards, other IETF RFCs, other specifications, and some additional commonly used codes. | |
| /// The first digit of the status code specifies one of five classes of response; an HTTP client must recognise these five classes at a minimum. | |
| enum HTTPStatusCode: Int, Error { | |
| /// The response class representation of status codes, these get grouped by their first digit. | |
| enum ResponseType { | |
| /// - informational: This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. | |
| case informational |
This file contains hidden or 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 Combine | |
| import Foundation | |
| extension Publisher { | |
| public func retry<S: Scheduler>( | |
| _ max: Int = Int.max, | |
| delay: Publishers.RetryDelay<Self, S>.TimingFunction, | |
| scheduler: S | |
| ) -> Publishers.RetryDelay<Self, S> { |
This file contains hidden or 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
| @propertyWrapper | |
| public struct Restorable<Value> { | |
| public var wrappedValue: Value | |
| public init(wrappedValue: Value, using undoManager: UndoManager = .init()) { | |
| self.wrappedValue = wrappedValue | |
| self.projectedValue = undoManager | |
| } |
This file contains hidden or 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 Foundation | |
| public final class URLDecoder: Decoder { | |
| public var codingPath: [CodingKey] = [] | |
| public var userInfo: [CodingUserInfoKey: Any] = [:] | |
| let parseParametersFromURL: (URL) throws -> [String: Any] | |
| public init<Output>(_ regex: Regex<Output>) { | |
| self.parseParametersFromURL = { url in |
This file contains hidden or 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
| @propertyWrapper | |
| public struct OnChangeObservable<Value: Equatable> { | |
| private var storage: Storage | |
| public var wrappedValue: Value { | |
| get { storage.value } | |
| set { storage.value = newValue } | |
| } | |
| public var projectedValue: OnChangeObservable<Value> { |
This file contains hidden or 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
| public let null = NSNull() as AnyHashable | |
| public enum JSONObject { | |
| case array([Any]) | |
| case dictionary([String: Any]) | |
| case fragment(Any) | |
| } | |
| extension JSONObject { | |
| @inlinable public static func with(_ data: Data, options: JSONSerialization.ReadingOptions = []) throws -> JSONObject { |
NewerOlder