Roll any number of dice on your command line, including modifiers!
Requrise node v8.x or higher.
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
model: Ember.computed(function() { | |
const notifs = Array.from({ length: 5 }).map(() => this.store.createRecord('optin-notification')); | |
notifs.forEach((notif, i) => { | |
notif.set('name', `OptinNotification ${i}`); | |
if (i % 2 === 0) { | |
notif.send('becameInvalid'); | |
notif.errors.add('name', [ |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
@computed('appName') | |
get screamingAppName() { return this.appName; } | |
}); |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
html: `<div> | |
<img src="https://via.placeholder.com/350x150" width="350" height="150" alt="Placeholder" /> | |
</div>`, | |
}); |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
alert() { | |
alert('Oh no! The action bubbled.'); | |
}, | |
actions: { | |
returnEarly(event) { | |
console.log(arguments); |
export const emojiMap: { [key: string]: string } = { | |
'💯': '100', | |
'🔢': '1234', | |
'😀': 'grinning', | |
'😬': 'grimacing', | |
'😁': 'grin', | |
'😂': 'joy', | |
// ... | |
}; |
# brew install ffmpeg --with-fdk-aac | |
find . -iname "*.mp3" | while read f | |
do | |
ffmpeg -i "$f" -acodec libfdk_aac -f ipod "${f:r}".m4r | |
done |