This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
jashkenas--coffeescript
Watch
1
Star
0
Fork
You've already forked jashkenas--coffeescript
0
mirror of
https://github.com/jashkenas/coffeescript.git
synced
2022-11-09 12:23:24 -05:00
Code
Releases
Activity
eba271db5b
jashkenas--coffeescript
/
documentation
/
examples
/
generators.coffee
9 lines
111 B
CoffeeScript
Raw
Normal View
History
Unescape
Escape
CoffeeScript 1.9.0
2015-01-29 12:20:46 -05:00
perfectSquares =
->
num =
0
loop
num
+=
1
yield
num
*
num
return
Ensure that all source files end with a single `\n` This was done by first checking all files in the repository root by hand, and then by doing the following: $ npm i get-stdin@4 $ cat clean.coffee fs = require 'fs' stdin = require 'get-stdin' stdin (text) -> for file in text.trim().split('\n') contents = fs.readFileSync file .toString().replace /\s*$/, '\n' fs.writeFileSync file, contents return $ ls !(node_modules)/**/*.coffee | coffee clean.coffee
2015-09-03 13:20:12 -04:00
window
.
ps
or
=
perfectSquares
(
)
Copy permalink