Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mifan on github.
  • I am mifanxp (https://keybase.io/mifanxp) on keybase.
  • I have a public key ASCzgXT00stZv_g-hMCcFZlEZgbkCMPHoSCKl_CGst4Ogwo

To claim this, I am signing this object:

@mifan
mifan / README.md
Last active August 29, 2015 14:06 — forked from cstrahan/README.md
@mifan
mifan / README.md
Last active August 29, 2015 14:06 — forked from cstrahan/README.md
// g++ UniversalTimer.o BinaryData.o FileDataPtr.o BtcUtils.o BlockObj.o BlockUtils.o libcryptopp.a -o bootstrap.out -Icryptopp -DUSE_CRYPTOPP -D__STDC_LIMIT_MACROS -lpthread bootstrap.cpp
#include "BlockUtils.h"
int main(void)
{
string btcdir("/home/chris/.bitcoin");
string bootstrap(btcdir + "/" + "bootstrap.dat");
BlockDataManager_FileRefs::GetInstance().SelectNetwork("Main");
BlockDataManager_FileRefs & bdm = BlockDataManager_FileRefs::GetInstance();
require 'systemu'
require 'tempfile'
require 'string'
# snippet highlight
class Highlight
def self.format(code,type)
result = ''
tmpfile = nil
begin