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
{ | |
"description": "Dialogflow Connector", | |
"states": [ | |
{ | |
"name": "Trigger", | |
"type": "trigger", | |
"transitions": [ | |
{ | |
"event": "incomingMessage" | |
}, |
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
/** | |
* Endpoint which handles requests for a Google Assistant action which asks users to say a number | |
* and read out the ordinal of that number. | |
* e.g. If the user says "Twelve" the action will say "The ordinal of twelve is twelfth". | |
*/ | |
exports.raffleUser = functions.https.onRequest((req, res) => { | |
const assistant = new ActionsSdkAssistant({request: req, response: res}); | |
// List of re-prompts that are used when we did not understand a number from the user. |
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
// Replace this with ID of your template document. | |
var TEMPLATE_ID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
// var TEMPLATE_ID = '1wtGEp27HNEVwImeh2as7bRNw-tO4HkwPGcAsTrSNTPc' // Demo template | |
// Demo script - http://bit.ly/createPDF | |
// You can specify a name for the new PDF file here, or leave empty to use the | |
// name of the template. | |
var PDF_FILE_NAME = '' |
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
// Replace this with ID of your template document. | |
var TEMPLATE_ID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
// var TEMPLATE_ID = '1wtGEp27HNEVwImeh2as7bRNw-tO4HkwPGcAsTrSNTPc' // Demo template | |
// Demo script - http://bit.ly/createPDF | |
// You can specify a name for the new PDF file here, or leave empty to use the | |
// name of the template. | |
var PDF_FILE_NAME = '' |
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
/* | |
SK8Led | |
*/ | |
//pins | |
int pins[] = {2,3,4}; | |
//{red, green, blue} | |
int configPins[] = {8,9,11,12}; | |
//{varUpPin, varDownPin, valueUpPin, valueDownPin} |
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
/* | |
*** Xbox Live online users to traffic lights *** | |
created 26 July 2012 | |
by Andrew D. Farquharson | |
- Every 5 mins program will check who is online, and turn a red, orange or green light | |
depending on how meany people are online. | |
- This uses the Text Finder Librarys @ http://www.arduino.cc/playground/Code/TextFinder |