I hereby claim:
- I am slindberg on github.
- I am slindberg (https://keybase.io/slindberg) on keybase.
- I have a public key whose fingerprint is B8DE 7D75 20BF AE0F 4BBF 5301 B3D8 0328 DA30 4283
To claim this, I am signing this object:
% | |
(Modal reset) | |
G0 G90 G17 G40 H0 G70 G80 | |
(Tool change - black sharpie) | |
G53 Z0.0 | |
M06 T1 | |
M19 | |
G54 X0.0 Y0.0 | |
G0 Z0.25 H1 |
I hereby claim:
To claim this, I am signing this object:
import ifConditionHelper from 'myapp/helpers/if-condition'; | |
/** | |
* Logical AND Existence Conditional Block | |
* | |
* Usage: {{#if-all-exists field1 field2}}Either field1 or field2 is truthy{{/if-all-exists}} | |
* | |
* Executes the given block if all arguments are defined | |
*/ | |
export default function() { |
This plugin got promoted to its own repository.
/** | |
Ember Data: Dependent Relationships | |
This package extends Ember Data to support creating relationships | |
where a model's dirty state depends not only on its own attributes | |
but on the dirty state of models in dependent relationships as well. | |
```javascript | |
App.Thing = DS.Model.extend({ | |
name : DS.attr('string'), |
This is a set of helpers for finding the application's currently active models/routes/controllers/etc. This isn't a straightforward process because of how Ember (rightly) encapsulates application objects, but it's useful in debugging environments to be able to quickly access them. And with the beta release of Ember Data, the store is not easily accessible without helpers either.
All helpers can be called directly if you provide them an application instance:
App.ApplicationSerializer = DS.RESTSerializer.extend({ | |
// Extract embedded relations from the payload and load them into the store | |
normalizeRelationships: function(type, hash) { | |
var store = this.store; | |
this._super(type, hash); | |
type.eachRelationship(function(attr, relationship) { | |
var relatedTypeKey = relationship.type.typeKey; |
<html> | |
<head> | |
<title>Chart</title> | |
<style> | |
path { | |
stroke: #f00; | |
} | |
.line { | |
stroke: #0f0; | |
fill: none; |