Skip to content

Instantly share code, notes, and snippets.

View rossjha's full-sized avatar

Ross Haggart rossjha

  • Addepar
  • Brechin, Angus, UK
View GitHub Profile
import Component from '@glimmer/component';
export default class extends Component {
}
@rossjha
rossjha / controllers.application\.js
Last active August 2, 2022 14:29
ember-truth-helpers
import Controller from '@ember/controller';
export default Controller.extend({
// Properties
isImpersonating: true,
claim: Object.freeze({
practice: {
nhs_country: 'WA'
}
@rossjha
rossjha / success.json
Last active July 6, 2022 13:22
twilio conversations issues
{
"id": "TMb1e49a18-b8e0-4993-84ed-618400fbf119",
"method": "init",
"token": "<JWT>",
"continuation_token": null,
"metadata": {
"ver": "0.12.2",
"env": "Chrome",
"envv": "103.0.0.0",
"os": "OS X",
@rossjha
rossjha / lower-buccal.html
Last active July 5, 2022 17:08
lower-buccal.svg
This file has been truncated, but you can view the full file.
<svg width="985" height="125" viewBox="0 0 985 125" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="lower-buccal">
<path id="lower-buccal-LR8" d="M55 4H0V98.8H55V4Z" fill="url(#lower-buccal-pattern-0)"/>
<path id="lower-buccal-LR8-implant" d="M55 4H0V99H55V4Z" fill="url(#lower-buccal-pattern-1)"/>
<path id="lower-buccal-LR7" d="M116.6 4H61V107.4H116.6V4Z" fill="url(#lower-buccal-pattern-2)"/>
<path id="lower-buccal-LR7-implant" d="M116.6 4H61V99.9451H116.6V4Z" fill="url(#lower-buccal-pattern-3)"/>
<path id="lower-buccal-LR6" d="M181.6 4H120V112H181.6V4Z" fill="url(#lower-buccal-pattern-4)"/>
<path id="lower-buccal-LR6-implant" d="M181.6 4H120V98H181.6V4Z" fill="url(#lower-buccal-pattern-5)"/>
<path id="lower-buccal-LR5" d="M234 0H193V110H234V0Z" fill="url(#lower-buccal-pattern-6)"/>
<path id="lower-buccal-LR5-implant" d="M233 0H192V94.8H233V0Z" fill="url(#lower-buccal-pattern-7)"/>
import Component from '@ember/component';
export default Component.extend({
// Properties
tagName: 'button',
attributeBindings: ['disabled', 'tabindex'],
tabindex: 0,
// Events
click(evt) {
import Component from '@ember/component';
import { run } from '@ember/runloop';
import { get, set } from "@ember/object"
export default Component.extend({
isEditing: true,
actions: {
save() {
this.doSave?.()
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
host: 'https://604630b1f0c6dc00177b180b.mockapi.io',
namespace: 'api/v1',
pathForType() {
return 'appointment-queries'
}
});
import Controller from '@ember/controller';
import { get, set } from '@ember/object'
export default Controller.extend({
// Properties
options: [{
id: '1',
name: 'One',
params: {
state: 'Completed'
@rossjha
rossjha / gist:325c1f7ef309c2fe7826a1cef6f4e511
Created May 10, 2022 07:54
Related Files Hooper config
"fileHopper.appRootFolders": [
"assets/javascripts/frontend"
],
"fileHopper.supportedExtensions": [
"js",
"ts",
"html",
"hbs",
"css",
"scss",
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}