Skip to content

Instantly share code, notes, and snippets.

Dan Monroe cah-danmonroe

  • Cardinal Health
Block or report user

Report or block cah-danmonroe

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
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle!!'
});
View controllers.application.js
import Ember from 'ember';
// import { isBlank } from '@ember/utils';
export default Ember.Controller.extend({
appName: 'Ember Power Select - focus',
cities: ['Barcelona', 'London', 'New York', 'Porto'],
actions: {
handleFocus(select, e) {
console.debug('EPS focused!');
View components.table-wrapper.js
import Ember from 'ember';
import { get, set, computed } from '@ember/object';
import { A as emberArray } from '@ember/array';
export default Ember.Component.extend({
sorts: [{valuePath: 'name', isAscending: true}],
columns: [
{
View components.my-table.js
import Ember from 'ember';
import {computed, get, set} from '@ember/object';
export default Ember.Component.extend({
columns: null,
rows: null,
editingRowId: null,
init () {
View components.my-table.js
import Ember from 'ember';
import {computed, get, set} from '@ember/object';
export default Ember.Component.extend({
columns: null,
editingRowId: null,
editingCellValue: null,
init () {
@cah-danmonroe
cah-danmonroe / add-super-calls.js
Created Mar 7, 2017 — forked from Bestra/add-super-calls.js
codemod for adding this._super() calls to component lifecycle hooks
View add-super-calls.js
/**
To use this file you'll need to have `jscodeshift` (https://github.com/facebook/jscodeshift)
installed, which you can get through npm or yarn.
You can invoke it as follows:
`jscodeshift -t add-super-calls.js ~/path/to/js/files/`
You can pass `-d` to do a dry-run.
*/
const hookNames = [
'init',
'didInitAttrs',
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@cah-danmonroe
cah-danmonroe / application.controller.js
Last active Jun 11, 2016
Score grid - without displayscore object
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Score Grid Twiddle',
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
rows: Ember.A([1,2,3,4,5,6,7,8,9,10]),
cols: Ember.A([1,2,3,4,5]),
foos: Ember.A([
Ember.Object.create({
scores: [
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Score Grid Twiddle',
});
You can’t perform that action at this time.