Skip to content

Instantly share code, notes, and snippets.

Anup Jadhav anupj

Block or report user

Report or block anupj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

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


Keybase proof

I hereby claim:

  • I am anupj on github.
  • I am anup ( on keybase.
  • I have a public key whose fingerprint is 6DDC 12FC 7690 DC79 E7A2 5608 7396 0764 78A4 BD24

To claim this, I am signing this object:

anupj / gist:641fda3d43456e0cc263
Created Jun 29, 2015
Implementation of ES5 Object.getPrototypeOf in terms of __proto__
View gist:641fda3d43456e0cc263
// Copied from Effective Javascript (by David Herman)
// Item 31: Prefer Object.getPrototypeOf to __proto__
// For JS environments that do not provide the ES5 API, it is easy to implement
// in terms of __proto__
if (typeof Object.getPrototypeOf === "undefined" ) {
Object.getPrototypeOf = function(obj) {
var t = typeof obj;
if (!obj || (t !== "object" && t != "function")) {
throw new TypeError("not an object");
anupj / VFBootstrapSample
Created Dec 22, 2013
Use Bootstrap with Visualforce on the platform
View VFBootstrapSample
<apex:page showHeader="false" sidebar="false" standardStylesheets="false" docType="html-5.0" language="en-US" applyHTMLTag="false">
<html lang="en">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Anup's Bootstrap example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Bootstrap -->
<link href="{!URLFOR($Resource.Bootstrap_3_0_3, 'dist/css/bootstrap.min.css')}" rel="stylesheet" />
anupj / Convert15To18
Last active Dec 30, 2015
Convert Salesforce's 15 character id to 18 character Id See here for context:
View Convert15To18
// Converts 15 char salesforce id to 18 char id
static String convertto18CharId(String original15charId){
if(original15charId == null || original15charId.isEmpty()) return null;
original15charId = original15charId.trim();
if(original15charId.length() != 15) return null;
StringBuilder result = new StringBuilder();
You can’t perform that action at this time.