Skip to content

Instantly share code, notes, and snippets.

feeling dirty from being around all those bugs…

Harald Schilly haraldschilly

feeling dirty from being around all those bugs…
Block or report user

Report or block haraldschilly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.


The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.

senko /
Last active Jun 16, 2019
A Pythonic implementation of the Maybe monad
# - a Pythonic implementation of the Maybe monad
# Copyright (C) 2014. Senko Rasic <>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
haraldschilly /
Created Nov 25, 2012
Bitcoin Blockreward Estimation
#!/usr/bin/env python
# Copyright Harald Schilly <>
# License: Apache 2.0
# Hint: run it periodically via: watch -d -n 30 python
# (sorry blockexplorer ...)
# which halfing? 1, 2, ...
nb_halfing = 2
quot = 2 ** nb_halfing
reward = 50. / quot
gavinandresen / btcpayments.rst
Last active Aug 23, 2018
Bitcoin Payment Messages
View btcpayments.rst


See for the latest version of this document; I'll keep this document so the process of discussion/revision isn't lost.

Bitcoin Payment Messages

This document proposes protocol buffer-based formats for a simple payment protocol between a customer's bitcoin client software and a merchant.

fabianp / gist:1342033
Created Nov 5, 2011
Low rank approximation for the lena image
View gist:1342033
Low rank approximation for the lena image
import numpy as np
import scipy as sp
from scipy import linalg
import pylab as pl
X = sp.lena().astype(np.float)
pamelafox / gist:1006753
Created Jun 3, 2011
Sendgrid Python Web API example
View gist:1006753
import urllib2, urllib
import logging
def send_mail_sendgrid(from, to, subject, body):
base_url = ''
params = {
'api_user': '',
'api_key': 'yourpassword',
'from': from,
'to': to,
You can’t perform that action at this time.