Skip to content

Instantly share code, notes, and snippets.

View quocble's full-sized avatar

quocble quocble

  • Cryptoland, Moon
View GitHub Profile
# PATCH in brownie/network/contract.py
while True:
response = requests.get(url, params=params_tx, headers=REQUEST_HEADERS)
if response.status_code != 200:
raise ConnectionError(
f"Status {response.status_code} when querying {url}: {response.text}"
)
data = response.json()
break
[{
"chainId": 1666700000,
"address": "0xc555b5c6743512d39c3637c31747fe8bcdc46b6e",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/sushiswap/icons/master/token/usdc.jpg"
},
{
"name": "Wrapped ONE",
[{
"chainId": 1666700000,
"address": "0xc555b5c6743512d39c3637c31747fe8bcdc46b6e",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/sushiswap/icons/master/token/usdc.jpg"
}]
[2021-08-23T08:22:33.706317987Z WARN solana_core::replay_stage] PARTITION DETECTED waiting to join heaviest fork: 90721717 last vote: 90721712, reset slot: 90721713
[2021-08-23T08:22:34.658513717Z WARN solana_core::replay_stage] PARTITION resolved heaviest fork: 90721715 last vote: 90721715, reset slot: 90721715
[2021-08-23T08:22:35.384540577Z WARN solana_metrics::metrics] submit error: error sending request for url (https://metrics.solana.com:8086/write?db=tds&u=testnet_write&p=c4fa841aa918bf8274e3e2a44d77568d9861b3ea&precision=ms): opera
tion timed out
[2021-08-23T08:22:45.413231060Z WARN solana_metrics::metrics] submit error: error sending request for url (https://metrics.solana.com:8086/write?db=tds&u=testnet_write&p=c4fa841aa918bf8274e3e2a44d77568d9861b3ea&precision=ms): opera
tion timed out
[2021-08-23T08:23:35.460258966Z WARN solana_metrics::metrics] submit error: error sending request for url (https://metrics.solana.com:8086/write?db=tds&u=testnet_write&p=c4fa841aa918bf8274e3e2a44d77568d9861b3ea&
PART ONE AND PART TWO HAS BEEN MERGED. WILL CONTINUALLY REPOST THIS EVERY COUPLE DAYS WITH ADDED STORIES AS WE ALL KNOW THERE WILL BE MORE STORIES
400 duplicate ballots sent to local voters in Richmond
https://richmond.com/news/state-and-regional/govt-and-politics/roughly-400-local-voters-receive-two-ballots-officials-say-errors-wont-lead-to-double-votes/article_934f11bf-8825-5f2f-8391-8cdbe707cd7a.html
Duplicate ballots sent to "some" in North Carolina
https://www.wxii12.com/article/duplicate-ballots-sent-to-some-north-carolina-voters/34056922
/**
* rijndael-alg-fst.c
*
* @version 3.0 (December 2000)
*
* Optimised ANSI C code for the Rijndael cipher (now AES)
*
* @author Vincent Rijmen <[email protected]>
* @author Antoon Bosselaers <[email protected]>
* @author Paulo Barreto <[email protected]>
/* rng_es
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
This file has been truncated, but you can view the full file.
#==================================================================
# generator hmac512 seed = 1
#==================================================================
type: d
count: 400000
numbit: 32
703149
823848
202168
277641
const serverHash = "d280d20edc8da0944f9893fe4e8e3b2010d197ef19f83856ebdd930866d54d04";
const clientSeed = "732d81dc27d5fa9d";
var nonce = 3000;
const roll_prime_dice = function (key, text) {
// create HMAC using server seed as key and client seed as message
const hash = crypto
.createHmac('sha512', key)
.update(text)
@quocble
quocble / aggregate_prices.sql
Created October 22, 2018 22:49
QUANTA: aggregate_prices
# --- !Ups
CREATE FUNCTION first_agg(anyelement, anyelement) RETURNS anyelement
LANGUAGE SQL IMMUTABLE STRICT
AS $_$ SELECT $1 $_$;