Skip to content

Instantly share code, notes, and snippets.

name: Stay Plan
terminal: Dog maintains down-stay for 2 minutes at other end of room from trainer amid normal household distractions
author: The Academy for Dog Trainers
operant
# food dangle
duration: 1s
# food dangle
duration: 3s
/**
*#############################################################################
*
* GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
*
*#############################################################################
* Copyright (c) 2011-2019 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
@lastcanal
lastcanal / bs.cfg
Created January 25, 2018 21:42
Litecoin configuration for bs
[network]
# Litecoin mainnet
identifier = 3686187259
# Litecoin testnet
#identifier = 4056470269
# Litecoin regtest
#identifier = 3669344250
# Litecoin mainnet
@lastcanal
lastcanal / debug.log
Last active January 26, 2018 14:28
Litecoin bs incorrect_proof_of_work.log
01:26:21.877569 VERBOSE [network] Sent version to [127.0.0.1:6443] (128 bytes)
01:26:21.878044 DEBUG [network] Peer [127.0.0.1:6443] protocol version (70015) user agent: /LitecoinCore:0.14.2/
01:26:21.878077 DEBUG [network] Negotiated protocol version (70013) for [127.0.0.1:6443]
01:26:21.878131 VERBOSE [network] Received version from [127.0.0.1:6443] (107 bytes)
01:26:21.878177 VERBOSE [network] Sent verack to [127.0.0.1:6443] (24 bytes)
01:26:21.878211 INFO [network] Connected manual channel [127.0.0.1:6443] as [127.0.0.1:6443] (1)
01:26:21.878317 VERBOSE [network] Sent ping to [127.0.0.1:6443] (32 bytes)
01:26:21.878364 VERBOSE [network] Sent sendheaders to [127.0.0.1:6443] (24 bytes)
01:26:21.878371 DEBUG [node] Ask [127.0.0.1:6443] for headers after [97f11517c699157890542c473abb85b11bd6483d72b776ad372f84d1a4d47c7b]
01:26:21.878494 VERBOSE [network] Sent getheaders to [127.0.0.1:6443] (285 bytes)
@lastcanal
lastcanal / trezor_sign_tx.js
Last active May 18, 2017 22:20
TrezorConnect signTx example
function harden(n) {
return (n | 0x80000000) >>> 0
}
var inputs = [
{
// m/44'/0'/1'/0/1
// [2147483692, 2147483648, 2147483649, 0, 1]
"address_n": [
harden(44),
local margin = 1.04
local base_price = CAD
my_price = base_price * margin
cancoin_fee = my_price * 0.0075
local incoming_network_fee = (565 * network_fee) / 100000000
local outgoing_network_fee = (565 * network_fee) / 100000000
local network_fees = outgoing_network_fee + incoming_network_fee
return ceil(my_price + cancoin_fee + network_fees)
local bitcoin = 12.5
base_price = CAD
return base_price * bitcoin
@lastcanal
lastcanal / explorer
Last active September 22, 2016 22:34
libbitcoin-serever-freebsd-install.sh
#!/bin/bash
###############################################################################
# Copyright (c) 2014-2015 libbitcoin-explorer developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
###############################################################################
# Script to build and install libbitcoin-explorer.
#
# Script options:
# Libbitcoin Server configuration file
[network]
# The number of threads in the network threadpool, defaults to 4.
threads = 4
# The port for incoming connections, defaults to 8333 (18333 for testnet).
inbound_port = 8333
# The maximum number of incoming network connections, defaults to 0.
inbound_connection_limit = 0
# The maximum number of outgoing network connections, defaults to 1.
# Libbitcoin Server configuration file
[network]
# The minimum number of threads in the application threadpool, defaults to 50.
threads = 50
# The magic number for message headers, defaults to 3652501241 (use 118034699 for testnet).
identifier = 3652501241
# The port for incoming connections, defaults to 8333 (use 18333 for testnet).
inbound_port = 8333
# The target number of incoming network connections, defaults to 8.