I hereby claim:
- I am lougreenwood on github.
- I am lougreenwood (https://keybase.io/lougreenwood) on keybase.
- I have a public key ASCNmY3F5jCEq3M2oS9FNpiQLiXQQAhs6nYWk9h-loGZxQo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Twitter (app store) |
I hereby claim:
To claim this, I am signing this object:
JS decorators are commonly written as a prepend to the class member name, this can affect readability of the code.
As such, I propose that we should always place a JS native class decorator on a new line and place a line break between each decorated class member when there is a group of them.
class {
@tracked
calculatedThing;
import Promise from 'rsvp' | |
import BaseAuthenticator from 'ember-simple-auth/authenticators/base' | |
export default BaseAuthenticator.extend({ | |
authenticate() { | |
alert('authenticated') | |
return Promise.resolve({token: "123abc"}) | |
}, | |
restore(data) { |
import DS from 'ember-data' | |
export default DS.Adapter.extend({ | |
queryRecord() { | |
try { | |
let uP = this.store.createRecord('user-permissions', { id: 123, name: 'users permissions' }) | |
console.log(uP) | |
return this.store.createRecord('user', { id: 123, name: 'a user', userPermissions: uP }) |
import Ember from 'ember'; | |
import {inject as service} from '@ember/service'; | |
export default Ember.Component.extend({ | |
fetchTask: service(), | |
init() { | |
this._super(...arguments); | |
// this.fetchResult = this.fetchTask.doFetch.perform(); |