Source

mobile-demo-set / static / sdk / command / vendor / nodejs / node_modules / jasmine-node / node_modules / jasmine-reporters / ext / phantomjs / examples / fibo.coffee

1
2
3
4
5
6
7
8
fibs = [0, 1]
f = ->
    console.log fibs[fibs.length - 1]
    fibs.push fibs[fibs.length - 1] + fibs[fibs.length - 2]
    if fibs.length > 10
        window.clearInterval ticker
        phantom.exit()
ticker = window.setInterval(f, 300)