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
# https://zsh.sourceforge.io/Doc/Release/Options.html | |
# https://postgresqlstan.github.io/cli/zsh-history-options | |
# https://unix.stackexchange.com/questions/273861/unlimited-history-in-zsh | |
setopt EXTENDED_HISTORY # include timestamp | |
setopt BANG_HIST # Treat the '!' character specially during expansion. | |
setopt HIST_BEEP # beep if attempting to access a history entry which isn’t there | |
setopt HIST_FIND_NO_DUPS # do not display previously found command | |
setopt HIST_IGNORE_DUPS # do not save duplicate of prior command | |
setopt HIST_NO_STORE # do not save history commands |
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
############################################## | |
# aliasrc - Directory-specific command aliases | |
# | |
# This plugin enables directory-specific command aliases by looking | |
# for executable files in a .aliasrc directory in the current directory | |
# or any parent directory. When found, commands that match executable | |
# names in that directory will be replaced with the path to the executable. | |
############################################## | |
# Load required zsh modules |
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 extension Result { | |
// Extract the value if it's a success | |
var value: Success? { | |
switch self { | |
case let .success(value): | |
return value | |
case .failure: | |
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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.8.15; | |
import "forge-std/Script.sol"; | |
import "forge-std/Test.sol"; | |
function checkSameSign1(int256 a, int256 b) pure returns (bool sameSign) { | |
uint256 sa; | |
uint256 sb; |
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
pragma solidity 0.8.12; | |
// contains refs to hardhat console.sol and DSTest.sol contract | |
import '../utils/forge.sol'; | |
contract test is t { | |
struct Test { | |
uint256 a; | |
uint256 b; |