Skip to content

Instantly share code, notes, and snippets.

View monkeyarmada's full-sized avatar
💭
Ook?

Simon Loynes monkeyarmada

💭
Ook?
View GitHub Profile
@monkeyarmada
monkeyarmada / expBackoff.js
Created March 30, 2022 11:20
Exponential backoff test
let backoff = 500;
let backofflimit = 10 * 60 * 1000;
let accumulated = 0;
for (let step = 1; step < 15; step++){
let wait = Math.pow(1.26, step) * backoff;
if (wait > backofflimit) wait = backofflimit - (Math.random() * 1000);
accumulated += wait;
console.log(Math.floor(wait));
@monkeyarmada
monkeyarmada / keybase.md
Created November 9, 2016 23:12
keybase.md

Keybase proof

I hereby claim:

  • I am monkeyarmada on github.
  • I am monkeyarmada (https://keybase.io/monkeyarmada) on keybase.
  • I have a public key ASCsPIU-rXa6WqJxoRcrov4vgF8EFSlaqThA0Y04l9uafQo

To claim this, I am signing this object: