I hereby claim:
- I am elwayman02 on github.
- I am jordanhawker (https://keybase.io/jordanhawker) on keybase.
- I have a public key whose fingerprint is C0F5 0250 2F28 2134 760F 65E0 F6E1 84C8 C881 65AC
To claim this, I am signing this object:
{
I hereby claim:
To claim this, I am signing this object:
{
onWaitListUpdate: function() { | |
// If autojoin is not enabled, don't try to disable | |
if (!Settings.autojoin) return; | |
// If user is DJing, don't try to disable | |
var dj = API.getDJ(); | |
if (dj !== null && dj.id === API.getUser().id) return; | |
// If user is in waitlist, don't try to disable | |
if (API.getWaitListPosition() > -1) return; | |
// If waitlist is full, don't try to disable | |
if (API.getWaitList().length == 50) return; |
/** | |
* @license Copyright © 2012-2015 The plug³ Team and other contributors | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
/** | |
* @license Copyright © 2012-2015 The plug³ Team and other contributors | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
$ npm install | |
> jordan-hawker@0.0.3 postinstall c:\Projects\GitHub\jordan-hawker | |
> bower install | |
npm WARN unmet dependency c:\Projects\GitHub\jordan-hawker\node_modules\ember-cl | |
i\node_modules\broccoli-sane-watcher requires sane@'1.0.0-rc1' but will load | |
npm WARN unmet dependency c:\Projects\GitHub\jordan-hawker\node_modules\ember-cl | |
i\node_modules\sane, | |
npm WARN unmet dependency which is version 0.8.0 |
This section explains the basic styles and patterns used in our JavaScript code. It borrows heavily from established resources at other companies that have extensive experience with JS, such as Yahoo, Google, and Mozilla. This guide is written with ES6 syntax in mind.
Some interesting JavaScript tips and gotchas can be found here
Use JS Doc-style comments whenever possible. Google's style guide has a great summary of JSDoc guidelines.
export default Ember.Component.extend({ | |
classNames: ['tharp-component'], | |
firstName: 'Daniel', | |
lastName: 'Tharp' | |
}); |
// foo-component.js | |
export default Ember.Component.extend({ | |
classNames: ['foo'], | |
barClasses: Ember.computed('bar', function () { | |
return this.get('bar') ? 'foo bar' : 'foo'; | |
}), | |
bazClasses: Ember.computed('baz', function () { | |
return this.get('baz') ? 'baz' : ''; |
A: What's Bower?
B: It's a package manager, you install it with NPM.
A: What's NPM?
B: It's a package manager, you install it with Brew.
A: What's Brew?