Skip to content

Instantly share code, notes, and snippets.

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

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.

Ingredients

  • 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 https://github.com/Homebrew/homebrew/blob/master/Library/Formula/python3.rb
# and adapted to use 3.3.x instead of 3.4
# Homebrew: https://github.com/Homebrew/homebrew
# Homebrew is licensed under BSD 2 Clause: https://github.com/Homebrew/homebrew/blob/master/LICENSE.txt
require "formula"
class Python33 < Formula
homepage "https://www.python.org/"
@booleangate
booleangate / a-salesforce-oauth-2.0-jwt-bearer-token-flow-walk-through.md
Last active Mar 2, 2021
Salesforce OAuth 2.0 JWT Bearer Token Flow walk-through
View a-salesforce-oauth-2.0-jwt-bearer-token-flow-walk-through.md

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.

Prerequisites

Create an RSA x509 private key/certification pair

View simple-made-easy.md

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
booleangate / config.py
Last active Oct 12, 2017
Config observers
View config.py
class Config():
def __init__(self, ..., ):
self._observable = ConfigObservable()
self.is_stale_check_enabled = True
def register_observer(self, observer):
self._observable.register(observer)
def clear_observers(self):
View broccolini.md
  • 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
booleangate / javascript.md
Last active Nov 17, 2016
Gotchas and other bullshit
View javascript.md
(function() {})()
(function() {})()

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

@booleangate
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
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) {
++this._counter;
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