Skip to content

Instantly share code, notes, and snippets.

@RobinDaugherty
Created July 31, 2017 15:54
Show Gist options
  • Save RobinDaugherty/c3c92fe132ba93bd5f50263e6cb39a48 to your computer and use it in GitHub Desktop.
Save RobinDaugherty/c3c92fe132ba93bd5f50263e6cb39a48 to your computer and use it in GitHub Desktop.
Time-series value generator
(1..12).map { |m| [Time.new(2016, m, 1).to_i * 1000, 100 * m] }
(1..12).map { |m| [Time.new(2016, m, 1).to_i * 1000, 1200 / m] }
(1..12).map { |m| [Time.new(2016, m, 1).to_i * 1000, (m / 2) * 100] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment