Skip to content

Instantly share code, notes, and snippets.

View anandprabhakar0507's full-sized avatar
🎯
Focusing

Anand Prabhakar anandprabhakar0507

🎯
Focusing
View GitHub Profile
@anandprabhakar0507
anandprabhakar0507 / index.js
Created August 4, 2019 17:25 — forked from pkarthikr/index.js
Implementing Fulfillments and Webhooks in Dialogflow
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
// for Dialogflow fulfillment library docs, samples, and to report issues
'use strict';
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements
@anandprabhakar0507
anandprabhakar0507 / index.js
Created August 4, 2019 17:25 — forked from pkarthikr/index.js
CatIntent
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk');
const GetNewFactHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest';
},
/* eslint-disable func-names */
/* eslint quote-props: ["error", "consistent"]*/
/**
* This sample demonstrates a simple skill built with the Amazon Alexa Skills
* nodejs skill development kit.
* This sample supports multiple lauguages. (en-US, en-GB, de-DE).
* The Intent Schema, Custom Slots and Sample Utterances for this skill, as well
* as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-fact
**/
// This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK (v2).
// Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management,
// session persistence, api calls, and more.
const Alexa = require('ask-sdk-core');
const data = [
'A year on Mercury is just 88 days long.',
'Despite being farther from the Sun, Venus experiences higher temperatures than Mercury.',
'On Mars, the Sun appears about half the size as it does on Earth.',
'Jupiter has the shortest day of all the planets.',
'The Sun is an almost perfect sphere.',
<div class="container">
<div class="planet"></div>
<div class="rocket"></div>
</div>
@anandprabhakar0507
anandprabhakar0507 / index.html
Last active March 14, 2019 22:08
Transition
<div id="outerspace">
<div class="rocket">
<div><!-- rocket --></div>
.rocket
</div>#outerspace
</div>
@anandprabhakar0507
anandprabhakar0507 / index.html
Created March 14, 2019 21:54
Shorthand Animations
<div class="stage">
<figure class="ball"></figure>
</div>