Skip to content

Instantly share code, notes, and snippets.

@bagby
bagby / using-cardstack-github-data-source.md
Created March 13, 2020 19:12
Using Github as a Cardstack data source
0xcaccf91fddd4cf5daf95806c929cfa70938781dd
0xDe15700e7e9AFe276B6780C266d8C5168Dab9090
@bagby
bagby / model-girlboss.json
Created May 8, 2017 15:31
Girlboss mCast model
{
"activeRoute": "index",
"auth": "somelongstringtopreventrandompeoplefromfuckingupourshit",
"fontUrl": "https://fonts.googleapis.com/css?family=Roboto:400,700",
"id": "6d257b33-ff17-40cc-a93c-ff41d5b1da57",
"models": {
"index": {
"backgroundImage": "./images/girlboss_rally_logo.png",
"backgroundRevealPercentage": 0.13,
"carouselImage": "./images/girlboss_logo_small.png",
@bagby
bagby / gist:9450322
Last active August 29, 2015 13:57
{{each}} of computed property
models:
App.Lesson = DS.Model.extend({
contentCards: DS.hasMany('contentCard', { async: true }),
learningObjectives: function() {
return this.get('contentCards')
.mapBy('assignedLearningObjectives')
.flatten()
.mapBy('learningObjective')