Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Antonio Cucciniello acucciniello

🎯
Focusing
View GitHub Profile
@acucciniello
acucciniello / Notes.md
Last active Feb 21, 2018
Alexa Dev Day (2/20/18)
View Notes.md

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
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
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
Proxy
[[Handler]]
:
Object
set
:
function (target, prop, value)
__proto__
:
Object
@acucciniello
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
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
//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 = [ 'https://www.googleapis.com/auth/drive'];
@acucciniello
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>
<html>
<head>
<title>Silent Sight</title>
<link href="Style/main.css" rel="stylesheet" type="text/css"/>
</head>
<h1>
Silent Sight
</h1>
<body id:"mainBody">
You can’t perform that action at this time.