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
#!/bin/bash | |
if [ ! -e ".appshfolder" ]; then | |
echo "Run this from the designated folder please." | |
echo "If this is the first time you run this script, this is recommended:" | |
echo " cd" | |
echo " mkdir iosapps" | |
echo " cd iosapps" | |
echo " touch .appshfolder" | |
echo " cp <path to app.sh> ." | |
echo " ./app.sh" |
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
const storageHandler = { | |
get(obj, name) { | |
return obj.getItem(name) || obj[name]; | |
}, | |
set(obj, name, value) { | |
obj.setItem(name, value); | |
}, | |
has(obj, name) { | |
return name in obj.d || name in obj; | |
}, |
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
> hexstr = (i) => { a = Buffer.alloc(4); a.writeInt32LE(i); return a.toString('hex'); } | |
[Function: hexstr] | |
> f = (e,i) => { console.log(`e=${JSON.stringify(e)}; i=${JSON.stringify(i)}`)}; | |
[Function: f] | |
> const { BitcoinNet, BitcoinGraph, Block, BlockHeader } = require('bitcointest') | |
undefined | |
> net = new BitcoinNet('../bitcoin/src', '/tmp/bitcointest', 22001, 22002); | |
{ path: '../bitcoin/src', | |
cfgprefix: '/tmp/bitcointest', | |
nextport: 22001, |
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
if (process.argv.length !== 3) { | |
console.log("syntax: <bitcoin/src path>"); | |
process.exit(1); | |
} | |
const bitcoin = process.argv[2]; | |
const { BitcoinNet, BitcoinGraph } = require('bitcointest'); | |
const net = new BitcoinNet(bitcoin, '/tmp/bitcointest', 23001, 23002); | |
try { | |
console.log('starting nodes'); |
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
// Copyright (c) 2009-2010 Satoshi Nakamoto | |
// Copyright (c) 2009-2015 The Bitcoin Core developers | |
// Distributed under the MIT software license, see the accompanying | |
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
#include <cstdio> | |
#include <cstring> | |
#include <cstdlib> | |
/* Compilers have a bad habit of removing "superfluous" memset calls that |
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
.section __TEXT,__text,regular,pure_instructions | |
.macosx_version_min 10, 12 | |
.globl __Z14memory_cleansePvm | |
.p2align 4, 0x90 | |
__Z14memory_cleansePvm: ## @_Z14memory_cleansePvm | |
.cfi_startproc | |
## BB#0: | |
pushq %rbp | |
Ltmp0: | |
.cfi_def_cfa_offset 16 |
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
.section __TEXT,__text,regular,pure_instructions | |
.macosx_version_min 10, 12 | |
.globl __Z14memory_cleansePvm | |
.p2align 4, 0x90 | |
__Z14memory_cleansePvm: ## @_Z14memory_cleansePvm | |
.cfi_startproc | |
## BB#0: | |
pushq %rbp | |
Ltmp0: | |
.cfi_def_cfa_offset 16 |
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
.file "test_cleanse.cpp" | |
.text | |
.p2align 4,,15 | |
.globl _Z14memory_cleansePvm | |
.type _Z14memory_cleansePvm, @function | |
_Z14memory_cleansePvm: | |
.LFB77: | |
.cfi_startproc | |
pushq %rbx | |
.cfi_def_cfa_offset 16 |
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
.file "test_cleanse.cpp" | |
.text | |
.p2align 4,,15 | |
.globl _Z14memory_cleansePvm | |
.type _Z14memory_cleansePvm, @function | |
_Z14memory_cleansePvm: | |
.LFB77: | |
.cfi_startproc | |
movq %rsi, %rdx | |
xorl %esi, %esi |
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
.section __TEXT,__text,regular,pure_instructions | |
.macosx_version_min 10, 12 | |
.globl __Z14memory_cleansePvm | |
.p2align 4, 0x90 | |
__Z14memory_cleansePvm: ## @_Z14memory_cleansePvm | |
.cfi_startproc | |
## BB#0: | |
pushq %rbp | |
Ltmp0: | |
.cfi_def_cfa_offset 16 |
OlderNewer