I hereby claim:
- I am benoror on github.
- I am benoror (https://keybase.io/benoror) on keybase.
- I have a public key whose fingerprint is 099E C5B1 CC72 1D45 89BF AB46 CCF1 0E48 07D4 6DA6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import DS from 'ember-data'; | |
const ActiveModelAdapter = DS.ActiveModelAdapter; | |
const ApplicationAdapter = ActiveModelAdapter.extend({ | |
shouldReloadAll: function(store, snapshotRecordArray) { | |
return true; | |
}, | |
shouldBackgroundReloadRecord: function(store, snapshot) { | |
return false; |
import DS from 'ember-data'; | |
const ActiveModelAdapter = DS.ActiveModelAdapter; | |
const ApplicationAdapter = ActiveModelAdapter.extend({ | |
shouldReloadAll: function(store, snapshotRecordArray) { | |
return true; | |
}, | |
shouldBackgroundReloadRecord: function(store, snapshot) { | |
return false; |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
/* | |
Here we set any settings that need to be applied | |
to every chart based on this component | |
avoiding code duplication | |
and making stuff look nicer :) | |
*/ | |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1 | |
mQINBFMgUU0BEAC50m+8R2DVAG6hP9FurOBez+6ebhFWwzLqU5cTmS1jiNJvcQlf | |
keEhyYvqpncrcxAy+NCa/x1pLBWgOkJ0yEC85CNgLJOvmYj2zBE+y3ZWz9or72bB | |
KyrhnVkY7L3VE7fX0yhrKTsVrbRal/IRm8T8H2RXAxKnacybqEFksEBkS/lezu6S | |
EUVrLVJPPkjUWJypIi+4J9/iDtJ2nkblndlfQTxHgOR1xdpDpPIqRLBX0g+ppm2K | |
jH+LCovln9zKXUaxxLnFZs43XHbiRijsISxHjIVMkY/6c38khX4kFehSJ3LwmTo2 | |
J5g/GvYhP+IaD5dvQGTuvVOP3El1M0nLGLxNo0tYqgwx7gsWdXLxdxWeJio1Z7Up | |
sjWxalaX8sEMYiK+JOlzSM5rDWfrvugviRYQyTFj8XrRyVj6EdqJ5v16ofQRw+0+ |
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model() { | |
return this.store.query('products', { | |
limit: 10 | |
}); | |
} | |
}); |
import DS from 'ember-data'; | |
export default DS.JSONSerializer.extend({ | |
/* | |
Normalize JSON response | |
to match JSON API guidelines | |
Info: http://jsonapi.org/ | |
*/ | |
normalizeResponse(store, type, payload) { | |
let new_payload = {data: []}; |
import DS from 'ember-data'; | |
export default DS.JSONAPIAdapter.extend({ | |
/* | |
Override with Fieldbook API specific stuff | |
*/ | |
host: 'https://api.fieldbook.com', | |
namespace: 'v1/56ad5a1a0dc76e03001d7ac3', | |
headers: { | |
'Accept': 'application/json', |
import DS from 'ember-data'; | |
export default DS.Model.extend({ | |
name: DS.attr('string') | |
}); |