Skip to content

Instantly share code, notes, and snippets.

@phillbaker
phillbaker / hippos.md
Last active January 10, 2022 22:45
Don’t listen to the HiPPOs (writing blog)

From "How Google Works" by Jonathan Rosenberg and Eric Schmidt

Hippopotamuses are among the deadliest animals, faster than you think and capable of crushing (or biting in half) any enemy in their path. Hippos are dangerous in companies too, where they take the form of the Highest-Paid Person’s Opinion. When it comes to the quality of decision-making, pay level is intrinsically irrelevant and experience is valuable only if it is used to frame a winning argument. Unfortunately, in most companies experience is the winning argument. We call these places “tenurocracies,” because power derives from tenure, not merit. It reminds us of our favorite quote from Jim Barksdale, erstwhile CEO of Netscape: “If we have data, let’s look at data. If all we have are opinions, let’s go with mine.

When you stop listening to the hippos, you start creating a meritocracy, which our colleague Shona Brown concisely describes as a place where “it is the quality of the idea that matters, not who suggests it.” Sounds easy, but of

@phillbaker
phillbaker / compliance-masonry.rb
Last active April 30, 2018 16:51
narmi brew tap
class ComplianceMasonry < Formula
desc "Compliance Masonry is a command-line interface (CLI) that allows users to construct certification documentation using the OpenControl Schema."
homepage "https://github.com/opencontrol/compliance-masonry/"
url "https://github.com/opencontrol/compliance-masonry/releases/download/v1.1.2/compliance-masonry_1.1.2_darwin_amd64.zip"
sha256 "a0504ad0c9ad5a1249e65856f14d470b2a0c82f968ddfcbb1abb750060ab6a6e"
bottle :unneeded
def install
bin.install "compliance-masonry" => "compliance-masonry"

Keybase proof

I hereby claim:

  • I am phillbaker on github.
  • I am phillbaker (https://keybase.io/phillbaker) on keybase.
  • I have a public key whose fingerprint is D288 CA80 FFE7 4F75 A6A8 E522 4EEC 6B50 7F4F D5C8

To claim this, I am signing this object:

require 'forwardable'
class MyQueue
extend Forwardable
attr_reader :queue
def initialize
@queue = []
end
def_delegator :@queue, :push, :mypush
def_delegator :@queue, :push

#Introduction

Several layers of css rules:

  • Base: resets, normalize, base colors, typography, etc.
  • Layout: header, footer, wrapper, grid, sidebar, main-column
  • Modules: avatar, buttons, upvote, forms
    • States: (defined with the modules) somemodule-active, somemodule-disabled, -selected
    • Themes: (defined with the modules) somemodule-primary, somemodule-large

Module

@phillbaker
phillbaker / README.md
Last active November 1, 2017 17:44
A micro Gem for rspec controller spec default parameters.
@phillbaker
phillbaker / 0_setup_rails_backbone.sh
Last active December 27, 2015 02:29
Rails + Backbone setup
mkdir -p app/assets/javascripts/backbone/lib/ \
app/assets/javascripts/backbone/models/ \
app/assets/javascripts/backbone/routers/ \
app/assets/javascripts/backbone/templates/ \
app/assets/javascripts/backbone/views/
touch app/assets/javascripts/backbone/lib/.keep \
app/assets/javascripts/backbone/models/.keep \
app/assets/javascripts/backbone/routers/.keep \
app/assets/javascripts/backbone/templates/.keep \
app/assets/javascripts/backbone/views/.keep
require 'rubygems'
require 'bundler/setup'
require 'eventmachine'
require 'em-http-request'
EM.run do
work = 0..1000
concurrent_workers = 100
EM::Iterator.new(work, concurrent_workers).each do |num, em_iter|
// jQuery Plugin ifExists
// v0.0.1
// @phillbaker
//
// To be used if you want to call a (non-core jquery) function on the result of a jquery selector.
//
// Example:
//
// html:
// <button id="start">Start</button>
@phillbaker
phillbaker / Gemfile
Last active December 13, 2019 13:28
Sinatra-Assetpack + LESS (Twitter Bootstrap) demo
source :rubygems
gem 'sinatra'
gem 'sinatra-assetpack'
gem 'json'
gem 'therubyracer'
gem 'less'