Skip to content

Instantly share code, notes, and snippets.

View AbhishekAshokDubey's full-sized avatar

Abhishek Dubey AbhishekAshokDubey

View GitHub Profile
# -*- coding: utf-8 -*-
"""
Created on Fri May 05 04:12:36 2017
@author: ADubey4
"""
from __future__ import unicode_literals, print_function
import gensim
from gensim.parsing import PorterStemmer
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
from collections import defaultdict
from io import StringIO
using Microsoft.Rtc.Collaboration;
using Microsoft.Rtc.Signaling;
using System;
using System.Threading;
namespace ucma1
{
class Program
{
private const string sipaddress = "sip:sender@domain.com";
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 5 17:23:53 2018
@author: ADubey4
"""
import cv2
from pytesseract import pytesseract as pt
import pandas as pd
from PIL import Image
https://www.youtube.com/githubguides
https://guides.github.com/introduction/flow/
git clone <url>
cd <repo_folder>
<make changes>
git add .
git commit -m "1st"
git push
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 02 14:20:28 2018
@author: ADubey4
=========================================================================
Code to automate the data pre-processing and ML pipeline for the project
=========================================================================
Features provided:
@AbhishekAshokDubey
AbhishekAshokDubey / send_email.py
Created April 17, 2020 09:44
sample email sending API
# -*- coding: utf-8 -*-
"""
@author: abhishek
"""
from exchangelib import Account, Credentials, DELEGATE, Configuration, NTLM, Mailbox, Message, FileAttachment
from exchangelib.protocol import BaseProtocol, NoVerifyHTTPAdapter
def send_email(account, subject , body, to, cc = [], bcc=[], attachment_path = ""):
m = Message(
# -*- coding: utf-8 -*-
import numpy as np
from qiskit import QuantumCircuit
from run_circuit import get_current_state, get_qc_simulation_results, get_qc_actual_results
from qiskit.visualization import plot_histogram
n = 2
grover_circuit = QuantumCircuit(n) # if we use grover_circuit.measure_all() below
# grover_circuit = QuantumCircuit(n, n) # if we grover_circuit.measure() below
@AbhishekAshokDubey
AbhishekAshokDubey / grover.py
Created May 2, 2020 15:49
Grover using IBM qiskit
# -*- coding: utf-8 -*-
import numpy as np
from qiskit import QuantumCircuit
from run_circuit import get_current_state, get_qc_simulation_results, get_qc_actual_results
from qiskit.visualization import plot_histogram
n = 2
grover_circuit = QuantumCircuit(n) # if we use grover_circuit.measure_all() below
# grover_circuit = QuantumCircuit(n, n) # if we grover_circuit.measure() below