Sha256: b5980ab5468bb11c2c9b27714ba15e05189e5e5c45f97aa5b963b0f69a08263d

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

buzzwords = ['Paradigm shift', 'Leverage', 'Pivoting', 'Turn-key', 'Streamlininess', 'Exit strategy', 'Synergy', 'Enterprise', 'Web 2.0'] 
buzzword_counts = Hash.new({ value: 0 })

SCHEDULER.every '2s' do
  random_buzzword = buzzwords.sample
  buzzword_counts[random_buzzword] = { label: random_buzzword, value: buzzword_counts[random_buzzword][:value] + 1 }
  
  send_event('buzzwords', { items: buzzword_counts.values })
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dashing-0.1.0 templates/project/jobs/buzzwords.rb