This file contains 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
const initialContext = { | |
file: 'NO VALUE', | |
success: 'NO VALUE', | |
direction: 1, | |
error: 'NO VALUE', | |
validationError: 'NO VALUE', | |
}; | |
const UploadMachine = Machine({ | |
id: 'upload', |
This file contains 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains 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 Component from '@ember/component'; | |
import { observer } from '@ember/object'; | |
import DynamicTable from '../../mixins/ember-light-table-data-mixin'; | |
export default Component.extend(DynamicTable, { | |
sort: '', | |
dir: '', | |
isLoading: true, | |
onDataTableLoad: observer('dataTable', function() { |
This file contains 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 Component from '@ember/component'; | |
import { observer } from '@ember/object'; | |
import DynamicTable from '../mixins/ember-light-table-data-mixin'; | |
export default Component.extend({ | |
sort: '', | |
dir: 'asc', | |
isLoading: true, | |
onDataTableLoad: observer('dataTable', function() { |
This file contains 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', | |
columns: Ember.computed(function () { | |
return [ | |
{ | |
label: 'OrderId', | |
valuePath: 'orderId', | |
align: 'right', |
This file contains 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 Component from '@ember/component'; | |
import move from 'ember-animated/motions/move'; | |
import scale from 'ember-animated-motions/scale'; | |
import { parallel } from 'ember-animated'; | |
export default Component.extend({ | |
showThing: false, | |
transition: function * ({ receivedSprites, sentSprites }) { | |
receivedSprites.forEach(parallel(scale, move)); |
This file contains 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 move from 'ember-animated/motions/move'; | |
import opacity from 'ember-animated/motions/opacity'; | |
import { easeOut, easeIn } from 'ember-animated/easings/cosine'; | |
import Promise from 'rsvp'; | |
export default Ember.Component.extend({ | |
myProperty: false, | |
transition: function* ({ insertedSprites, keptSprites, removedSprites, duration }) { |
This file contains 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
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
This file contains 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
#!/bin/bash | |
# Let's get some color going! | |
red=$'\e[1;31m' | |
grn=$'\e[1;32m' | |
end=$'\e[0m' | |
# cd to cwd of the script (presumably in it's proper location) | |
cd "$(dirname "$0")" | |
printf "\nInstalling Sketch templates..." |
This file contains 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', | |
queryParams: ['name'], | |
name: 'Kim' | |
}); |
NewerOlder