Skip to content

Instantly share code, notes, and snippets.

David J. Hamilton hjdivad

Block or report user

Report or block hjdivad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hjdivad
hjdivad / controllers.application.js
Created Feb 20, 2019
subroute model recomputation
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View adapters.application.js
import Ember from 'ember';
export default Ember.Object.extend({
deleteRecord(store, modelClass, snapshot) {
return Ember.RSVP.resolve();
}
});
View components.x-component.js
import Ember from 'ember';
export default Ember.Component.extend({
attributeBindings: ['tabindex'],
classNames: ['sortable'],
tagName: 'div',
});
View controllers.application.js
import Ember from 'ember';
const values = [
0, 10, 20, 30,
];
export default Ember.Controller.extend({
sliderIndex: 1,
values: Ember.computed('sliderIndex', function() {
@hjdivad
hjdivad / adapters.application.js
Last active Jul 11, 2017
set -> destroy -> unload semantics
View adapters.application.js
import Ember from 'ember';
import DS from 'ember-data';
const { RSVP: { resolve }} = Ember;
export default DS.Adapter.extend({
deleteRecord() {
return resolve(null);
}
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@hjdivad
hjdivad / adapters.application.js
Last active Feb 16, 2017 — forked from danielspaniel/adapters.application.js
hasMany not cleared by pushPayload
View adapters.application.js
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
});
@hjdivad
hjdivad / adapters.application.js
Created Feb 16, 2017 — forked from danielspaniel/adapters.application.js
hasMany not cleared by pushPayload
View adapters.application.js
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
});
View em2-12.json
{
"summary": {
"build": {
"type": "initial",
"count": 0,
"outputChangedFiles": [
"assets/ena.css",
"assets/ena.js",
"assets/ena.map",
"assets/failed.png",
View em2-4.json
{
"summary": {
"buildCount": 0,
"output": "/Users/dhamilto/src/hjdivad/ena2.4/tmp/broccoli_merge_trees-output_path-NnUesZPT.tmp",
"totalTime": 1322393786,
"totalNodes": 320,
"stats": {
"fs": {
"realpathSync": {
"count": 375,
You can’t perform that action at this time.