Skip to content

Instantly share code, notes, and snippets.

View thousand's full-sized avatar
🎛️
Twiddlin'

Bryan Levay thousand

🎛️
Twiddlin'
View GitHub Profile
@thousand
thousand / input.scss
Created April 26, 2023 17:27
Generated by SassMeister.com.
ul {
padding-left: 1em;
.component & {
padding-left: 0;
}
}
import Component from '@glimmer/component';
export default class extends Component {
get isActive() {
return this.args.currentItem === this.args.name
}
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
@thousand
thousand / controllers.application\.js
Last active October 28, 2020 19:59
leeloo dallas multiblock
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
import Component from '@glimmer/component';
export default class extends Component {
}
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { next } from '@ember/runloop';
import { action } from '@ember/object';
export default class extends Component {
@tracked showOldCount = false;
lastCounts = [];
@thousand
thousand / components.classic-component\.js
Last active May 29, 2020 21:27
classic component modifiers
import Component from '@ember/component';
export default Component.extend({
classNames: ['component-box'],
})
@thousand
thousand / components.splat-after\.js
Last active June 24, 2020 12:41
Splat Order Demo
import Component from '@glimmer/component';
export default class extends Component {
}
import Controller from '@ember/controller';
import { action } from '@ember/object';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
focused = false;
disabled = false;
@action
@thousand
thousand / components.thing-item\.js
Last active May 1, 2020 22:49
Contextual Double Yield
import Component from '@glimmer/component';
export default class extends Component {
}