Skip to content

Instantly share code, notes, and snippets.

@NakedMoleRatScientist
Created January 14, 2014 02:05
Show Gist options
  • Save NakedMoleRatScientist/8411818 to your computer and use it in GitHub Desktop.
Save NakedMoleRatScientist/8411818 to your computer and use it in GitHub Desktop.
Template.stats.rendered = () ->
width = 500
height = 350
date = "2012-12-30"
begin = moment(date).startOf("day")._d
end = moment(date).endOf("day")._d
console.log(begin)
console.log(end)
events = Events.find({user_id: Meteor.userId(), date: {$gte: start, $lt: end} } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment