Sha256: f2d429f5e3833c5d881290a73a5a8dc4f88de0c98739d0931b05e3b8c0f448b9

Contents?: true

Size: 281 Bytes

Versions: 35

Compression:

Stored size: 281 Bytes

Contents

# Populate the graph with some random points
points = []
(1..10).each do |i|
  points << { x: i, y: rand(50) }
end
last_x = points.last[:x]

SCHEDULER.every '2s' do
  points.shift
  last_x += 1
  points << { x: last_x, y: rand(50) }

  send_event('convergence', points: points)
end

Version data entries

35 entries across 35 versions & 6 rubygems

Version Path
smashing-1.3.6 templates/project/jobs/convergence.rb
smashing-1.3.5 templates/project/jobs/convergence.rb
smashing-1.3.4 templates/project/jobs/convergence.rb
smashing-1.3.3 templates/project/jobs/convergence.rb
smashing-1.3.2 templates/project/jobs/convergence.rb
smashing-1.3.1 templates/project/jobs/convergence.rb
smashing-1.3.0 templates/project/jobs/convergence.rb
smashing-1.2.0 templates/project/jobs/convergence.rb
smashing-1.1.0 templates/project/jobs/convergence.rb
smashing-1.0.0 templates/project/jobs/convergence.rb
dashing-1.3.7 templates/project/jobs/convergence.rb
dashing-1.3.6 templates/project/jobs/convergence.rb
baseboard-1.0.4 templates/project/jobs/convergence.rb
baseboard-1.0.3 templates/project/jobs/convergence.rb
baseboard-1.0.2 templates/project/jobs/convergence.rb
baseboard-1.0.1 templates/project/jobs/convergence.rb
rtdi-1.0 templates/project/jobs/convergence.rb
dashing-jruby-1.3.4.1 templates/project/jobs/convergence.rb
dashing-jruby-1.3.4 templates/project/jobs/convergence.rb
dashing-1.3.4 templates/project/jobs/convergence.rb