(This is a WIP collection of resources for first time contributors to Ember.js)
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
//http://www.javascriptkit.com/javatutors/requestanimationframe.shtml | |
//http://learncssgrid.com/ | |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
_scroll() { | |
let $el = document.getElementsByClassName('tracks-container')[0]; |
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({ | |
}); |
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({ | |
tagName: '' | |
}); |
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 Twiddle' | |
}); |
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'; | |
let options = [ | |
"111", "222", "333", "444", "555", "666", "777", "888", "999", "000", | |
"111", "222", "333", "444", "555", "666", "777", "888", "999", "000", | |
"111", "222", "333", "444", "555", "666", "777", "888", "999", "000", | |
"111", "222", "333", "444", "555", "666", "777", "888", "999", "000", | |
"111", "222", "333", "444", "555", "666", "777", "888", "999", "000", | |
"111", "222", "333", "444", "555", "666", "777", "888", "999", "000", | |
"111", "222", "333", "444", "555", "666", "777", "888", "999", "000", |
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({ | |
name: 'Alex' | |
}); |
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
#!/usr/bin/env ruby | |
# See https://www.youtube.com/watch?v=gsRTtO-8ofM for details on how to use this | |
require 'net/http' | |
require 'json' | |
CHANNEL_ID = '<CHANNEL_ID_HERE>' | |
API_KEY = '<YOUTUBE_API_KEY_HERE>' | |
YOUTUBE_URL = "https://www.googleapis.com/youtube/v3/channels?part=statistics&id=#{CHANNEL_ID}&key=#{API_KEY}" |
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({ | |
init() { | |
this._super(); | |
this.set('containerKey', this._debugContainerKey); | |
} | |
}); |
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
# ember-cli-detergent | |
Ember linting tools such as [`ember-cli-eslint`](https://github.com/ember-cli/ember-cli-eslint) are a great way of enforcing coding standards and preventing bad practices from entering your Ember applications. The rules that they enforce are all or nothing, if your app already contains these bad practices you are forced to either remove all occurrences before enabling the rule, or simply not use the rule. | |
`ember-cli-detergent` allows you to specify rules and an allowed count of rule failures, eg: | |
```js | |
methods: { | |
'htmlSafe': { | |
allowedCount: 5, |