Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"log"
"os"
"strconv"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus/ethash"
#!/usr/bin/env python3
import csv, sys, sqlite3, datetime
csv_path = sys.argv[1]
sqlite_path = sys.argv[2]
with open(csv_path) as csvfile:
conn = sqlite3.connect(sqlite_path)
reader = csv.reader(csvfile, delimiter=',')
# Skip 1st line
#!/usr/bin/env python
import matplotlib.pyplot as plt
import sys
import pandas as pd
df = pd.read_csv(sys.argv[1])
df["Date"] = df["Date"].astype("datetime64")
data = df.groupby(pd.Grouper(key='Date', freq='D'))['Value'].sum()
plt.title(sys.argv[1])
print(data.mean())
#!/usr/bin/env python
# Plot rewards from subscan.io
import matplotlib.pyplot as plt
import sys
import pandas as pd
df = pd.read_csv(sys.argv[1])
df["Date"] = df["Date"].astype("datetime64")
data = df.groupby(pd.Grouper(key='Date', freq='D'))['Value'].sum()
print(data.mean())
@enriquefynn
enriquefynn / attestation.txt
Created March 30, 2021 22:32
ZKOPRU trusted setup attestation
I contributed to the ZKOPRU Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: zk_transaction_1_2
Contributor # 223
Hash: b4c0971f 62a9c2aa 4cc13459 430a65e1
7fbf067e f5b19aa7 25031967 418ad3a3
26b25bc2 e1b993db 9fa9b8d5 70dcc595
c4f541be e7b7d022 8fa5ea65 2d1a8d51
package main
import (
"encoding/binary"
"errors"
"fmt"
"github.com/sirupsen/logrus"
"github.com/tendermint/iavl"
dbm "github.com/tendermint/tm-db"
{
"API": {
"HTTPHeaders": null
},
"Addresses": {
"API": "/ip4/127.0.0.1/tcp/5001",
"Announce": null,
"Gateway": "/ip4/127.0.0.1/tcp/8080",
"NoAnnounce": null,
"Swarm": [
const fs = require('fs');
const solc = require('solc')
const Web3 = require('web3');
const web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
const address = web3.eth.accounts[0];
const code = fs.readFileSync('Voting.sol').toString()
#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
int main() {
long long n, x, v[1000000];
unsigned long long cnt = 0;
cin >> n >> x;
for (int i = 0; i < n; ++i)

Keybase proof

I hereby claim:

  • I am enriquefynn on github.
  • I am efynn (https://keybase.io/efynn) on keybase.
  • I have a public key whose fingerprint is C819 530F 771A 6978 FFC3 B092 50A2 3814 D8B3 FC8E

To claim this, I am signing this object: