Skip to content

Instantly share code, notes, and snippets.

@markalfred
Last active March 12, 2016 03:06
Show Gist options
  • Select an option

  • Save markalfred/5200e48630224bdbd26b to your computer and use it in GitHub Desktop.

Select an option

Save markalfred/5200e48630224bdbd26b to your computer and use it in GitHub Desktop.

Revisions

  1. Mark Battersby revised this gist Mar 12, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ether.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    $.ajax('http://ethereumwisdom.com/data/chart/kraken_USD_1800.json?&rand=0.38954108371399343').then(function(data){var high = data.map(function(c) {return parseFloat(c.h)}).sort(function (a, b) { return a-b; }).reverse()[0]; var current = data[data.length-1].h; console.log('current:', current, 'high:', high)})
    $.ajax('http://ethereumwisdom.com/data/chart/kraken_USD_1800.json?&rand=0.38954108371399343').then(function(data){var high = data.map(function(c) {return parseFloat(c.h)}).sort(function (a, b) { return a-b; }).reverse()[0]; var current = data[data.length-1].c; console.log('current:', current, 'high:', high)})
  2. Mark Battersby created this gist Mar 12, 2016.
    1 change: 1 addition & 0 deletions ether.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    $.ajax('http://ethereumwisdom.com/data/chart/kraken_USD_1800.json?&rand=0.38954108371399343').then(function(data){var high = data.map(function(c) {return parseFloat(c.h)}).sort(function (a, b) { return a-b; }).reverse()[0]; var current = data[data.length-1].h; console.log('current:', current, 'high:', high)})