This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
define([ | |
"components/Manifest" | |
// Plus lots of other components | |
], function() { | |
var components = {}; | |
_.each(arguments, registerComponent); | |
function registerComponent(component) { |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
const validateBarcode = () => {}; | |
const findLabware = () => {}; | |
const labwareScannerMachine = Machine({ | |
key: 'labwareScanner', | |
initial: 'idle', | |
states: { | |
idle: { | |
id: "idle", | |
initial: "normal", |
--- | |
to: src/lib/machines/<%= name %>/<%= name %>Events.ts | |
--- | |
import { <%= Name %>Event } from "./<%= name %>Types"; | |
/** | |
* Event creator for an {@link InitEvent} | |
*/ | |
export function init(message: string): <%= Name %>Event { | |
return { |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |