View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View error
(stdlib) :lists.keysearch(:version, 1, [{:timeout, 300000} | {:error, :missing_cacertfile}])
(inets) httpc.erl:685: :httpc.http_options/3
(inets) httpc.erl:543: :httpc.handle_request/9
(oidcc) /Users/bcardarella/Dropbox/projects/dockyard-api/deps/oidcc/src/oidcc_http_util.erl:78: :oidcc_http_util.perform_http_request/4
(oidcc) /Users/bcardarella/Dropbox/projects/dockyard-api/deps/oidcc/src/oidcc_openid_provider.erl:203: :oidcc_openid_provider.http_async_get/4
(oidcc) /Users/bcardarella/Dropbox/projects/dockyard-api/deps/oidcc/src/oidcc_openid_provider.erl:146: :oidcc_openid_provider.handle_cast/2
(stdlib) gen_server.erl:601: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:667: :gen_server.handle_msg/5
View gist:384d31557995320a90e43fca4736fb76
** (UndefinedFunctionError) function Foobar.__before_compile__/1 is undefined or private. Did you mean one of:
* __before__compile__/1
View bar.ex
defmodule Bar do
use Foo
end
View components.speech-button.js
import Ember from 'ember';
const {
get,
set
} = Ember;
export default Ember.Component.extend({
tagName: 'button',
View ember-cli-error
➜ client ✗ ember s
Cannot read property '0' of undefined
TypeError: Cannot read property '0' of undefined
at EmberApp._initVendorFiles (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/ember-cli/lib/broccoli/ember-app.js:300:55)
at new EmberApp (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/ember-cli/lib/broccoli/ember-app.js:94:8)
at module.exports (/Users/bcardarella/Dropbox/projects/courier_web/client/ember-cli-build.js:6:13)
at Class.module.exports.Task.extend.setupBroccoliBuilder (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/ember-cli/lib/models/builder.js:55:19)
at Class.module.exports.Task.extend.init (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/ember-cli/lib/models/builder.js:89:10)
at new Class (/Users/bcardarella/Dropbox/projects/courier_web/client/node_modules/core-object/core-object.js:18:12)
at Class.module.exports.Task.extend.run (/Users/bcardarella/Dropbox/projects/courier_web/cl
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
name: 'Bar'
});
View components.my-component.js
import Ember from 'ember';
const {
Component
} = Ember;
const MyComponent = Component.extend();
MyComponent.reopenClass({
positionalParams: ['value']
View nginx.conf
location /blog/mailchimp.xml {
try_files /blog/atom.xml @phoenix;
}
View sitemap.ex
defmodule DockYard.Sitemaps.Blog do
use Sitemap, host: "https://#{Application.get_env(:dockyard, DockYard.Endpoint)[:url][:host]}"
def generate do
posts = DockYard.Repo.all(DockYard.Post)
create do
Enum.each(posts, fn(post) ->
add "blog/#{post.slug}", priority: 0.5, changefreq: "hourly", expires: nil, mobile: true
end)