Skip to content

Instantly share code, notes, and snippets.

View acucciniello's full-sized avatar
🎯
Focusing

Antonio Cucciniello acucciniello

🎯
Focusing
View GitHub Profile
@acucciniello
acucciniello / Notes.md
Last active February 21, 2018 15:21
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
acucciniello / index.js
Created August 2, 2017 21:40
A Quick Example of How to setup intents for API.AI intents
'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 15:34
When I console.log(title) I end up getting this object
Proxy
[[Handler]]
:
Object
set
:
function (target, prop, value)
__proto__
:
Object
@acucciniello
acucciniello / CreateFileFunction.js
Created October 26, 2016 21:32
The remote endpoint could not be called, or the response it returned was invalid. -> Error in Amazon Dev Portal
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 October 10, 2016 00:10
I am able to print out the token, but Google says there is none set
//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 September 28, 2015 23:40
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
<!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">