Skip to content

Instantly share code, notes, and snippets.

@rrichardsonv
rrichardsonv / 0_reuse_code.js
Created January 12, 2017 20:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
self.guesses.select(:card_id).group(:card_id).having("count(*) = 1").length
#returns number of correct cards on first guess.
Round.find(1).guesses.select(:card_id).where(correct: true).distinct