- 1 pound salmon
- 2 avocados
- Bunch of asparagus
- Juice of 2 lemons (or 1 large lemon)
- Small amount of fresh dill (finely chopped)
- Salt + Pepper
- Olive oil
This file contains hidden or 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 Computed Style demo' | |
}); |
This file contains hidden or 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 computedStyle from 'ember-computed-style'; | |
export default Ember.Component.extend({ | |
style: computedStyle('backgroundStyle'), | |
backgroundStyle: { | |
backgroundColor: "red", | |
}, | |
attributeBindings: ['style'], |
This file contains hidden or 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({ | |
}); |
This file contains hidden or 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'; | |
const { run: { next }} = Ember; | |
export default Ember.Mixin.create({ | |
/** | |
* Internal for checking if we have a rendering context. If this is true | |
* the component have been rendered and we're in the next run loop step. | |
* | |
* @type {Boolean} |
This file contains hidden or 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'; | |
import DimensionsMixin from '../../mixins/dimensions'; | |
import { line, catmullRom } from "d3-shape"; | |
import { extent } from "d3-arrays"; | |
import { time, linear } from "d3-scales"; | |
const { computed, observer } = Ember; | |
export default Ember.Component.extend(DimensionsMixin, { |
This file contains hidden or 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
class EmberController < ApplicationController | |
def app | |
content = bootstrap_index(params[:revision]) | |
render html: content.html_safe | |
end | |
private | |
def project_name | |
'dashboard' |
- Add this to your
devDependencies
inpackage.json
.
"ember-cli-replace": "^0.3.0",
- Add the
replace
config ofember-cli-build
to yours. - Replace
baseURL
withrootURL
in/config/environment.js
. - Configure router to use
rootURL
, as seen inrouter.js
- Update your
app/index.html
as perapp-index.html
below, such that you just append@@
in place ofassets
. This will be used as the replace instruction when compiling. For some reason regex doesn't work as expected.
This file contains hidden or 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
class EmberController < ApplicationController | |
def app | |
content = bootstrap_index(params[:revision]) | |
render html: content.html_safe | |
end | |
private | |
def project_name | |
'flood-dashboard' |
This file contains hidden or 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
/* | |
* The MIT License | |
Copyright (c) 2013 by Sveinn Steinarsson | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |