1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/examples/computer_science
Simon Lydell 6c6c8d48bf 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 19:20:12 +02:00
..
binary_search.coffee Ensure that all source files end with a single \n 2015-09-03 19:20:12 +02:00
bubble_sort.coffee Ensure that all source files end with a single \n 2015-09-03 19:20:12 +02:00
linked_list.coffee Back to non-naked constructor, @, preincrement, comprehension bracketing, idioms: calls, comprehensions, interpolations 2013-12-09 22:28:34 +00:00
luhn_algorithm.coffee Back to non-naked constructor, @, preincrement, comprehension bracketing, idioms: calls, comprehensions, interpolations 2013-12-09 22:28:34 +00:00
merge_sort.coffee Ensure that all source files end with a single \n 2015-09-03 19:20:12 +02:00
README adding soaked method calls, with caching 2010-01-24 12:52:15 -05:00
selection_sort.coffee Ensure that all source files end with a single \n 2015-09-03 19:20:12 +02:00

Ported from Nicholas Zakas' collection of computer science fundamentals, written
in JavaScript. Originals available here:

http://github.com/nzakas/computer-science-in-javascript