Skip to content

Instantly share code, notes, and snippets.

View zocoi's full-sized avatar

Hưng Đào zocoi

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

@zocoi
zocoi / README.md
Last active August 29, 2015 14:17 — forked from mbostock/.block

An example of using transition.styleTween to avoid using the computed style value, and instead use the style value as-set.

class Post < ActiveRecord::Base
has_many :comments
end
class TwitterNotification < ActiveRecord::Observer
observe :post
def after_create post
TwitterService.send_tweet post.subject
end
@zocoi
zocoi / README.md
Last active August 29, 2015 13:57 — forked from milroc/README.md

d3.unconf example gist. Fork it here.

#!/usr/bin/env ruby
require "nokogiri"
# opens every file in the given dir tree and converts any html img tags to rails image_tag calls
#
# example usage:
# ruby convert.rb ~/my_rails_app/app/views
#
# ***be careful and backup before using this***
#