Skip to content

Instantly share code, notes, and snippets.

Christian Decker cdecker

View GitHub Profile
View gist:df9ec4174516744110aef7ff374aa2ae
2018-02-16T05:21:59.066Z lightningd(25245): 02c8a3999011efbe323f1bb0af373e7b07b0aa11eff866d48702a0653630cd5311 chan #0: State changed from UNINITIALIZED to OPENINGD
2018-02-16T05:21:59.067Z lightningd(25245): lightning_openingd-02c8a3999011efbe323f1bb0af373e7b07b0aa11eff866d48702a0653630cd5311 chan #0: pid 7795, msgfd 27
2018-02-16T05:21:59.068Z lightningd(25245): wallet_channel_save: UNIQUE constraint failed: peers.node_id
2018-02-16T05:21:59.068Z lightningd(25245): FATAL SIGNAL 6 RECEIVED
2018-02-16T05:21:59.081Z lightningd(25245): backtrace: lightningd/log.c:498 (log_crash) 0x411c09
2018-02-16T05:21:59.081Z lightningd(25245): backtrace: (null):0 ((null)) 0x7efc9a2704af
2018-02-16T05:21:59.081Z lightningd(25245): backtrace: (null):0 ((null)) 0x7efc9a270428
2018-02-16T05:21:59.081Z lightningd(25245): backtrace: (null):0 ((null)) 0x7efc9a272029
2018-02-16T05:21:59.081Z lightningd(25245): backtrace: lightningd/log.c:587 (fatal) 0x412043
2018-02-16T05:21:59.082Z lightningd(25245): backtrace: wallet/db.c:217 (db
from tqdm import tqdm
from itertools import product
import math
max_churn = 0
best = (0, 0, 0)
for i, o in tqdm(product(range(1,10000), range(1,10000))):
View Python 3.5
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
Type "copyright", "credits" or "license" for more information.
IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: from test import f, g, s
cdecker / test.log
Created Sep 23, 2016
Comparing go and c sphinx implementations
View test.log
bash +x
Building in /tmp/tmp.Noh3zIbIj9
Generating go-onion
Node 0 pubkey 02eec7245d6b7d2ccb30380bfbe2a3648cd7a942653f5aa340edcea1f283686619
Node 1 pubkey 0324653eac434488002cc06bbfb7f10fe18991e35f9fe4302dbea6d2353dc0ab1c
Node 2 pubkey 027f31ebc5462c1fdce1b737ecff52d37d75dea43ce11c74d25aa297165faa2007
Node 3 pubkey 032c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991
Node 4 pubkey 02edabbd16b41c8371b92ef2f04c1185b4f03b6dcd52ba9b78d9d7c89c8f221145
View gist:53d2cd884da3aff79fc3ff7b703b0ae4
### Keybase proof
I hereby claim:
* I am cdecker on github.
* I am decker ( on keybase.
* I have a public key whose fingerprint is B731 AAC5 21B0 1385 9313 F674 A26D 6D9F E088 ED58
To claim this, I am signing this object:
View gist:acae61c6607a75fabf30
"cells": [
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false
"outputs": [
View gist:f0de1565758a47f2c1f4
"cells": [
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
"outputs": [
cdecker / README
Created Sep 20, 2014
Daily bitcoin supply
Short bash script created in answer to
Scrapes and counts the number of blocks mined in a single day.
View Untitled0 (1).ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

A demo of the d3.geo.tile plugin, which determines which 256x256 tiles are visible in the viewport based on a scale and translate. This demo combines the tile plugin with d3.behavior.zoom for panning and zooming, resulting in a a simple slippy map. Based partly on an example by Tom MacWright.

You can’t perform that action at this time.