- Install Git
- Install Node.js
- Setup NPM for non-sudo installation
- The easiest way to do this is by checking out this awesome shell script that will do it for you
- NPM is the node package manager. It will automatically be installed when you install node.
- NPM installs packages locally (within the directory it is invoked in) for per-project modules, or globally for packages you want accessible everywhere.
- However, by default NPM installs global packages in a root-restricted location, requiring SUDO to install. This creates a huge headache. As an alternative, before you install any packages, follow this guide to configure your NPM to install in your home directory without requiring sudo.
- Install Bower:
npm i -g bower
- Install Ember-CLI:
npm i -g ember-cli
- And create a new project named 'wor
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.Component.extend({ | |
foo: false, | |
didReceiveAttrs() { | |
this._super(...arguments) | |
Ember.$.ajax({ | |
url: `//code.highcharts.com/mapdata/countries/us/us-ca-all.js`, | |
dataType: 'script' |
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
[ | |
[ | |
{ | |
"company":"The Control Group", | |
"name":"Amanda", | |
"position":"Designer" | |
}, | |
{ | |
"company":"Seed GC, LLP", | |
"name":"Bethany", |
ember install ember-cli-mirage
git remote add origin https://github.com/DockYard/ember-music.git
git remote update
git checkout origin/master mirage
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
I woke up with the memory of a pretty interesting dream. | |
An ant space station returned to Earth for repairs because it was falling apart. | |
People were lined up to get a peek. No one knew this even existed, | |
it had been kept secret. But the ants were not normal. Apparently this | |
station was built as an experiment - What would happen if a species lived | |
with no predators and limitless resources. The ants developed individuality | |
and acted like humans. They did nothing but sit around and watch TV. | |
Without fear of death there was no need for groupthink or tunneling. | |
It was an odd dream. |
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
// check what modules are loaded with regex | |
Object.keys(requirejs.entries).filter(x => /.+/.test(x)) | |
// ember-cli-mirage check that initializer is loaded | |
Object.keys(requirejs.entries).filter(x => /initializers\/ember-cli-mirage/.test(x)) | |
// run in debug from cli | |
node debug `which ember` test |
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 { | |
Component, | |
computed: { alias } | |
} = Ember | |
export default Ember.Component.extend({ | |
attributeBindings: [ | |
'data', |
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 { | |
Component, | |
computed: { alias } | |
} = Ember | |
export default Component.extend({ | |
attributeBindings: [ | |
'data', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.