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
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"strconv" | |
"github.com/ethereum/go-ethereum/common" | |
"github.com/ethereum/go-ethereum/consensus/ethash" |
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 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 |
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 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()) |
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 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()) |
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
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 | |
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
package main | |
import ( | |
"encoding/binary" | |
"errors" | |
"fmt" | |
"github.com/sirupsen/logrus" | |
"github.com/tendermint/iavl" | |
dbm "github.com/tendermint/tm-db" |
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 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() |
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
diff --git a/net-im/skype4/Makefile b/net-im/skype4/Makefile | |
index b6f468a..67d88d2 100644 | |
--- a/net-im/skype4/Makefile | |
+++ b/net-im/skype4/Makefile | |
@@ -2,7 +2,7 @@ | |
# $FreeBSD: head/net-im/skype/Makefile 327756 2013-09-20 22:13:34Z bapt $ | |
PORTNAME= skype | |
-PORTVERSION= 4.2.0.13 | |
+PORTVERSION= 4.3.0.37 |
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
{ | |
"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": [ |
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
#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) |
NewerOlder