Skip to content

Instantly share code, notes, and snippets.

@mockra
Created August 17, 2014 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mockra/e40fcfc83882a7abd010 to your computer and use it in GitHub Desktop.
Save mockra/e40fcfc83882a7abd010 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Component.extend({
size: 200,
email: '',
gravatarUrl: function() {
var email = this.get('email'),
size = this.get('size');
return 'http://www.gravatar.com/avatar/' + window.md5(email) + '?s=' + size;
}.property('email', 'size')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment