Skip to content

Instantly share code, notes, and snippets.

View sherwinyu's full-sized avatar

sherwinyu sherwinyu

View GitHub Profile
@sherwinyu
sherwinyu / gist:daa4bd08319a14f70cf3e7091f703878
Created December 1, 2023 05:58
Questions to ask when joining a startup
product market fit
- do you have product market fit? How do you know?
- press them on this, and see if they're honest about the parts that they don't know yet.
- what theses are they betting on (and what bets haven't played out yet?)
- what are you prioritizing, product roadmap wise, for next 6-24 months? why?
- more importantly, what are you NOT prioritizing and why?
- See: https://www.growthengblog.com/blog/the-best-metric-for-determining-quantitative-product-market-fit
- https://www.growthengblog.com/blog/the-best-metric-for-determining-quantitative-product-market-fit
- how well do they know the user / customer / pain point?
- their head of product / founder they should be able to answer all of your questions (just ask "why" 3-4 times and go down different rabbit holes) - it's a red flag if you as an outsider ask a question they haven't though about already
@sherwinyu
sherwinyu / crontab
Created September 22, 2015 06:22
go to bed
00 22 * * 0-4 Say 'Prepare to go to bed!'
30 22 * * 0-4 /sbin/ifconfig en0 down; say 'Go to bed!'
35 22 * * 0-4 /sbin/ifconfig en0 down; say 'Go to bed!'
40 22 * * 0-4 /sbin/ifconfig en0 down; say 'Go to bed!'
45 22 * * 0-4 /sbin/ifconfig en0 down
50 22 * * 0-4 /sbin/ifconfig en0 down
55 22 * * 0-4 /sbin/ifconfig en0 down
*/4 23 * * 0-4 /sbin/ifconfig en0 down; say 'Go to bed'
*/3 0 * * 1-5 /sbin/ifconfig en0 down; say 'Go to bed'
*/2 1 * * 1-5 /sbin/ifconfig en0 down; say 'Go to bed'
@sherwinyu
sherwinyu / gist:bdfbff6a51151dfacedb
Created June 29, 2015 17:25
Python linked list impl
class Node:
def __init__(self, value=None, next=None, prev=None):
self.value = value
self.next = next
self.prev = prev
def __repr__(self):
return "" % self.value
describe 'Test Ordering', ->
beforeEach 'outer beforeEach', ->
console.log ' outer beforeEach'
describe 'inner describe', ->
beforeEach 'inner beforeEach', ->
console.log ' inner beforeEach'
it 'inner describe it1', ->
console.log ' inner describe it1'
it 'inner describe it2', ->
start =
Seq
Seq =
first: Expr "_" rest:Seq {return {tag: "Seq", first: first, rest: rest} }
/ Expr
Expr =
WrappedEvent
/ Event
@sherwinyu
sherwinyu / gist:3773390
Created September 23, 2012 23:10
xkcd click and drag
<!doctype html>
<html>
<head>
</head>
<body>
<div style="
top: 28672px;
height: 51200px;
left: 0px;
@sherwinyu
sherwinyu / gist:3773389
Created September 23, 2012 23:10
xkcd click and drag
<!doctype html>
<html>
<head>
</head>
<body>
<div style="
top: 28672px;
height: 51200px;
left: 0px;
@sherwinyu
sherwinyu / gist:3115002
Created July 15, 2012 04:31
Rails validation design question
class Contribution < ActiveRecord::Base
attr_accessible :reward_id, :reward
belongs_to :reward
validates_presence_of :amount
validates_numericality_of :amount, greater_than: 0
validates_presence_of :reward
validates_each :amount, unless: Proc.new{ |contrib| contrib.reward.nil? } do |contribution, attr, value|
reward = contribution.reward
@sherwinyu
sherwinyu / vimium-excludes
Created June 29, 2012 19:42
Exclude URLs for vimium chrome browser extension
http*://mail.google.com*
http*://www.google.com/reader*
http*://www.google.com/voice*
http*://www.google.com/calendar*
http*://www.google.com