Skip to content

Instantly share code, notes, and snippets.

@JackEllis
JackEllis / components.component-here.js
Last active February 24, 2017 22:26
Demo of code
import Ember from 'ember';
export default Ember.Component.extend({
inputValue: null,
test: function() {
this.send('changeName', 'Name We Never See');
}.observes('totalUsers'),
actions: {
@JackEllis
JackEllis / gistbook.json
Created November 26, 2014 05:26
Anonymous Gistbook
{"title":"Anonymous Gistbook","author":"JackEllis","pages":[{"pageName":"","sections":[{"type":"text","source":"Issue with router"},{"type":"javascript","source":"// This works, notice that I return the foodRoute with .render()\nfood: function () {\n var that = this;\n this._prepareTrackingSection().done(function() {\n // The food route\n that.foodRoute = new FoodRoute({\n container: that.layout.main\n });\n\n that.foodRoute.setCollection();\n\n return that.foodRoute.render();\n });\n },"},{"type":"javascript","source":"// This does not render the route... Doesn't call .render() on the route.\n// But it worked fine when it wasn't inside a promise. When I simply had return that.foodRoute\n// (outside the callback of done(), it worked fine)\nfood: function () {\n var that = this;\n this._prepareTrackingSection().done(function() {\n // The food route\n that.foodRoute = new FoodRoute({
@JackEllis
JackEllis / gistbook.json
Created November 24, 2014 22:26
Anonymous Gistbook
{"title":"Anonymous Gistbook","author":"JackEllis","pages":[{"pageName":"","sections":[{"type":"text","source":"Using it properly"},{"type":"html","source":"<div id=\"i-hate-gulp\">\n Hello\n</div>"},{"type":"css","source":"#i-hate-gulp {\n font-size:30px;\n font-family:'Open Sans', verdana;\n}"},{"type":"javascript","source":"alert('I h8 Gulp')"}]}],"public":true}
@JackEllis
JackEllis / testing
Created January 23, 2012 15:53
test
<?php echo 'hi'; ?>