Skip to content

Instantly share code, notes, and snippets.

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@austenito
austenito / lololol.rb
Last active December 23, 2015 22:59 — forked from knt/lololol.rb
# I want to write a method that returns the first number in a sub array where the letter matches a passed in letter
# If passed in letter does not exist, it should return nil
a = [["a", 1], ["b", 2]]
# Implementation
def get_number_for_letter(arr, letter)
arr.detect(Proc.new { [] }) { |d| d.first == letter }[1]
end
# Error received for case where letter does not exist
# This might just be me not understanding how detect is supposed to work
## Ruby Documentation
http://ruby-doc.org/downloads/