Skip to content

Instantly share code, notes, and snippets.

@ashaegupta
ashaegupta / gist:7899561
Created December 10, 2013 20:59
layouts. will eventually add body attribute
layout: {
"id":60,
"name":"Customer.io",
"email_ids":[1035,1036,1281,2784,3726,6585,7021,8197,18130,18226,18352,19678],
"newsletter_ids":[17,60,364,2266,2293,2462,3004,3063,3161,3598,3599,3600,3694,3729,3730,5397,7984]
}
snapshot {
date: 12/07/14 # not sure best form for this
all_users: [12,3,1,13,14] # who visited this day
new_uses: [12,3] # who downloaded this day
publishers: [12] # published this day
branchers: [3] # branched someone else’s project this day
branched_from: [16] # one of their projects was branched this day
}
@ashaegupta
ashaegupta / gist:319b13cbb058686e61c9
Last active August 29, 2015 14:09
Proxy for % of projects that are chatting
query = "To "
chats = Project.where("title LIKE ?", "#{query}%")
start_date = Time.now.beginning_of_week - 8.days // Sunday at Midnight to following Sunday at midnight
end_date = start_date + 7.days
range = start_date..end_date
all = Project.where(updated_at: range)
all.count
query = "Level"
levels = Project.where("title LIKE ?", "#{query}%")
start_date = Time.now.beginning_of_week - 1.day
end_date = start_date + 7.days
Project.where(updated_at: range, published: true)
_.count
levels.where(updated_at: range, published: true)
_.count
@ashaegupta
ashaegupta / character_frequency
Created June 1, 2015 15:04
Character frequency
characters = ["astro.png",
"banyan.png",
"bear.png",
"bird.png",
"chillanna.png",
"cupcake.png",
"dino.png",
"frog.png",
"gorilla.png",
"monkey.png",
@ashaegupta
ashaegupta / gist:912bdca76116a5d3e191
Last active August 29, 2015 14:22
Upgrade ruby or rbenv
brew update
brew upgrade ruby-build
rbenv install 2.2.1
gem install bundler
bundle
@ashaegupta
ashaegupta / gist:3f799c5a0ed24f53e895bdcfdd53360c
Created January 12, 2017 02:53
Product Manager Interview Prep 2017
**Tell me about yourself**
Let me give you a high-level summary:
5 years experience building, launching and scaling products
Worked has spanned very early stage, high growth startups - venmo at 5 ppl and large companies - also worked at Etsy
My work has led to successful results.
1. Informed a re-design of venmo back in 2011, pre-acquisition that is still the design today
2. As team of 3 at customer.io went from $100 / m revenue in beta to 50K/mth in 1.5yrs