Skip to content

Instantly share code, notes, and snippets.

View agrimrules's full-sized avatar
🔭
Whats next ?

Agrim Asthana agrimrules

🔭
Whats next ?
View GitHub Profile

Keybase proof

I hereby claim:

  • I am agrimrules on github.

  • I am overlordagr (https://keybase.io/overlordagr) on keybase.

  • I have a public key ASCdDD5PqZNAZg_mLnqpU7yqGlaSaUn1ISs8d12ft8ztSQo

'use strict';
var Alexa = require('alexa-sdk');
var twilio = require('twilio');
var sentiment = require('sentiment');
var speakeasy = require('speakeasy');
var client = new twilio.RestClient(process.env.SID, process.env.TOKEN);
var token = process.env.two_fa_token;
exports.handler = function(event, context, callback) {
TextIntent to text {how are you |WORD}
TextIntent to text {Good night |WORD}
TextIntent to text {Dicks out for Harambe |WORD}
AnalyzeIntent to analyze {Whats up |SENTIMENT}
AnalyzeIntent to process {When in rome do like the romans do |SENTIMENT}
AnalyzeIntent to evaluate {Jet fuel cant melt steel beams |SENTIMENT}
AuthorizeIntent to stop {server |SERVICE}
AuthorizeIntent to restart {nginx |SERVICE}
VerifyIntent access code {CODE}
VerifyIntent code {CODE}
{
"intents": [
{
"slots": [
{
"name": "WORD",
"type": "LITERAL"
}
],
"intent": "TextIntent"
echo 'export HISTCONTROL=ignorespace' >> ~/.bash_profile;
brew install m-cli;
echo "alias sl='m lock'" >> ~/.bash_profile;
npm i -g begoo;
echo "begoo 'next time please lock your computer' --avatar dog" >> ~/.bash_profile;
package com.a10a.spark.brewery
import org.apache.spark.ml.tuning.TrainValidationSplit
import com.cloudera.sparkts.models.ARIMA
import com.mongodb.spark._
import com.mongodb.spark.config.WriteConfig
import org.apache.spark
import org.apache.spark.mllib.linalg.Vectors
import org.apache.spark.sql.{Column, DataFrame, Row, SparkSession}
var cheerio = require('cheerio');
var request = require('request');
var mongoose = require('mongoose');
var Beer = require('./beer');
mongoose.connect('REDACTED');
var beers = []
@agrimrules
agrimrules / sample.twiml
Last active March 17, 2017 04:45
playing around with twiml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="alice" language="en-IN">You what mate, I will bash ye head in, I swear on me mum!</Say>
<Hangup/>
</Response>
@agrimrules
agrimrules / cv.py
Last active January 26, 2017 05:28
import cv2
import urllib
import numpy as np
from sklearn.cluster import KMeans
import utils
import requests
import time
url = 'http://AgrimRPI3.local:5000/setpixel' //The Avahi Daemon is a beautiful thing
stream = urllib.urlopen('http://AgrimRPI2:8080/?action=stream')
bytes = ''
#!/bin/sh
./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so -vf"