Skip to content

Instantly share code, notes, and snippets.

[[Stuff]]


[[Messages]]

Bitcoin

C++   bitcoin             MIT

C++   QBitcoin (under construction?)

Java  bitcoinj            apache2

Java bitcoin-client apache2
bitcoin-details
wiki: docs
repo: test data
libbitcoin (C + OpenSSL)
node-bitcoin-lib
@andrewschaaf
andrewschaaf / gist:871082
Created March 15, 2011 17:25
node sign/verify test
###
openssl genrsa 4096 > x.pem
openssl req -new -key x.pem -out x.csr
openssl x509 -req -days 365 -in x.csr -signkey x.pem -out x.crt
###
test = (private_key, cert) ->
import smtplib
import time
fromaddr = "postmark.test@andrewschaaf.com"
toaddrs = ["andrew@andrewschaaf.com"]
subject = "Test %f" % (time.time() - 1298766542.8057871 + 200)
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
@andrewschaaf
andrewschaaf / gist:866762
Created March 11, 2011 23:04
ubuntu postfix
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
$("#pickcity").hover(
(-> $("#drop").show()),
(-> $("#drop").hide()))
XYZ_to_CAT02 = (XYZ) ->
[X, Y, Z] = XYZ
return [
.7328 * X + .4296 * Y - .1624 * Z, # R
- .7036 * X + 1.6975 * Y + .0061 * Z, # G
.0030 * X + .0136 * Y + .9834 * Z] # B
XYZ_to_CAT02 = ([X, Y, Z]) ->
[