Skip to content

Instantly share code, notes, and snippets.

@bpaul
bpaul / gource.sh
Last active December 2, 2019 05:09
Gource for year end summary
# lower bloom because we have a lot of changes
# some slight elasticity to give it a more orgainic feel
# hide filenames overwise too busy
# don't hide files that haven't been hit in 60seconds
# start at beginning of year
gource -start-date '2019-01-01' -s .4 -a 1 --hide filenames --key -f --file-idle-time 0 -e 0.004 -bloom-intensity 0.5
def live_release(course_id, do_emails = true, do_push = true)
course = Course.find course_id
emails_sent = pushes_sent = 0
enrollments = course.enrollments.where(is_complete: false).each do |e|
# check the course for new questions and add them to the enrollment
e.last_new_introduced = nil
e.check_questions
@bpaul
bpaul / 0_reuse_code.js
Last active August 29, 2015 14:17
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