mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
6c6c8d48bf
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 |
||
---|---|---|
.. | ||
binary_search.coffee | ||
bubble_sort.coffee | ||
linked_list.coffee | ||
luhn_algorithm.coffee | ||
merge_sort.coffee | ||
README | ||
selection_sort.coffee |
Ported from Nicholas Zakas' collection of computer science fundamentals, written in JavaScript. Originals available here: http://github.com/nzakas/computer-science-in-javascript