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
Verifying that +lukecrypto is my Bitcoin username. You can send me #bitcoin here: https://onename.io/lukecrypto |
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
// Sign CAlert with stored private key | |
bool SignAlert(CAlert &alert) | |
{ | |
// key in WIF format | |
const char* pszPrivKey = ""; | |
// serialize alert data | |
CDataStream sMsg(SER_NETWORK, PROTOCOL_VERSION); | |
sMsg << *(CUnsignedAlert*)&alert; | |
alert.vchMsg = std::vector<unsigned char>(sMsg.begin(), sMsg.end()); |
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
// Extend the TransactionBuilder class to include OP_RETURN scripts. | |
// The two parameters are the amount to use for the output and the data | |
// to push onto the blockchain. | |
// This is done inside bitcore/lib/TransactionBuilder.js | |
TransactionBuilder.prototype.setUnspendableOutput = function(amount, msg) { | |
var valueOutSat = bignum(0); | |
var txobj = {}; | |
txobj.version = 1; | |
txobj.lock_time = this.lockTime || 0; | |
txobj.ins = []; |
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
<html> | |
<head> | |
<title>StartCOIN Payment Watcher</title> | |
<script src="https://cdn.socket.io/socket.io-1.3.4.js"></script> | |
<script> | |
// Create an XML request | |
var createRequest = function() { | |
var result = null; | |
if (window.XMLHttpRequest) { | |
// FireFox, Safari, etc. |
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
{ | |
"START": "StartCOIN", | |
"BTC": "Bitcoin", | |
"USD": "US Dollar", | |
"EUR": "Eurozone Euro", | |
"GBP": "Pound Sterling", | |
"JPY": "Japanese Yen", | |
"CAD": "Canadian Dollar", | |
"AUD": "Australian Dollar", | |
"CNY": "Chinese Yuan", |
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
// Check that the destination is not banned | |
bool IsDestinationBanned(CScript scriptPubKey) | |
{ | |
txnouttype typeRet; | |
vector<CTxDestination> addressRet; | |
int nRequiredRet; | |
if (!ExtractDestinations(scriptPubKey, typeRet, addressRet, nRequiredRet)) | |
// Could not extract destinations | |
return true; |
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
// Luke Mitchell | |
// Linked List | |
// 22-11-2011 | |
// edited 12/12/2011 for CW1 [100%] | |
// edited 27/12/2011 for CW2 | |
#ifndef LIST_H | |
#define LIST_H | |
/* Includes */ |
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
int hash (int table_size, char* data) | |
{ | |
unsigned h = 0, g; | |
int len = strlen (data); | |
int i; | |
for ( i = 0; i < len; i++ ) { | |
h = ( h << 4 ) + data[i]; | |
g = h & 0xf0000000L; | |
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
/* | |
* | |
* Principles of programming, coursework 1 [100%] | |
* Luke Mitchell - lm0466 | |
* 08/12/2011 | |
* | |
*/ | |
#include <stdio.h> | |
#include <string.h> |
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
convert image.png -bordercolor white -border 0 \ | |
\( -clone 0 -resize 16x16 \) \ | |
\( -clone 0 -resize 32x32 \) \ | |
\( -clone 0 -resize 48x48 \) \ | |
\( -clone 0 -resize 64x64 \) \ | |
-delete 0 -colors 256 favicon.ico |
OlderNewer