Skip to content

Instantly share code, notes, and snippets.

@chromeNexus
Last active February 8, 2018 19:37
Show Gist options
  • Select an option

  • Save chromeNexus/8871749c0b3b3740b41a7c6e3da142a5 to your computer and use it in GitHub Desktop.

Select an option

Save chromeNexus/8871749c0b3b3740b41a7c6e3da142a5 to your computer and use it in GitHub Desktop.
blockchian
https://blockchain.info/rawaddr/$bitcoin_address
{
"hash160":"660d4ef3a743e3e696ad990364e555c271ad504b",
"address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F",
"n_tx":17,
"n_unredeemed":2,
"total_received":1031350000,
"total_sent":931250000,
"final_balance":100100000,
"txs":[--Array of Transactions--]
}
https://etherscan.io/
https://etherscan.io/apis#accounts
https://www.blocktrail.com/api/docs/lang/curl#api_address_transactions
/*
Functions as Parameters, Arguments and Return Values
Well, it stands to reason that some people might not want to experience the Haunted Hickory House if the fear is significantly elevated on that day.
Inside the fearMessage function expression, use conditional statements (e.g., if, else if) to check the integer value of the fear variable, assigned on line 1, and decide whether its value is LOW or MEDIUM.
For each fear range below we want to display a confirmation message with the corresponding message. We can return a call to the confirm function that has a single string argument containing the correct message.
For fear levels less than 200 (i.e., fear < 200):
Fear Level: LOW
Still wanna ride?
For fear levels from 200 through 300 inclusive (i.e., fear >= 200 && fear <= 300):
Fear Level: MEDIUM
Think you'll make it?
Note: You do not need to change the existing code that’s provided for you in the challenge editor.
Use the hints as you get stuck!
*/
var fear = fearGenerated(numPeeps, rainInInches, numSharks);
var fearMessage = function() {
// Insert conditional statements here
if(fear < 200){
var Low = console.log("Still wanna ride?");
}
else if (fear >= 200 && fear <= 300)
{
var Medium = console.log("Think you'll make it?");
}
};
function confirmRide(confirmToGo) {
return confirmToGo(fear);
}
// Call confirmRide with the fearMessage function
var startRide = confirmRide(fearMessage);
//You'll need to return the output from the confirm function calls using return statements.
https://blockchair.com/bitcoin-cash/blocks
https://etherscan.io/apis#accounts
https://blockchain.info/api/exchange_rates_api
https://blockchain.info/api/exchange_rates_api
https://blockchain.info/api/api_receive
https://blockchain.info/
https://blockchain.info/q
https://blockchain.info/q
https://www.blockchain.com/enterprise/index.html
https://xmrto-api.readthedocs.io/en/latest/api_v2.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment