Skip to content

Instantly share code, notes, and snippets.

View gtb104's full-sized avatar

Geoffrey Bell gtb104

  • RSA Security
  • Reston, VA
View GitHub Profile
@gtb104
gtb104 / controllers.application.js
Last active January 14, 2020 17:24
ember-sortable bug
import Controller from '@ember/controller';
import { later } from '@ember/runloop';
export default Controller.extend({
appName: 'Bug ember-sortable',
columns: [
{ title: 'AAAAA' },
{ title: 'BBBBB' },
{ title: 'CCCCC' },
{ title: 'DDDDD' },
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
const {
Component,
computed
} = Ember;
export default Component.extend({
classNameBindings: ['isActive', ':pill-meta'],
import Component from '@ember/component';
import { scheduleOnce } from '@ember/runloop';
import { isEmpty } from '@ember/utils';
import { computed } from '@ember/object';
export default Component.extend({
classNameBindings: ['isActive', ':pill-operator'],
isActive: false,
meta: null,
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
hasStyledBytes: false,
actions: {
toggleByteStyling(val) {
console.log('val', val);
this.set('hasStyledBytes', val);
@gtb104
gtb104 / README.markdown
Last active August 15, 2016 18:27
Mostly Declarative D3

Mostly Declarative D3

This is a mostly declarative approach to creating reusable D3 graph.

@gtb104
gtb104 / README.markdown
Last active August 11, 2016 18:43
Non Declarative D3

Non Declarative D3

This is a non-declarative approach to creating reusable D3 graph.

The main method of reusability will be a library of modules used to create specific portions of a D3 graph.

@gtb104
gtb104 / README.markdown
Last active August 9, 2016 15:23
Declarative D3 v2

Declarative D3 v2

A version which uses a Model(which coordinates multiple scales), and the parent creates the axes.

@gtb104
gtb104 / README.markdown
Last active August 9, 2016 16:55
Declarative D3
@gtb104
gtb104 / application.controller.js
Last active January 21, 2016 16:07
myTwiddle
import Ember from 'ember';
export default Ember.Controller.extend({
a: [1,2,3],
b: [4,5,6],
c: false,
actions: {
toggleLabels() {
this.toggleProperty('c');