Skip to content

Instantly share code, notes, and snippets.

View satishp962's full-sized avatar
🤵‍♂️
Growing

Satish Pandey satishp962

🤵‍♂️
Growing
View GitHub Profile
@satishp962
satishp962 / dialogflow-utils.js
Last active April 26, 2022 05:25
Twilio Dialogflow Media Stream
const EventEmitter = require("events");
const {
Transform,
PassThrough,
pipeline
} = require("stream");
const uuid = require("uuid");
const dialogflow = require("@google-cloud/dialogflow").v2beta1;
const structjson = require("structjson");
const WaveFile = require("wavefile").WaveFile;
# import flask modules
from flask import Flask, make_response, request, jsonify
# build the flask app
app = Flask(__name__)
# definition of the results function
def results():
req = request.get_json(force=True)
action = req.get('queryResult').get('action')
@satishp962
satishp962 / matplotlib-basics.ipynb
Last active September 21, 2018 11:42
Matplotlib basics code samples to get started with the 2D plotting in python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@satishp962
satishp962 / keras_prediction.py
Created February 20, 2018 12:46 — forked from hnykda/keras_prediction.py
Predicting sequences of vectors (regression) in Keras using RNN - LSTM (danielhnyk.cz)
import pandas as pd
from random import random
flow = (list(range(1,10,1)) + list(range(10,1,-1)))*100
pdata = pd.DataFrame({"a":flow, "b":flow})
pdata.b = pdata.b.shift(9)
data = pdata.iloc[10:] * random() # some noise
import numpy as np
@satishp962
satishp962 / OpenWithSublimeText3.bat
Last active October 18, 2017 16:47 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from File Explorer context menu (tested on Windows 10 Pro x64)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text" /f