Skip to content

Instantly share code, notes, and snippets.

View morhook's full-sized avatar

Cruz Fernandez morhook

View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
items: Ember.computed('value', function() {
return [this.get('value')];
})
});
import Ember from 'ember';
const { run } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
run.later(() => {
this.set('appName', 'Ember.js');
@morhook
morhook / controllers.application.js
Created November 21, 2016 21:18 — forked from samselikoff/mirage.config.js
Mirage dev boilerplate
import Ember from 'ember';
export default Ember.Controller.extend({
});
@morhook
morhook / play.conf
Last active December 25, 2015 14:29 — forked from leon/play.conf
Start play server with init script.
# Upstart script for a play application that binds to an unprivileged user.
# put this into a file like /etc/init/play.conf
#
# This could be the foundation for pushing play apps to the server using something like git-deploy
# By calling service play stop in the restart command and play-start in the restart command.
#
# Usage:
# start play
# stop play
# restart play