Skip to content

Instantly share code, notes, and snippets.


Antonio Cucciniello acucciniello

View GitHub Profile
acucciniello /
Last active Feb 21, 2018
Alexa Dev Day (2/20/18)

Alexa Dev Day 2/20/18

Voice Design

  • user has to discover how to use the skill
  • you have to learn through the conversation
  • think voice first
  • cognitive load - amount of information can be held in your brain at once
  • keeping a conversation
  • want to have a wide interface
  • want to give people definitve answers
acucciniello / index.js
Created Aug 2, 2017
A Quick Example of How to setup intents for API.AI intents
View index.js
'use strict';
process.env.DEBUG = 'actions-on-google:*';
const App = require('actions-on-google').ApiAiApp;
const functions = require('firebase-functions');
// [START YourAction]
exports.yourAction = functions.https.onRequest((request, response) => {
const app = new App({request, response});
console.log('Request headers: ' + JSON.stringify(request.headers));
acucciniello / This is the object that gets logged
Created May 29, 2017
When I console.log(title) I end up getting this object
View This is the object that gets logged
function (target, prop, value)
acucciniello / CreateFileFunction.js
Created Oct 26, 2016
The remote endpoint could not be called, or the response it returned was invalid. -> Error in Amazon Dev Portal
View CreateFileFunction.js
var fs = require('fs')
var authorize = require('./google/authorize.js')
var clientSecretsFile = 'client_secret.json'
var createFile = ('./google/createFile.js')
module.exports = CreateFileFunction
function CreateFileFunction (intent, session, response) {
var accessToken = JSON.stringify(session.user.accessToken)
fs.readFile(clientSecretsFile.toString(), function processClientSecrets (err, content) {
acucciniello / docs.js
Created Oct 10, 2016
I am able to print out the token, but Google says there is none set
View docs.js
var fs = require('fs');
var readline = require('readline');
var google = require('googleapis');
var googleAuth = require('google-auth-library');
//If modifying these scopes, delete your previously saved credentials
// at ~/.credentials/drive-nodejs-quikcstart.json
var SCOPES = [ ''];
acucciniello / index.html
Created Sep 28, 2015
mongoClient is not connecting to server, it cannot find my silentSight collection. I have created that in the terminal. MY question is how to get that collection visible to my website
View index.html
<!doctype html>
<title>Silent Sight</title>
<link href="Style/main.css" rel="stylesheet" type="text/css"/>
Silent Sight
<body id:"mainBody">