Skip to content

Instantly share code, notes, and snippets.

Avatar

Bryan Bischof BBischof

  • current: Hex | prev: Weights and Biases, Stitch Fix, Blue Bottle, QuasiCoherent Labs, IBM
  • Berkeley, California
  • Twitter @bebischof
View GitHub Profile
@BBischof
BBischof / .block
Last active October 19, 2022 19:51
Beeswarm (Most Broken)
View .block
license: gpl-3.0
height: 200
@BBischof
BBischof / BBCEngManagerChallenge.md
Last active January 9, 2019 12:12
Work-at-home Challenge for Blue Bottle Coffee Engineering Manager
View BBCEngManagerChallenge.md

Engineering Manager Challenge (Allot at least 2 hours)

Note: Don’t feel constrained by the time limits.

Consider the following scenario:

You have 2 scheduled roasts of Hayes Valley Espresso totaling 50lbs. (For simplicity, assume that all batches are maximum of 30lbs for physical reasons).

Roast A, 20lbs available. 
Roast B, 30lbs available. 
View aoc3_1.txt
#1 @ 55,885: 22x10
#2 @ 102,14: 23x14
#3 @ 539,327: 21x22
#4 @ 429,353: 14x25
#5 @ 232,934: 29x11
#6 @ 796,785: 17x18
#7 @ 508,96: 11x18
#8 @ 83,289: 28x23
#9 @ 291,46: 21x17
#10 @ 505,954: 23x15
View aoc2_1.txt
fonbsmjyqugrapsczckghtvdxl
fonpsmjyquwrnpeczikghtvdxw
fonbsmdymuwrapexzikghtvdxl
fonwsmjyquwrapeczikghttdpl
fonbsmjkquwrapeczjkghtvdxx
yonbsmjyquwrapecgikghtvdxc
donbsmjyquqrapeczikghtadxl
monbsmjyquprgpeczikghtvdxl
fonbsmjyquwvapecqgkghtvdxl
fonbsmjyquwrkphczikghsvdxl
View aoc1_1.txt
-8
-13
+17
+7
+12
-18
+19
+14
-19
+16
@BBischof
BBischof / lightswitch_simulation_metrics.json
Created December 1, 2018 19:36
holds simulation metrics data to speed up notebook computations
View lightswitch_simulation_metrics.json
{
"4": [
{
"j":0,
"sims_metrics":{
"prog_means":[0.816,0.664,0.879,0.819,0.941,0.892,0.947,0.923,0.97,0.952,0.978,0.964,0.982,0.968,0.988,0.98,0.992,0.986,0.993,0.992,0.995,0.995,0.998,0.996,0.998,0.997,1,1,1,1,1,0.999,0.999,0.999,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
"means_conv_val":16,
"prog_medians":[0.816,0.664,0.906,0.847,0.962,0.919,0.971,0.954,0.986,0.976,0.994,0.987,0.994,0.986,0.995,0.993,0.999,0.997,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
"medians_conv_val":10,
"prog_modes":[0.816,0.664,0.906,0.861,0.962,0.935,0.971,0.961,0.986,0.983,0.994,0.99,0.996,0.99,0.997,0.994,1,0.999,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
@BBischof
BBischof / lightswitch_simulation_mle_percentages.json
Last active November 25, 2018 21:05
probabilities for the mle estimate accuracies
View lightswitch_simulation_mle_percentages.json
{ "4": [
[0.814,0.969,0.915,0.978,0.994,0.988,0.995,0.998,0.998,0.999,1,1,1,1,1],
[0.826,0.893,0.951,0.986,0.968,0.995,0.991,0.996,0.996,0.998,0.999,0.999,1,0.999,1],
[0.825,0.685,0.949,0.916,0.978,0.966,0.993,0.991,0.998,0.997,0.997,0.999,0.999,1,1],
[0.829,0.893,0.958,0.986,0.975,0.995,0.991,0.998,0.999,1,1,1,1,1,1],
[0.81,0.96,0.901,0.979,0.993,0.983,0.994,0.999,0.997,1,1,1,1,1,1]]
, "5": [
[0.747,0.954,0.963,0.962,0.992,0.987,0.991,0.998,0.998,0.999,0.999,1,1,1,1],
[0.779,0.896,0.846,0.969,0.944,0.979,0.991,0.992,0.998,0.995,0.998,1,1,1,0.999],
[0.782,0.819,0.923,0.939,0.967,0.972,0.979,0.991,0.992,0.996,0.997,0.999,1,1,1],
@BBischof
BBischof / lightswitch_simulation_convergences.json
Created November 22, 2018 00:44
convergence rates for the lightswitch simulations
View lightswitch_simulation_convergences.json
{ "4": [
{"j":0,"conv_value_for_mean":16,"conv_value_for_median":12,"conv_value_for_mode":12},
{"j":1,"conv_value_for_mean":8,"conv_value_for_median":6,"conv_value_for_mode":8},
{"j":2,"conv_value_for_mean":6,"conv_value_for_median":6,"conv_value_for_mode":6},
{"j":3,"conv_value_for_mean":7,"conv_value_for_median":7,"conv_value_for_mode":7},
{"j":4,"conv_value_for_mean":11,"conv_value_for_median":7,"conv_value_for_mode":7}]
, "5": [
{"j":0,"conv_value_for_mean":26,"conv_value_for_median":14,"conv_value_for_mode":14},
{"j":1,"conv_value_for_mean":12,"conv_value_for_median":10,"conv_value_for_mode":12},
{"j":2,"conv_value_for_mean":6,"conv_value_for_median":6,"conv_value_for_mode":9},
@BBischof
BBischof / lightswitch_simulation_probabilities.json
Created November 22, 2018 00:18
probabilities data for a xor simulation
View lightswitch_simulation_probabilities.json
{ "4": [
{"Initial_lights":0,"Remaining_lights":0,"probability":0.81450625},
{"Initial_lights":0,"Remaining_lights":1,"probability":0.17147500000000004},
{"Initial_lights":0,"Remaining_lights":2,"probability":0.013537500000000004},
{"Initial_lights":0,"Remaining_lights":3,"probability":0.0004750000000000001},
{"Initial_lights":0,"Remaining_lights":4,"probability":0.000006250000000000003},
{"Initial_lights":1,"Remaining_lights":0,"probability":0.04286875},
{"Initial_lights":1,"Remaining_lights":1,"probability":0.821275},
{"Initial_lights":1,"Remaining_lights":2,"probability":0.1289625},
{"Initial_lights":1,"Remaining_lights":3,"probability":0.006775000000000002},
@BBischof
BBischof / .block
Last active November 9, 2018 01:57
Bay Area Climb Rankings Parallel Coordinates
View .block
license: mit