Skip to content

Instantly share code, notes, and snippets.

View christopherobin's full-sized avatar
🏠
Working from home

Christophe Robin christopherobin

🏠
Working from home
  • Bloomberg LP
  • Tokyo, Japan
View GitHub Profile
@christopherobin
christopherobin / cryptopp.patch
Created June 27, 2013 05:47
Patch for cryptopp in custom bitcoin extension
Index: cryptopp/algebra.cpp
===================================================================
--- cryptopp/algebra.cpp (revision 5)
+++ cryptopp/algebra.cpp (working copy)
@@ -58,7 +58,7 @@
Element g[3]={b, a};
unsigned int i0=0, i1=1, i2=2;
- while (!Equal(g[i1], this->Identity()))
+ while (!this->Equal(g[i1], this->Identity()))
@christopherobin
christopherobin / test.js
Created April 26, 2013 04:25
Connection to the MtGox websocket using node.js Websocket library: https://github.com/Worlize/WebSocket-Node
var websocket = require('websocket');
var client = new websocket.client();
client.on('connectFailed', function() { console.log(arguments); });
client.on('connect', function(conn) {
console.log('connected!');
conn.on('message', function(message) {
console.log(message);