Skip to content

Instantly share code, notes, and snippets.

View pavlovdog's full-sized avatar
🎯
Focusing

Sergey Potekhin pavlovdog

🎯
Focusing
View GitHub Profile
import axios from "axios";
import { cleanEnv, num, str } from "envalid";
import { mnemonicToAccount } from 'viem/accounts';
const env = cleanEnv(process.env, {
FID: num(),
MNEMONIC: str(),
NEYNAR_API_KEY: str(),
});
bash-3.2$ cat logs/client-0-0.log
2023-06-18T11:20:44.800795Z INFO narwhal_benchmark_client: Node address: http://127.0.0.1:3009/
2023-06-18T11:20:44.800884Z INFO narwhal_benchmark_client: Transactions size: 512 B
2023-06-18T11:20:44.800898Z INFO narwhal_benchmark_client: Transactions rate: 12500 tx/s
2023-06-18T11:20:44.80091Z INFO narwhal_benchmark_client: Waiting for all nodes to be online...
2023-06-18T11:20:44.802183Z INFO narwhal_benchmark_client: Start sending transactions
2023-06-18T11:20:44.803702Z INFO narwhal_benchmark_client: Sending sample transaction 0
@pavlovdog
pavlovdog / LINKS.md
Last active June 20, 2023 11:21
DAG BFT related links
pragma ton-solidity ^0.57.1;
pragma AbiHeader expire;
pragma AbiHeader pubkey;
interface ISample {
function ping(address recipient) external;
function pong() external;
event Ping(address recipient);
@pavlovdog
pavlovdog / Standard.sol
Created January 24, 2022 12:25
TIP3.1, TIP5.1 - function IDs and interface IDs
pragma ton-solidity >= 0.39.0;
pragma AbiHeader expire;
interface TIP3 {
function acceptBurn(uint128 _value) external;
function acceptTransfer(uint128 _value) external;
function acceptMint(uint128 _value) external;
}
interface TIP3TokenRoot {

Keybase proof

I hereby claim:

  • I am pavlovdog on github.
  • I am pavlovdog (https://keybase.io/pavlovdog) on keybase.
  • I have a public key whose fingerprint is DD15 10FD 8FE5 5A65 B3FF 053D CA20 62A5 A9F0 D8CB

To claim this, I am signing this object:

@pavlovdog
pavlovdog / HsyV-0.py
Created May 11, 2017 13:51
null created by pavlovdog1 - https://repl.it/HsyV/0
from collections import defaultdict
number_nodes, number_edges = map(int, input().split())
# Store input data
graph = {}
for i in range(number_edges):
edge_from, edge_to = map(int, input().split())
graph[edge_from] = graph.get(edge_from, [])
graph[edge_from].append(edge_to)
<span>{{ _('Stats') }}</span>
<span>$ _('Contact') $</span>
class CustomFlask(Flask):
jinja_options = Flask.jinja_options.copy()
jinja_options.update(dict(
block_start_string='$$',
block_end_string='$$',
variable_start_string='$',
variable_end_string='$',
comment_start_string='$#',
comment_end_string='#$',
))
<!DOCTYPE html>
<html lang="en">
<head>
<title>Vue</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Raleway:400,300,600">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="http://getskeleton.com/dist/css/normalize.css">
<link rel="stylesheet" type="text/css" href="http://getskeleton.com/dist/css/skeleton.css">