User interface for ember command
Sets up a new project.
$ ember init <project>Would generate:
| // lib/post-middleware/package.json | |
| { | |
| "name": "post-middlware", | |
| "keywords": [ | |
| "ember-addon" | |
| ], | |
| "ember-addon": { | |
| "before": "broccoli-watcher" | |
| } | |
| } |
| def next_state do | |
| (board, x, y) -> | |
| cell = cell_at(board, x, y) | |
| live_count = live_neighbors(board, x, y) | |
| next_state(cell, live_count) | |
| (_, x, y) when (x < 0 or y < 0) -> | |
| "." | |
| end | |
| def next_state do |
| # Install this recipe with: | |
| # brew install --HEAD https://raw.github.com/gist/3715216/fcc8b4142a0010d04dc2bba6c2d7d641c137f615/elixir.rb | |
| require 'formula' | |
| class ErlangInstalled < Requirement | |
| def message; <<-EOS.undent | |
| Erlang is required to install. | |
| You can install this with: |
| # Install this recipe with: | |
| # brew install https://raw.github.com/gist/1968046/0302279edc972e9d147110bd69284d0e2becda41/elixir.rb | |
| require 'formula' | |
| class ErlangInstalled < Requirement | |
| def message; <<-EOS.undent | |
| Erlang is required to install. | |
| You can install this with: |
| SC.Binding.lt = function (max) { | |
| return this.transform(function (value, binding) { | |
| return SC.typeOf(value) === SC.T_NUMBER && value < max; | |
| }); | |
| }; | |
| SC.Binding.gt = function (min) { | |
| return this.transform(function (value, binding) { | |
| return SC.typeOf(value) === SC.T_NUMBER && value > min; | |
| }); |