- Abid: Medium double iced americano (summer), OR medium double americano (otherwise)
- Alex: Medium double americano, black, no sugar
- Azim: Medium drip, 1 milk
- Drew: Doesn't drink coffee!
- Jerad: Medium drip, black
- Manny: Lactose-free cap
- Michael: Double decaf americ. in a small cup (Jimmy's), OR decaf long black (HDB)
- Michelle: Single cortado
- Roland: Double americano, medium cup, double milk + a splash of cream, 2 sugars
- Yathi: Medium ice latte (summer) OR medium medium (otherwise)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┬─┬◡ノ(° -°ノ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(╯°□°)╯︵ ┻━┻ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
init(){ | |
var model = Ember.Object.create({ | |
title:"My Cool Model", | |
items:[ | |
{name:"item1",isSelected:true}, | |
{name:"item2",isSelected:false} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tests/helpers/model-mock.js | |
export function modelMock(attrs) { | |
const emberDataRecordAttrs = { | |
isValid: true, | |
isNew: false | |
}; | |
return Ember.Object.extend(emberDataRecordAttrs) | |
.create(attrs); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Decorator on a Mirage plain-ol'-JavaScript-object factory | |
* to allow you to create Ember objects. | |
* | |
* The objects act just enough like an Ember Data model that | |
* you can use them as a drop-in replacement for DS.Model instances | |
* in many component integration tests. | |
* | |
* Returns an object with one method, `create`, that returns | |
* subclasses of Ember.Object that are created with the Mirage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
let lastId = 0; | |
export default Ember.Controller.extend({ | |
rootItems: Ember.computed.filter('owner.items', function(item) { | |
return item.get('parent.content') === null; | |
}).property('[email protected]'), | |
owner: Ember.computed(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
let lastId = 0; | |
export default Ember.Controller.extend({ | |
rootItems: Ember.computed.filter('owner.items', function(item) { | |
return item.get('parent.content') === null; | |
}).property('[email protected]'), | |
owner: Ember.computed(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var flatten = function( array ) { | |
var flattenedArray = [ ]; | |
var flattenLoop = function( i ) { i.forEach( function( j ) { | |
if ( Object.prototype.toString.call( j ) === '[object Array]' ) { | |
flattenLoop( j ); | |
} else { | |
flattenedArray.push( j ); | |
} | |
}); | |
}; |