Skip to content

Instantly share code, notes, and snippets.

booleangate / !Rib
Last active Nov 21, 2018
Rib Roast and Au Jus
View !Rib

Reverse-Sear Rib Roast

I heard you like the maillard reaction. This technique is all about drying out the surface of the meat so that you get an incredible sear right when you're ready to serve.


  • 8 lb rib roast, fat trimmed
  • 2 tablespoon kosher salt
  • 2 teaspoons freshly ground black pepper
  • 2-3 sprigs rosemary, chopped
View python33.rb
# taken from
# and adapted to use 3.3.x instead of 3.4
# Homebrew:
# Homebrew is licensed under BSD 2 Clause:
require "formula"
class Python33 < Formula
homepage ""
booleangate /
Last active Jul 6, 2022
Salesforce OAuth 2.0 JWT Bearer Token Flow walk-through

Salesforce OAuth 2.0 JWT Bearer Token Flow Walk-Through

This document will walk you through how to create or configure a Salesforce application for use with JWT authentication. These configuration steps and the example code works as of Salesforce API version 42.0.


Create an RSA x509 private key/certification pair


Simple made Easy - Rich Hickey

Easy vs Simple

  • Easy: fast, near our understanding, familiar

  • Simple: does one thing

  • Complex: intertwined. Requires knowing or thinking about more things at the same time.

  • Easy is relative

    • Easy for who? Hard for who?
  • Complex is objective

booleangate /
Last active Oct 12, 2017
Config observers
class Config():
def __init__(self, ..., ):
self._observable = ConfigObservable()
self.is_stale_check_enabled = True
def register_observer(self, observer):
def clear_observers(self):
  • broccolini for two
  • 1 small shallot, minced
  • juice of 1 lemon,
  • 1 tbsp butter
  • white wine
  1. boil broccolini for 2-3 minutes, meanwhile saute shallot in browned butter. salt lightly.
  2. drain and rinse in cold water.
  3. add broccolini, lemon and a dash of wine to shallots, saute for 2-3 minutes (to reduce a liquids a little bit). broccolini should be tender but not limp. add pepper to taste.
booleangate /
Last active Nov 17, 2016
Gotchas and other bullshit
(function() {})()
(function() {})()

Uncaught TypeError: (intermediate value)(...) is not a function(…)

booleangate / random-string.js
Created Jun 7, 2016
Simple alpha-numeric string
View random-string.js
parseInt(Math.random().toString().split('.')[1], 10).toString(36)
booleangate / count-down-latch.js
Last active Mar 28, 2017
Simple JS count down latch with data passthrough
View count-down-latch.js
function CountDownLatch(onComplete) {
this._counter = 0;
this._onComplete = onComplete;
this._returnValues = {};
CountDownLatch.prototype.addListener = function(name) {
return this._countDown.bind(this, name);
View triple.js
var assert = require('assert');
* Return true if the array contains, somewhere, three increasing
* adjacent numbers like .... 4, 5, 6, ... or 23, 24, 25.
* See the asserts below for examples of input
* and expected output.
* If you have node installed, all you need to do to test