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
Compiling 27 files with 0.8.15 | |
Solc 0.8.15 finished in 4.95s | |
Compiler run successful (with warnings) | |
warning[2072]: Warning: Unused local variable. | |
--> test/UmbraBatchSend.t.sol:162:5: | |
| | |
162 | uint256 totalToll = toll * sendEth.length + toll * sendToken.length; | |
| ^^^^^^^^^^^^^^^^^ | |
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
// Find the first ViewController of an arbitrary type anywhere in the hierarchy of a base ViewController | |
private func findParent<V: UIViewController>(ofViewController viewController: UIViewController?) -> V? { | |
if let typedViewController = viewController as? V { | |
return typedViewController | |
} | |
guard let parentViewController = viewController?.parentViewController else { | |
return nil | |
} |
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 | |
struct Regex { | |
var pattern: String { | |
didSet { | |
updateRegex() | |
} | |
} | |
var expressionOptions: NSRegularExpressionOptions { | |
didSet { |
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
; A work in progress: a clojure noob works through 4clojure.com problems. | |
; Solutions here are by NO MEANS the best way to do these problems. | |
; Learning as I go here! | |
; #1 | |
true | |
; #2 | |
4 |
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
; In Clojure for the Brave and True (braveclojuure.com), | |
; at the end of the chapter "Core Functions in Depth", the author | |
; prevents several challanges to build on top of some sample code | |
; he has provided | |
; This code is provided by the author: | |
;; In ns below, notice that "gen-class" was removed | |
(ns fwpd.core | |
;; We haven't gone over require but we will. |