Skip to content

Instantly share code, notes, and snippets.

View jdmaturen's full-sized avatar

jd jdmaturen

View GitHub Profile

On the relative value of startup stock

How do you compare the potential value of different stage companies? And as a company progresses what is the appropriate amount of stock to give new employees?

Using data from Crunchbase and Yahoo Finance we can calculate the average value created per company broken down by how much money they have raised. From this we can then compute relative returns at the different stages, e.g. $1M raised, $10M, $100M, etc.

tl;dr

For this exercise we'll calibrate relative to expected return from a company that's raised $1M.

Keybase proof

I hereby claim:

  • I am jdmaturen on github.
  • I am jdmaturen (https://keybase.io/jdmaturen) on keybase.
  • I have a public key whose fingerprint is A95A 6A67 8A9C 7701 272D 7CBD 126A 7513 766A 6932

To claim this, I am signing this object:

@jdmaturen
jdmaturen / vacuum.py
Last active December 28, 2015 02:09
Vacuum up Crunchbase
"""
Get a bunch of Crunchbase data, but respect the API limits.
Author JD Maturen
Apache 2 License
"""
import logging
from random import random
import sys
burp:~ jd$ curl --referer http://t.co/ -is i.imgur.com/7RsFUmL.jpg
HTTP/1.1 302 Moved Temporarily
Server: cloudflare-nginx
Date: Wed, 14 Aug 2013 18:58:01 GMT
Content-Type: text/html
Content-Length: 165
Connection: keep-alive
Location: http://imgur.com/7RsFUmL
CF-RAY: 9dfdfc465cb0707
@jdmaturen
jdmaturen / gist:4163044
Created November 28, 2012 18:22
maxgif id samples
6An
80P
2lf
1c6
7zS
1U6
2de
2yZ
2a2
6I8
@jdmaturen
jdmaturen / gist:3627593
Created September 4, 2012 22:44 — forked from argv0/gist:3627514
Markov Chain Thing I Wrote A Long Time Ago
just write something funny, dufus.
The token system is ridiculous because it makes security weaker, by offering a
larger surface area for attack.
If I had to guess, Salesforce is concerned that users are embedding their
passwords into scripts which could be stolen and used outside the company for
other purposes. Why are users putting their passwords in scripts? I imagine
it's because of the web-centric oauth flow coupled with short oauth token
expiration intervals but THATS a different story.
So *within* an authorized set of IP addresses, the regular password works.
<?php
// … 
/**
* Default, shared method for authenticating a connection to AWS.
*
* @param string $operation (Required) Indicates the operation to perform.
* @param array $payload (Required) An associative array of parameters for authenticating. See the individual methods for allowed keys.
* @return CFResponse Object containing a parsed HTTP response.
*/
public function authenticate($operation, $payload)
@jdmaturen
jdmaturen / pbc_pool_transport.py
Created June 20, 2011 23:39
Riak python client PBC connection pooling
import logging
log = logging.getLogger('socrates')
from Queue import Empty, Full, Queue
from riak.transports import RiakPbcTransport
from riak.transports.transport import RiakTransport
class PbcPoolTransport(RiakTransport):
@jdmaturen
jdmaturen / gist:939068
Created April 23, 2011 23:05
Riak resource allocation (rough expansion)
# of keys: 10,000,000
size of key: 60bytes (40bytes bitcask + 20bytes for name)
bounded size of each value: 1k
# of active items (usually per day): 1,000,000 (of course how you determine this number is up for grabs, I suggest measuring)
RF: 3
130% * (1k * 1mm * 3) / 1024**3 ~= 4GB for filesystem cache
130% * (10mm * 60b * 3) / 1024**3 ~= 2GB+ for key space