Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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",
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 / 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
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: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]
}
@ashaegupta
ashaegupta / gist:7893843
Last active December 30, 2015 22:19
Segment data. Eventually there will be more, but this is a good start.
segment: {
"id":5,
"name":"Have signed up",
"status":null,
"rebuilding":false,
"rebuilding_status":null,
"customer_count":4395,
"updated_at": 1386703944 //Timestamp
}
@ashaegupta
ashaegupta / gist:7789210
Created December 4, 2013 15:16
Customer data.
customer: {
id: 12031923019,
email: "michael@madrid.com",
signed_up: 1386169925 //TIMESTAMP,
last_visited: 1386169925 //TIMESTAMP,
last_emailed: 1386169925 //TIMESTAMP,
unsubscribed: false //boolean,
}
@ashaegupta
ashaegupta / gist:6826580
Last active December 24, 2015 16:18
Delivery data. *new properties.
delivery: {
id: 1
recipient: "michael@customer.cio",
subject: "Michael, let me help you get started",
drafted: TIMESTAMP, // yesterday
sent: TIMESTAMP, // 3 hrs ago
pending: TIMESTAMP, // 4 hours ago
failed: null,
bounced: null,