Skip to content

Instantly share code, notes, and snippets.

View founddrama's full-sized avatar
🗺️
time zone chauvinist

Rob Friesel founddrama

🗺️
time zone chauvinist
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

@founddrama
founddrama / what-forces-layout.md
Created October 28, 2016 15:24 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
"use strict";
function freeze(o) {
if(!Object.isFrozen(o)) {
Object.freeze(o);
}
return o;
}
// Paul Irish talking about Chrome DevTools Timeline's new Frame Mode
http://www.youtube.com/watch?v=Vp524yo0p44
// Chrome Office Hours - troubleshooting paint times
http://www.youtube.com/watch?v=z0_jD8nO5Zw
// Break time to glass - youtube
http://youtu.be/Il4swGfTOSM
// Avoiding Unnecessary Paints
git branch -a --merged develop | grep remotes\/origin\/feature | sed 's/^[ \t]*//' | xargs -n 1 git log --pretty=format:"%an - %d - %ar %n" -1 | sort | cat
@founddrama
founddrama / gist:3415288
Created August 21, 2012 13:11 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@founddrama
founddrama / gist:3099742
Created July 12, 2012 18:01 — forked from paulirish/gist:3098860
Open Conference Expectations

Open Conference Expectations

For conferences, it's extremely important that attendees get top-quality content from industry experts. As a highly compelling format of educating others based on experience and research, conferences stand to be one the best sources of refined knowledge available. Still, it's important for a successful event to have a few guidelines to ensure quality content from the best and most appropriate speakers. Below is a set of guidelines for conference organizers that ensure quality content for attendees and the community.

What We, As Speakers, Expect from Conferences

  1. Video recordings: Organizers should prioritize recording all talks and sessions. A conference that only teaches the ~300 people in the room has constrained value and is not worthwhile to a speaker who wants to benefit the community. When recorded, video will be available online under a permissive license (CC-BY-*) within six months of the event.

  2. Travel reimbursement: Conferences will reimburse travel

/*
* Customize Footnotify on your site by adding custom css.
*
* This file is NOT loaded by the script and must be
* implemented on the site in order to apply.
*
* More info: https://gist.github.com/1046538
*
*/
@founddrama
founddrama / gist:2345068
Created April 9, 2012 18:02 — forked from panicsteve/gist:1641705
Form letter template for acquired startups
Dear soon-to-be-former user,
We've got some fantastic news! Well, it's great news for us anyway. You, on
the other hand, are fucked.
We've just been acquired by:
[ ] Facebook
[ ] Google
[ ] Twitter
@founddrama
founddrama / cljsc.rb
Created March 6, 2012 16:19 — forked from fogus/cljsc.rb
ClojureScript compiler from JRuby
# clojurescript compiler from JRuby
# see https://github.com/clojure/clojurescript/wiki/Quick-Start
require 'java'
CLOJURESCRIPT_HOME = File.dirname(__FILE__)
$: << CLOJURESCRIPT_HOME
%w{compiler.jar goog.jar js.jar clj cljs}.each {|path| $CLASSPATH << CLOJURESCRIPT_HOME + "/" + path}
require 'clojure'