I hereby claim:
- I am tamebadger on github.
- I am tamebadger (https://keybase.io/tamebadger) on keybase.
- I have a public key ASAs7zq6MHQsB5p8PURo8OJ2e9vheoEnyHTL0w37E6VGmwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
function isDifferentFlight(flight1, flight2) { | |
let valid = | |
(!flight1 && flight2) || | |
( | |
flight1 && flight2 && | |
( | |
flight1.state !== flight2.state || | |
flight1.flightNumber !== flight2.flightNumber || | |
flight1.takeoffDateTime !== flight2.takeoffDateTime || | |
flight1.originIATA !== flight2.originIATA || |
const pedestrianStates = { | |
initial: 'walk', | |
states: { | |
walk: { | |
on: { | |
PED_COUNTDOWN: 'wait' | |
} | |
}, | |
wait: { | |
on: { |
const parentMachine = Machine({ | |
id: 'your_id_here', | |
initial: 'pending', | |
states: { | |
pending: { | |
on: { CHANGE_EVENT: 'process' } | |
}, | |
process: { | |
type: 'parallel', | |
states: { |
const isUndefined = (x) => typeof x === 'undefined'; | |
const flightOpen = ({ flight }) => !isUndefined(flight); | |
const flightClosed = ({ flight }) => !!isUndefined(flight); | |
const flight = undefined; | |
const fetchMachine = Machine({ | |
id: 'flight', | |
context: { flight, error: undefined }, |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
import Ember from 'ember'; | |
const { computed: { alias }, observer } = Ember | |
export default Ember.Component.extend({ | |
params: Ember.inject.service('task-pager') | |
}) |
import Ember from 'ember'; | |
const { computed: { alias }, observer } = Ember | |
export default Ember.Component.extend({ | |
routing: Ember.inject.service('-routing'), | |
params: alias('routing.router.currentState.routerJsState.fullQueryParams') | |
}) |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
}) |