In this guide we will cover two main cases:
- Ember specific library
- vendor library
The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.
http://www.youtube.com/watch?v=q_gy8EgN8FE | |
http://www.youtube.com/watch?v=L1B_HpCW8bs&feature=youtu.be&t=0s | |
http://www.youtube.com/watch?v=xxFtyT9TlXE | |
http://www.octolabs.com/blogs/octoblog/2014/04/22/service-oriented-authentication-railsconf/ | |
http://jagthedrummer.github.io/service_oriented_authentication/#/50 | |
http://blog.yorkxin.org/posts/2013/11/05/oauth2-tutorial-grape-api-doorkeeper-en | |
http://anti-pattern.com/adding-a-new-strategy-to-omniauth | |
https://github.com/plataformatec/devise | |
https://github.com/doorkeeper-gem/doorkeeper |
function JSXBailError(message) { | |
this.message = message; | |
} | |
function JSXReadError(message, parser) { | |
var sx = syn.syntaxFromToken({ | |
type: null, | |
value: 'nothing matters', | |
lineStart: parser.lineStart(), | |
lineNumber: parser.lineNumber(), |
Data Down / Actions Up
Plain JSBin's
Ember Version Base JSBin's
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
<%= f.collection_check_boxes :venue_ids, Venue.all, :id, :name, checked: Venue.all.map(&:id) do |b| %> | |
<span> | |
<%= b.check_box %> | |
<%= b.label %> | |
</span> | |
<% end %> |
This is a list of Ember components that can hopefully inspire your own solution to handle some really common cases. Please let me know of more.
test: | |
override: | |
- bundle exec rspec spec | |
deployment: | |
acceptance: | |
branch: master | |
commands: | |
- ./script/heroku_deploy.sh <ACCEPTANCE_HEROKU_APP>: | |
timeout: 300 |
h = { | |
'a' => :a_value, | |
'b' => nil, | |
'c' => false | |
} | |
h.fetch('a', :default_value) #=> :a_value | |
h.fetch('b', :default_value) #=> nil | |
h.fetch('c', :default_value) #=> false | |
h.fetch('d', :default_value) #=> :default_value |