- Browser
- Proxy
- Gateway
TODO Difference between proxy and gateway caches.
| import UIKit | |
| public extension UITableView { | |
| public func beginRefreshing() { | |
| // Make sure that a refresh control to be shown was actually set on the view | |
| // controller and the it is not already animating. Otherwise there's nothing | |
| // to refresh. | |
| guard let refreshControl = refreshControl, !refreshControl.isRefreshing else { | |
| return |
| const Web3 = require('web3') | |
| const Tx = require('ethereumjs-tx').Transaction | |
| // connect to Infura node | |
| const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/INFURA_KEY')) | |
| // the address that will send the test transaction | |
| const addressFrom = '0x1889EF49cDBaad420EB4D6f04066CA4093088Bbd' | |
| const privateKey = new Buffer('PRIVATE_KEY', 'hex') |
| // | |
| // URLRequest.swift | |
| // | |
| // Created by Peter Prokop on 17/08/2017. | |
| import Foundation | |
| public extension URLRequest { | |
| /// Returns a cURL command for a request |
| import UIKit | |
| #if canImport(SwiftUI) && DEBUG | |
| import SwiftUI | |
| struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable { | |
| let viewController: ViewController | |
| init(_ builder: @escaping () -> ViewController) { | |
| viewController = builder() | |
| } |
| protocol Initializable { | |
| init() | |
| } | |
| class A : Initializable { | |
| var content:String | |
| required init() { | |
| content = "TestContent" | |
| } |