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
| # [<tag>] (If applied, this commit will...) <subject> (Max 72 char) | |
| # |<---- Preferably using up to 50 chars --->|<------------------->| | |
| # Example: | |
| # [feat] Implement automated commit messages | |
| # (Optional) Explain why this change is being made | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # (Optional) Provide links or keys to any relevant tickets, articles or other resources | |
| # Example: Resolves #23 |
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
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <h1>Sawo</h1> | |
| <source> | |
| <div id="sawo-container" style="height: 300px; width: 300px;"></div> |
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
| ls >> /golem/resource/extracted/files.txt | |
| Tapioca MulScale "/golem/resource/extracted/IMG_[0-9]{4}.tif" 300 -1 ExpTxt=1 | |
| Apero /golem/resource/extracted/Apero-5.xml | |
| MICMAC /golem/resource/extracted/Param-6-Ter.xml |
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
| # Update packages | |
| sudo apt update && sudo apt upgrade -y | |
| # Install nodejs | |
| curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - | |
| sudo apt install build-essential nodejs | |
| PATH="$PATH" | |
| # Install NEAR CLI | |
| sudo npm i -g near-cli |
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
| # Install build dependencies and Rust | |
| sudo apt install clang build-essential make | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
| # clone latest version of Nearcore | |
| git clone https://github.com/near/nearcore | |
| cd nearcore | |
| git fetch origin --tags | |
| git checkout 8448ad1eb |
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
| /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio | |
| /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may | |
| /// ever return. | |
| /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96 | |
| /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio | |
| function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) { | |
| // second inequality must be < because the price can never reach the price at the max tick | |
| require(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO, 'R'); | |
| uint256 ratio = uint256(sqrtPriceX96) << 32; |
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.9; | |
| import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; | |
| library MerkleLog { | |
| // The merkle root of log values from 0.100 to 9.999 in X64 format | |
| bytes32 constant root = 0x998add033af31411c96b8272b055b95b55d92f349c84111d5fac9e2cfcad7589; | |
| function log10 ( |
OlderNewer