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
/* | |
* QIMalloc - Quick, incremental malloc. | |
* | |
* This is a dummy malloc implementation, without the option to free memory space. | |
*/ | |
static int __malloc_ptr = 0; | |
static int __malloc_end = 0; | |
void *malloc(size_t size) { |
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
######NOTE####### | |
#This script was written in python 2.7... no guarantees it works on python 3 without modification. | |
import lmdb | |
from pyblake2 import blake2b | |
import matplotlib.pyplot as plt | |
#CHANGE THIS TO YOUR DATABASE LOCATION (usually /home/user/RaiBlocks/) | |
#ALSO!! Python doesn't see the database unless it has extension .mdb | |
#however your nano-node/wallet won't see it unless it stays named as .ldb | |
#I suggest creating a symlink as follows: ln -s /PATH/TO/YOUR/DATABASE/data.ldb /PATH/TO/YOUR/DATABASE/data.mdb |
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
// server | |
// redis client | |
var redisClient = redis.createClient(process.env.REDIS_PORT, process.env.REDIS_HOST); | |
redisClient.auth(process.env.REDIS_PASS); | |
// redis session store | |
var session = { | |
secret: 'your_secret', | |
store: new RedisStore({ client: redisClient }) |
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
// Require.js allows us to configure shortcut alias | |
require.config({ | |
// The shim config allows us to configure dependencies for | |
// scripts that do not call define() to register a module | |
shim: { | |
'socketio': { | |
exports: 'io' | |
}, | |
'underscore': { | |
exports: '_' |