This file contains hidden or 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
| var page = new WebPage(), testindex = 0, loadInProgress = false; | |
| page.onConsoleMessage = function(msg) { | |
| console.log(msg); | |
| }; | |
| page.onLoadStarted = function() { | |
| loadInProgress = true; | |
| console.log("load started"); | |
| }; |
This file contains hidden or 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
| 0 . 0 0 0 0 0 0 0 0 | |
| ^ ^ ^ ^ | |
| BTC mBTC? bits Satoshi |
This file contains hidden or 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 myself: My Bitcoin username is +frozeman. https://onename.io/frozeman |
This file contains hidden or 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
| // in the console, to get the BUY/SELL order sum type: | |
| var until = 9999; // until order | |
| var sum = 0; $('#sellorderlist tr:lt('+until+')').each(function(){ sum += Number($(this).find('td:eq(2)').text())}); console.log('SEll: '+sum+' BTC by '+$('#sellorderlist tr').length+' orders'); | |
| var sum = 0; $('#buyorderlist tr:lt('+until+')').each(function(){ sum += Number($(this).find('td:eq(2)').text())}); console.log('BUY: '+sum+' BTC by '+$('#buyorderlist tr').length+' orders'); |
This file contains hidden or 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
| /* | |
| These two functions provide a simple extra minimongo functionality to add and remove documents in bulk, | |
| without unnecessary re-renders. | |
| The process is simple. It will add the documents to the collections "_map" and only the last item will be inserted properly | |
| to cause reactive dependencies to re-run. | |
| */ | |
| Models = {}; |
This file contains hidden or 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
| var $, jQueryStub; | |
| (function () { | |
| "use strict"; | |
| var emptyFunction = function () { | |
| }; | |
| var selfReturn = function(){ | |
| return new jQueryStub(); | |
| }; |
This file contains hidden or 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
| DB = {}; | |
| DB.movies = new Meteor.Collection('movies'); | |
| DB.ratings = new Meteor.Collection('ratings'); | |
| /* | |
| * OfflineCollections, works as wrapper to easily clean your local collections | |
| */ | |
| OfflineCollections = (function(){ | |
| // PRIVATE |
NewerOlder