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
<?php | |
function display_dynamic_pricing_table(){ | |
global $post; | |
# see line 42 of woocommerce_pricing_by_product.class.php | |
$pricing_rule_sets = get_option('_a_category_pricing_rules', array()); | |
$found = false; | |
if(count($pricing_rule_sets)){ | |
global $woocommerce_pricing; | |
foreach ($pricing_rule_sets as $pricing_rule_set) { |
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
// | |
// SCNVector3+MathUtils.swift | |
// | |
// Created by Jeremy Conkin on 4/26/16. | |
// | |
import SceneKit | |
/** | |
Add two vectors |
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 Foundation | |
import Combine | |
/// Run a block in the background with a delay and make it cancellable. | |
/// - Parameters: | |
/// - delay: Delay in milliseconds before the background work starts | |
/// - queue: Background queue to use | |
/// - worker: Worker block to execute on queue | |
/// - completion: Completion handler executed on main thread. | |
/// - Returns: AnyCancellable token |
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
struct ToggledExampleView_Previews: PreviewProvider { | |
static var previews: some View { | |
DebuggingToggledExampleView() | |
} | |
} | |
// MARK: - Toggled Source | |
protocol ToggleInterface { | |
associatedtype ValueType |
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 Foundation | |
public struct MockFunc<Input, Output> { | |
public var parameters: [Input] = [] | |
public var result: (Input) -> Output = { _ in fatalError() } | |
public init() {} | |
public init(result: @escaping (Input) -> Output) { | |
self.result = result |
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
# you can even provide different app identifiers, Apple IDs and team names per lane: | |
# More information: https://github.com/fastlane/fastlane/blob/master/docs/Appfile.md | |
app_identifier ENV["APP_IDENTIFIER"] # The bundle identifier of your app | |
# You will have to set APP_IDENTIFIER into your .env files | |
apple_id ENV["APPLE_ID"] # Your Apple email address | |
team_id ENV["TEAM_ID"] # Developer Portal Team ID |
- https://www.joelonsoftware.com/2000/10/15/painless-functional-specifications-part-4-tips/
- https://medium.com/machine-words/writing-technical-design-docs-71f446e42f2e
- https://codeburst.io/on-writing-tech-specs-6404c9791159
- https://docs.google.com/document/d/1m9VGy8y3b64DBIfcp56TsMKhr8WpX47CWGyR3YQep-4/edit
- https://eng.lyft.com/awesome-tech-specs-86eea8e45bb9
- https://www.industrialempathy.com/posts/design-docs-at-google/
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 Foundation | |
import RxSwift | |
extension HttpService: ReactiveCompatible { } | |
extension Reactive where Base: HttpServiceType { | |
func request(_ endpoint: Base.Target) -> Single<Data> { | |
return Single<Data>.create(subscribe: { [weak base] single in | |
let task = base?.request(endpoint, responseData: { result in |
OlderNewer