Skip to content

Instantly share code, notes, and snippets.

Kevin Ferm KevinFerm

Block or report user

Report or block KevinFerm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View get_completion
helper_method :get_completion
def get_completion(user)
if user.name
done = {}
comp = JSON.parse(user.completion)
if comp.length > 0
comp.each do |catkey,catval|
if catkey
done[catkey] = {}
if catval
View gist:1a6c91672c247448a753
helper_method :get_completion
def get_completion(user)
if user.name
done = {}
comp = JSON.parse(user.completion)
if comp.length > 0
comp.each do |catkey,catval|
if catkey
done[catkey] = {}
if catval
You can’t perform that action at this time.