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
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 |
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
var $, jQueryStub; | |
(function () { | |
"use strict"; | |
var emptyFunction = function () { | |
}; | |
var selfReturn = function(){ | |
return new jQueryStub(); | |
}; |
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
/* | |
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 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 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 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 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 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
# METEOR CORE: | |
Anywhere: Meteor.isClient | |
Anywhere: Meteor.isServer | |
Anywhere: Meteor.startup(func) | |
Anywhere: Meteor.absoluteUrl([path], [options]) | |
Anywhere: Meteor.settings | |
Anywhere: Meteor.release | |
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
application-configuration removed from your project | |
autoupdate removed from your project | |
base64 removed from your project | |
binary-heap removed from your project | |
blaze removed from your project | |
blaze-tools removed from your project | |
boilerplate-generator removed from your project | |
callback-hook removed from your project | |
check removed from your project | |
ddp removed from your project |
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
// SET default language | |
if(Cookie.get('TAPi18next')) { | |
TAPi18n.setLanguage(Cookie.get('TAPi18next')); | |
} else { | |
var userLang = navigator.language || navigator.userLanguage, | |
availLang = TAPi18n.getLanguages(); | |
// set default language | |
if (_.isObject(availLang) && availLang[userLang]) { | |
TAPi18n.setLanguage(userLang); |
OlderNewer