Module: Termplot::StdinCommands
- Defined in:
- lib/termplot/commands.rb
Instance Method Summary collapse
Instance Method Details
#sin(n) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/termplot/commands.rb', line 17 def sin(n) <<-CMD.chomp for i in $(seq #{n}); do echo $i | awk '{ print sin($0/10)* 10; fflush("/dev/stdout") }'; sleep 0.1; done CMD end |