Skip to content

Instantly share code, notes, and snippets.

View wheatsislearning's full-sized avatar

Wheats wheatsislearning

View GitHub Profile
@thearn
thearn / brew.py
Last active December 16, 2015 10:59
A simple command-line app to help profile homebrew'ed beer. User inputs starting temperature, starting original gravity, and the app will compute and print temperature-adjusted original gravity and max potential ABV. Final (post-fermentation) temperature and specific-gravity can also be input to calculate effective ABV, calories per serving, and…
def adjust(t, og):
t2 = 1.34722124e-4 * t
t3 = 2.04052596e-6 * t ** 2
t4 = 2.32820948e-9 * t ** 3
sgcf = 1.00130346 - t2 + t3 - t4
sg = og * sgcf
adjusted_og = sg
OE = -668.962 + 1262.45 * sg - 776.43 * sg * sg + 182.94 * sg * sg * sg
abv_max = (sg - 1) * 105 * 1.25
@joejag
joejag / malt.md
Last active November 10, 2015 02:29
Malt for beer

back to main

Malt!

The color of malt is described in degrees Lovibond (°L). Malt, unqualified, always means malted barley.

Barley gives beer its color, underlying flavor, sweetness, body, head of foam, and mouthfeel

Malting

@joejag
joejag / water.md
Last active November 10, 2015 02:09
Water quality for brewing

Back to main

Things to note:

  • Calcium (Ca)
  • Magnesium (Mg)
  • Sodium (Na)
  • Carbonate (CO3)
  • Sulphate (SO4)
  • Chloride (Cl)