Skip to content

Instantly share code, notes, and snippets.

View Mannaio's full-sized avatar

Tommaso Mannaio

View GitHub Profile
@Mannaio
Mannaio / Robot Hearth Burning man.markdown
Created March 22, 2016 20:14
Robot Hearth Burning man
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
model: function(params) {
var userurl, reposurl, self, git, repoListProxy, usersPromise, repositoriesPromise;
self = this;
git = this.store.createRecord('git',{});
userurl = 'https://api.github.com/users/mannaio';
reposurl = 'https://api.github.com/users/mannaio/repos';
repoListProxy = Ember.ArrayProxy.create({
content: []
});
usersPromise = function(){
import Ember from 'ember';
export default Em.Controller.extend({
userName: null,
prettyUserName: function() {
return this.get('userName') ? this.get('userName') : 'everyone';
}.property('userName')
});
@Mannaio
Mannaio / Custom-Select-Menu.markdown
Last active August 29, 2015 14:15
Custom Select Menu
@Mannaio
Mannaio / Pull-Menu---Menu-Interaction-Concept.markdown
Created December 23, 2014 12:28
Pull Menu - Menu Interaction Concept