Skip to content

Instantly share code, notes, and snippets.

View martynling's full-sized avatar

Martyn Ling martynling

View GitHub Profile

Keybase proof

I hereby claim:

  • I am martynling on github.
  • I am martynling (https://keybase.io/martynling) on keybase.
  • I have a public key ASD98fXuKKR9E6fjeOgI5U52V_rD3Mzv8c5ByVhqbObhiQo

To claim this, I am signing this object:

import Ember from 'ember';
export default Ember.Component.extend({
milesAway: Ember.computed('vineyard.location', function() {
let location = this.get('vineyard.location');
// Your code to calculate the distance
let distance = 200;
return distance;
}),