#Hello World
This file contains hidden or 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 | |
// - XState (all XState exports) |
This file contains hidden or 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 isFromEditMachine = (context, event) => { | |
return event.origin === 'editMachine'; | |
}; | |
const isFromRefundMachine = (context, event) => { | |
return event.origin === 'refundMachine'; | |
}; | |
const fetchMachine = Machine({ | |
id: 'booking', |
This file contains hidden or 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
/* count number of pushes between Jan 1 and Jan 5 using TABLE_DATE_RANGE */ | |
SELECT COUNT(*) FROM ( | |
TABLE_DATE_RANGE([githubarchive:day.events_], | |
TIMESTAMP('2015-01-01'), | |
TIMESTAMP('2015-05-01') | |
)) | |
WHERE type = 'PushEvent' | |
/* count number of watches between Jan~Oct 2014 using TABLE_QUERY */ | |
SELECT COUNT(*) FROM ( |
This file contains hidden or 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
application: you-app-name-here | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |
This file contains hidden or 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
application: your-app-name | |
version: 1 | |
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
default_expiration: "30d" | |
handlers: | |
# web files |