This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 89b8b1c03fb9f5e88df9fc55895b618ce90b551b Mon Sep 17 00:00:00 2001 | |
From: Stefan Thomas <[email protected]> | |
Date: Thu, 16 Dec 2010 18:38:34 +0000 | |
Subject: [PATCH] Added EJS (Embedded JS) support to nXhtml. | |
--- | |
nxhtml/nxhtml-autoload.el | 1 + | |
nxhtml/nxhtml-mumamo.el | 17 +++++++++++++++++ | |
util/majmodpri.el | 1 + | |
util/mumamo-chunks.el | 31 +++++++++++++++++++++++++++++++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var profiler = require('v8-profiler'); | |
var Binary = require('binary'); | |
var EventEmitter = require('events').EventEmitter; | |
var em = new EventEmitter; | |
var CHAIN_LENGTH = 5000; | |
var benchmarkTimer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
moon@clymene:/atlas/www/node-bitcoin-p2p$ valgrind -- node test/util.js | |
==2201== Memcheck, a memory error detector | |
==2201== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. | |
==2201== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info | |
==2201== Command: node test/util.js | |
==2201== | |
·==2201== Invalid read of size 4 | |
==2201== at 0x4101A3E: BN_free (in /lib/libcrypto.so.0.9.8) | |
==2201== by 0x8043EA8: base58_encode(v8::Arguments const&) (native.cc:214) | |
==2201== by 0x81AA79D: v8::internal::Builtin_HandleApiCall(v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>) (in /usr/local/bin/node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto'); | |
var mongoose = require('./'); | |
mongoose.connect('mongodb://localhost/bintest'); | |
var Schema = mongoose.Schema; | |
var HashSchema = new Schema({ | |
id : String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From f1f6f7bf486a2d6ceebe51063676212a91cb3ed3 Mon Sep 17 00:00:00 2001 | |
From: Stefan Thomas <[email protected]> | |
Date: Tue, 23 Aug 2011 05:22:44 +0100 | |
Subject: [PATCH] Enable LiveObjectList. | |
--- | |
deps/v8/src/liveobjectlist.cc | 138 +++++++++++++++++++++++++++++----------- | |
wscript | 2 +- | |
2 files changed, 101 insertions(+), 39 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> [email protected] install /atlas/www/node-bitcoin-p2p/node_modules/bigint | |
> node-waf configure build | |
> [email protected] preinstall /atlas/www/node-bitcoin-p2p/node_modules/buffertools | |
> ./build-wrapper | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Setting srcdir to : /atlas/www/node-bitcoin-p2p/node_modules/buffertools | |
Setting blddir to : /atlas/www/node-bitcoin-p2p/node_modules/buffertools/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node.js 0.4.12 | |
-------------- | |
Buffer (10 bytes): | |
Buffer#copy x 233,570 ops/sec ±0.96% (74 runs sampled) | |
Buffer[] x 1,152,607 ops/sec ±2.57% (72 runs sampled) | |
Fastest is Buffer[] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
justmoon@atlas:~/opt$ rm -r node_modules/ | |
justmoon@atlas:~/opt$ rm -r ../.npm/ | |
justmoon@atlas:~/opt$ rm npm-debug.log | |
justmoon@atlas:~/opt$ npm install -v bitcoinjs | |
1.1.0-alpha-6 | |
justmoon@atlas:~/opt$ npm install -verbose bitcoinjs | |
npm info it worked if it ends with ok | |
npm verb cli [ 'node', | |
npm verb cli '/usr/local/bin/npm', | |
npm verb cli 'install', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Connect a block and store it. | |
* | |
* This function takes over once add() has ascertained that the block passed | |
* intrinsic checks and there is no reorg currently in progress. | |
*/ | |
var processBlock = this.processBlock = function processBlock(bw) { | |
// Shorthand | |
var block = bw.block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <openssl/ripemd.h> | |
#include <openssl/rand.h> | |
void print_hex(unsigned char *bytes, unsigned int len) { | |
int i; | |
for (i = 0; i < len; i++) { | |
printf("%02X", bytes[i]); | |
} | |
printf("\n"); |
OlderNewer