Skip to content

Instantly share code, notes, and snippets.

@sigmike
Created January 6, 2015 16:52
Show Gist options
  • Select an option

  • Save sigmike/918559925af21fc4bd11 to your computer and use it in GitHub Desktop.

Select an option

Save sigmike/918559925af21fc4bd11 to your computer and use it in GitHub Desktop.
GetStakeModifierSelectionIntervalSection
MODIFIER_INTERVAL_RATIO=3
nModifierInterval=6 * 60 * 60
p (0..63).map { |nSection| (nModifierInterval * 63 / (63 + ((63 - nSection) * (MODIFIER_INTERVAL_RATIO - 1)))) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment