Skip to content

Instantly share code, notes, and snippets.

View acorncom's full-sized avatar

David Baker acorncom

View GitHub Profile
@acorncom
acorncom / controllers.application.js
Last active November 30, 2016 20:45 — forked from diamondo25/controllers.application.js
2.10 'duplicate route error'
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@acorncom
acorncom / components.algolia-search.js
Created November 22, 2016 22:53
initial algolia thoughts
import Ember from 'ember';
export default Ember.Component.extend({
results: [
{ id: 1, text: 'yep, it works' },
{ id: 2, text: 'more it works' },
],
});
@acorncom
acorncom / components.grand-parent.js
Last active November 20, 2016 02:33
template context / actions
import Ember from 'ember';
export default Ember.Component.extend({
name: "George",
actions: {
howdy() {
alert("howdy from grandparent");
}
}
import Ember from 'ember';
import { task, timeout, asyncComputed, emit } from 'ember-concurrency';
export default Ember.Controller.extend({
value: 23,
tweened: asyncComputed('value', function * (v) {
let targetValue = parseInt(v) || 0;
if (targetValue > 100) {
@acorncom
acorncom / controllers.application-error.js
Last active October 17, 2016 15:56 — forked from amk221/controllers.application.js
Basic loading / error templates
import Controller from 'ember-controller';
export default Controller.extend({
init() {
this._super(...arguments);
console.log('error controller initialised');
}
});
@acorncom
acorncom / router.js
Created October 6, 2016 15:36
New Twiddle
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
this.route('app', function() {
@acorncom
acorncom / components.my-component.js
Created April 15, 2016 20:40
setting a component class in parent template
import Ember from 'ember';
export default Ember.Component.extend({
});
@acorncom
acorncom / A "Needs Help" board RFC or roadmap.md
Last active April 11, 2016 03:19
Ember "Needs Help" board

A 'Help Wanted' system for Ember

Regarding a 'Help Wanted' system (which I would hope could be generic enough that other open-source groups could use / fork if desired). Here are a few rough thoughts:

I’ve been mulling over building a system that accumulates various todos from across Ember repos (and, in the future, other, highly used or "blessed" add-ons as well). Initially, my thought would be that it would ease setting up open source nights for meetups around the world (instead of organizers having to go through various repos and hand-pick them). The goal would be for this tool to help ease the "onramp" for new contributors into the Ember world and increase the pool of folks contributing to Ember. But it would also be a way to draw attention to key needs

@acorncom
acorncom / triangle-workflow.md
Created December 22, 2015 22:37 — forked from anjohnson/triangle-workflow.md
Triangle workflows

Triangle Workflows

A triangle workflow involves an upstream project and a personal fork containing a development branch of the project. This configuration makes git pull merge changes from the upstream but git push send local commits to the personal fork.

To set up a project area

  • Fork the project on https://github.com/<project>

If you already cloned the upstream repository

@acorncom
acorncom / application.controller.js
Created November 5, 2015 20:40
sample-dasherized-problem
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions: {
anActionName: function() {
alert("in here");
}
}