Skip to content

Instantly share code, notes, and snippets.

milgroma

Block or report user

Report or block milgroma

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
@milgroma
milgroma / tracking_usage
Created Feb 3, 2014
Are people using our tool?
View tracking_usage
def self.are_you_using_this
## get all of the users
u = User.all
## for each user, do the following thing
u.each do |u|
## get the date of user’s latest session
last_session_date = u.sessions.last ? u.sessions.last.created_at : nil
@milgroma
milgroma / facebook_like_twitter_follow_links
Last active Dec 22, 2015
how you can put a facebook like button and twitter follow button right in your email: copy and paste the following, insert the name of your page/account/handle in place of ours, test by sending it to another account where you can receive email like the person you're sending it to will, edit as you see fit
View facebook_like_twitter_follow_links
You can’t perform that action at this time.