Skip to content

Instantly share code, notes, and snippets.


Julien Letessier mezis

View GitHub Profile
yossorion /
Last active Oct 15, 2021
What I Wish I'd Known About Equity Before Joining A Unicorn

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

mildmojo / left_join_arel_example.rb
Last active Jun 16, 2021
LEFT JOIN in ARel for ActiveRecord in Ruby on Rails
View left_join_arel_example.rb
# Here's a contrived example of a LEFT JOIN using ARel. This is an example of
# the mechanics, not a real-world use case.
# NOTE: In the gist comments, @ozydingo linked their general-purpose ActiveRecord
# extension that works for any named association. That's what I really wanted!
# Go use that! Go:
# - A Taxi is a car for hire. A taxi has_many :passengers.
# - A Passenger records one person riding in one taxi one time. It belongs_to :taxi.
mezis /
Last active Mar 11, 2021
Git merge driver for PO files
# *******************************************
# WARNING: this does *not* handle 3-way merges properly.
# Anything modified on the local branch since the common base will get ignored.
# This script is now updated as part of the git-whistles gem.
# *******************************************
ericboehs / gist:7125105
Created Oct 23, 2013
Poltergeist hack to silence CoreText performance notes from phantomjs
View gist:7125105
module Capybara::Poltergeist
class Client
def redirect_stdout(to)
prev = STDOUT.dup
prev.autoclose = false
$stdout = to
prev = STDERR.dup