Skip to content

Instantly share code, notes, and snippets.

View devinus's full-sized avatar

Devin Alexander Torres devinus

View GitHub Profile
@devinus
devinus / gist:76ccdaf1467f75680f57c67f5a2b55ac
Created October 25, 2017 23:11 — forked from anonymous/gist:75d655df03dc5a906b887dd9b230491c
Getting fastboot POSTs working for ember serve:
// lib/post-middleware/package.json
{
"name": "post-middlware",
"keywords": [
"ember-addon"
],
"ember-addon": {
"before": "broccoli-watcher"
}
}
@devinus
devinus / def.exs
Created October 9, 2013 21:31 — forked from josevalim/def.exs
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
@devinus
devinus / elixir.rb
Created September 13, 2012 15:45 — forked from josevalim/elixir.rb
Elixir Homebrew recipe
# 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:
@devinus
devinus / elixir.rb
Created September 10, 2012 19:21 — forked from josevalim/elixir.rb
Elixir Homebrew recipe
# 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:
@devinus
devinus / binding.js
Created September 6, 2012 20:32 — forked from anonymous/binding.js
Helpful SproutCore Binding Transforms
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;
});
@devinus
devinus / gist:1602870
Created January 12, 2012 20:19 — forked from joewest/gist:1602792
build tools and junk

User interface for ember command

Initialize

Sets up a new project.

$ ember init <project>

Would generate: