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.',
@anandprabhakar0507
anandprabhakar0507 / rprog-quiz1.txt
Created March 3, 2019 14:03 — forked from kfeoktistoff/rprog-quiz1.txt
R Programming: Quiz1
1
The R language is a dialect of which of the following programming languages?
S
2
The definition of free software consists of four freedoms (freedoms 0 through 3). Which of the following is NOT one of the freedoms that are part of the definition?
The freedom to prevent users from using the software for undesirable purposes.
3
In R the following are all atomic data types EXCEPT
@anandprabhakar0507
anandprabhakar0507 / ZoomCardController
Created January 31, 2019 01:15 — forked from steve-salmond/ZoomCardController
A simple implementation of an infinite zooming technique a la Zoom Quilt (http://zoomquilt.org) for Unity 3d. Takes the player's position on the z axis and adjusts the cards to match. The cards should be rendered by an orthographic camera
using UnityEngine;
using System.Collections;
public class ZoomCardController : MonoBehaviour {
/** Collection of zooming cards to be displayed. */
public GameObject[] Cards;
/** Distance player travels between cards. */
public float DistanceBetweenCards = 10;
@anandprabhakar0507
anandprabhakar0507 / index.html
Created January 28, 2019 14:59
(Not my own) ProtonVPN IKEv2 profile generator. Copied from https://govt.is/proton.html in case of take-down.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IKEv2 configurator</title>
</head>
<body>
<h2>Use this tool to create an 'on demand' IKEv2 profile.</h2><br />Set an OpenVPN user/pass in Dashboard first.<br />This is not your ProtonMail password.<br />For use with ProtonVPN only.<br />
<form name="mainForm" method="get" id="Main">
<h5><textarea id="input1" cols="20" rows="2" style="display:none;><?xml version="1.0" encoding="UTF-8"?>
@anandprabhakar0507
anandprabhakar0507 / deploy-static-site-heroku.md
Created January 7, 2019 16:09 — forked from wh1tney/deploy-static-site-heroku.md
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@anandprabhakar0507
anandprabhakar0507 / SimpleHTTPServerSSL.py
Created December 19, 2018 17:51 — forked from ubershmekel/SimpleHTTPServerSSL.py
SimpleHTTPServerSSL.py is a python 3 version of SimpleSecureHTTPServer.py from code.activestate.com
'''
SimpleHTTPServerSSL.py - simple HTTP server supporting SSL/TLS. I.e. HTTPS. For python 3.3
- replace CERT and KEY with the location of your .pem server file.
- the default port is 443.
usage: python SimpleHTTPServerSSL.py
based on http://code.activestate.com/recipes/442473-simple-http-server-supporting-ssl-secure-communica/
'''
@anandprabhakar0507
anandprabhakar0507 / google-dorks
Created December 12, 2018 19:53 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!