rocketVault
rocketAuctionManager
rocketDepositPool
rocketMinipoolDelegate
rocketMinipoolManager
rocketMinipoolQueue
rocketMinipoolStatus
rocketMinipoolPenalty
rocketNetworkBalances
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
#!/usr/bin/env node | |
/* | |
Test (1) r/s/v: | |
> node ecrecover.js \ | |
0xb9cbc613e7154b248b1fb1cfd190e173c6d4e8e7bd89b754debe1322f9a4a15c \ | |
0xa58c6ba0acb8005d0e3510396951a7949707428d7db97be8dc114af58a06140f \ | |
0x0fe3e42fed1daabef16b2a9f3da5d36538898c8a9f491b48b4cef9ee731ff2f3 \ |
Go here https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v3
and enter
{
pool(id: "0xf56d08221b5942c428acc5de8f78489a97fc5599") {
tick
token0 {
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
#!/usr/bin/env bash | |
{ # Prevent execution if this script was only partially downloaded | |
set -e | |
tmpfile=$(mktemp) | |
trap 'rm $tmpfile' EXIT | |
cat > "$tmpfile" <<'EOF' | |
GREEN='\033[0;32m' |
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
contract Converter { | |
function u256a_tobytes(uint256[] memory arr) public pure returns (bytes memory) { | |
bytes memory b = new bytes(arr.length*32); | |
for (uint256 i = 0; i < arr.length; i++) { | |
uint256 x = arr[i]; | |
uint256 j = 32+(i*32); | |
assembly { | |
mstore(add(b, j), x) | |
} | |
} |
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
const Web3 = require('web3') | |
var utils = require('ethereumjs-util'); | |
const provider = new Web3.providers.HttpProvider('http://localhost:8545') | |
const web3 = new Web3(provider) | |
const dorecover = async function(){ | |
// Recover using account from ganache-cli | |
var accounts = await web3.eth.getAccounts() | |
let msg = 'I shill your promotion' |
I hereby claim:
- I am jar-o on github.
- I am jrobson (https://keybase.io/jrobson) on keybase.
- I have a public key ASCKhgdIGGhBtrQPu4hdVvIjmqQSGNm_xKbJRAxprxT7Rgo
To claim this, I am signing this object:
This file has been truncated, but you can view the full file.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf8" /> | |
<title>ReDoc documentation</title> | |
<!-- needed for adaptive design --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { |
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
/* | |
# This werks in OSX ... need to build the C deps locally, then run your go app | |
# with the appropriate CGO* flags. | |
http://www.imagemagick.org/download/releases/ImageMagick-7.0.6-10.tar.xz | |
tar xvzf ImageMagick-7.0.6-10.tar.xz | |
cd ImageMagick-7.0.6-10 | |
mkdir dist | |
export CGO_IMAGEMAGICK_PREFIX=`pwd`/dist |
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
###### For submission to https://leetcode.com/problems/maximal-square/ | |
class Solution(object): | |
def maximalSquare(self, matrix): | |
# handle 0 and 1 dimensional arrays | |
if len(matrix) == 0: return 0 | |
if len(matrix) == 1: | |
for i in range(len(matrix[0])): | |
if matrix[0][i] == '1': return 1 |
NewerOlder