Skip to content

Instantly share code, notes, and snippets.

struct network
{
};
struct handshake
{
handshake(network& net)
: net(net)
{
}
# Libbitcoin Server configuration file
[log]
# The debug log file path, defaults to 'debug.log'.
debug_file = debug.log
# The error log file path, defaults to 'error.log'.
error_file = error.log
# The log archive directory, defaults to 'archive'.
archive_directory = archive
# The size at which a log is archived, defaults to 10000000 (0 disables).
trait Builder {
// I want this trait to return a trait object
fn commits(&self) -> Box<dyn Commit>;
fn finish(&self);
}
trait Commit {
}
#include <iostream>
#include <memory>
#include <typeinfo>
#include <vector>
using int_vector = std::vector<int>;
using int_vector_ptr = std::shared_ptr<int_vector>;
void foo(int_vector_ptr v)
{
import asyncio
import json
import websockets
async def ping():
pong_address = "kauuj71-RPvETjz8FMQugnsNSDJ8033E4lNS_anMFD0="
uri = "ws://127.0.0.1:9001/mix"
async with websockets.connect(uri) as websock:
request_object = {

Keybase proof

I hereby claim:

  • I am narodnik on github.
  • I am narodnik (https://keybase.io/narodnik) on keybase.
  • I have a public key ASAkUvQXNyC0Hubh6sDR8xb5Wt9nDn11CCzYW40XbwCNLQo

To claim this, I am signing this object:

from PySide2.QtCore import QObject, Signal, Property, QUrl
from PySide2.QtQml import QQmlApplicationEngine
from PySide2.QtWebEngine import QtWebEngine
from PySide2.QtWidgets import QApplication
import sys
class SourceTextProperty(QObject):
def __init__(self, text):
QObject.__init__(self)
from PySide2.QtCore import QObject, Signal, Property, QUrl
from PySide2.QtQml import QQmlApplicationEngine
from PySide2.QtWebEngine import QtWebEngine
from PySide2.QtWidgets import QApplication
import sys
class SourceTextProperty(QObject):
def __init__(self, text):
QObject.__init__(self)
#include <iostream>
void foo()
{
std::cout << "foo" << std::endl;
}
void bar(int x)
{
std::cout << "bar" << std::endl;
/*
g++ -o rp rp.cpp $(pkg-config --cflags --libs libbitcoin)
./rp
*/
#include <bitcoin/bitcoin.hpp>
typedef uint64_t rangevalue_type;
constexpr size_t commitment_bitsize = sizeof(rangevalue_type) * 8;
typedef std::array<bc::ec_point, commitment_bitsize> commitment_list;