Skip to content

Instantly share code, notes, and snippets.

View Steake's full-sized avatar
🎯
Focusing

Oli Steake

🎯
Focusing
View GitHub Profile
@mutatrum
mutatrum / getbitcoinpdf.sh
Created January 21, 2021 16:15
Get bitcoin.pdf from the bitcoin blockchain in one line
bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 | sed 's/0100000000000000/\n/g' | tail -n +2 | cut -c7-136,139-268,271-400 | tr -d '\n' | cut -c17-368600 | xxd -p -r > bitcoin.pdf
@liamzebedee
liamzebedee / EBSL_lib.py
Created November 5, 2018 16:45
Evidence based subjective logic
import sys
import math
import string
import operator
from optparse import OptionParser
def load_data(filename):
# This procedure loads relevant data into table T.
# Table[i][1] denotes source of evidence
# Table[i][2] denotes subject of evidence