Skip to content

Instantly share code, notes, and snippets.

View RubenHoms's full-sized avatar
🔥
this is fine

Ruben Homs RubenHoms

🔥
this is fine
View GitHub Profile

Keybase proof

I hereby claim:

  • I am RubenHoms on github.
  • I am rubenhoms (https://keybase.io/rubenhoms) on keybase.
  • I have a public key whose fingerprint is 4D1C 017A 0FB5 8B90 F684 5A87 CA64 BAC8 1350 17FD

To claim this, I am signing this object:

@RubenHoms
RubenHoms / gist:7371300
Created November 8, 2013 13:51
Odd Meteor behaviour
// I'm trying to run a query on Mongo, which should simply be:
var res = Toggl.findOne({ date: new Date().getDateString() } );
// Although when I run that piece of code Meteor exits with the message: "Exited with code: 1"
// So I try other methods to run this statement, such as:
var getTasks = Meteor.bindEnvironment( function() {
return Toggl.findOne({ date: new Date().toDateString() } );
}, function( err ) {
console.log( err );
});