Skip to content

Instantly share code, notes, and snippets.

View jas7457's full-sized avatar

Jason Addleman jas7457

View GitHub Profile
@jas7457
jas7457 / shipit.js
Created January 10, 2023 16:18
TextExpander JS code to pick random shipit command
// choose Content Type JavaScript in TextExpander and use the following code to pick a random shipit command
// In a Github comment on your PR, type your TextExpander abbreviation and have it replaced with a random shipit command!
const commands = [
'/shipit',
'/shrimpit',
'/🦐it',
'/🚢it',
'/gucci',
'/legendapproved',
@jas7457
jas7457 / controllers.application\.js
Last active September 13, 2021 16:03
New Twiddle
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
test = true;
}
@jas7457
jas7457 / components.counter\.hbs
Last active August 4, 2021 18:12
New Twiddle
<div style="border: 1px solid black; padding: 10px;">
<p>Create a simple counter that counts up when you click "Count Up" and counts down when you click "Count Down"</p>
Counter: 0
<div>
<button>Count Down</button>
<button>Count Up</button>
</div>
</div>
@jas7457
jas7457 / components.test\.js
Last active July 9, 2021 13:29 — forked from mastastealth/components.test\.js
Select All Shenanigans
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
export default class Test extends Component {
@tracked selectedFiles = [];
files = ["a", "b", "c"];
@action
handleFileToggle(file) {
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
arr = [1, 2, 3];
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
unlicensed = false;
something = true;
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
arg: 'hey',
obj: {
hey: 'hi'
}
}
import Component from '@glimmer/component';
import { action } from '@ember/object';
export default class extends Component {
@action
outer() {
console.log('clicked outer');
}
@action