This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Call +fn+ up to +retries+ times or until it does not raise a StandardError, | |
# returning its result. While exceptions are raised, wait an increasing interval | |
# between attempts. The interval will increase as k^N. | |
# | |
# Examples | |
# myfun = lambda { raise "failed" } | |
# backoff(myfun) # calls myfun at time = 0, 1, 4, 11, 26, 57s | |
# backoff(myfun, retries: 2, k: 1) # calls at time 0, 1, 3, 6, 10, 15s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
# Looks for a keyword argument `dry_run`. If it is explicitly set to false, | |
# then run the actual data change. In all other cases, perform a dry run. | |
# Both #perform_real and #perform_dry_run are expected to be supplied by | |
# the subclass. | |
# | |
# Use a subclass of ProductionDataChange in this way: | |
# @example | |
# ExampleDataChange.new.perform(...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Docking Bubbles</title> | |
<style type="text/css" media="screen"> | |
.bubble { | |
stroke: steelblue; | |
stroke-width: 1; | |
fill: rgba(120, 40, 255, 0.3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
height: 300 |