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
** Add repository and install bitcoind ** | |
sudo apt-get install build-essential | |
sudo apt-get install libtool autotools-dev autoconf | |
sudo apt-get install libssl-dev | |
sudo apt-get install libboost-all-dev | |
sudo add-apt-repository ppa:luke-jr/bitcoincore | |
sudo apt-get update | |
sudo apt-get install bitcoind | |
mkdir ~/.bitcoin/ && cd ~/.bitcoin/ |
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
{ | |
test_name: string, | |
test_description: string, | |
test_video: string, //url | |
test_questions: [ | |
{ | |
question_id: integer, | |
question_text: string, | |
question_options: [ | |
{ |
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
import _ from 'lodash'; | |
const getInvoiceAmount = (invoice) => { | |
const cleanInvoice = invoice.toLowerCase(); | |
let removedNetwork; | |
if (_.startsWith(cleanInvoice, 'lnbc')) { | |
removedNetwork = cleanInvoice.replace('lnbc', ''); | |
} else if (_.startsWith(cleanInvoice, 'lntb')) { | |
removedNetwork = cleanInvoice.replace('lntb', ''); |