Skip to content

Instantly share code, notes, and snippets.

View yum-dev's full-sized avatar

Manu Jain yum-dev

View GitHub Profile
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sagemaker:*"
],
"NotResource": [
"arn:aws:sagemaker:*:*:domain/*",
@yum-dev
yum-dev / ml-assignment2-q1.ipynb
Created March 14, 2021 15:01
ml-assignment2-q1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yum-dev
yum-dev / get_id.py
Created July 10, 2020 15:01
get license, police id, challa
def text():
"""
Process the input text file
Returns:
list: list of all the license numbers
"""
licence_number = []
with open('inputPS11.txt') as f:
for line in f:
@yum-dev
yum-dev / hashing_with_collision.py
Last active July 8, 2020 16:25
hashtable wihout collision
class Hashtable:
def __init__(self, size: int):
self.size = size
self.table = [[] for i in range(self.size)]
def get_hash(self, key):
return hash(key) % self.size
def __setitem__(self, key, value):
h = self.get_hash(key)
@yum-dev
yum-dev / 5-4ts.ipynb
Created April 8, 2020 14:48
Analysing Chinese(corona)-virus
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yum-dev
yum-dev / customer_care.py
Created September 24, 2019 09:06
Sending email to customer_care
import smtplib
import time
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
# from email.mime.base import MIMEBase
# from email import encoders
smtp_server = 'smtp.gmail.com'
smtp_port = 587
@yum-dev
yum-dev / eks-demo.tf
Created August 30, 2019 06:28
Create EKS cluster.
terraform {
required_version = ">= 0.12"
}
resource "aws_vpc" "eks-demo" {
cidr_block = "172.17.0.0/16"
tags = {
Name = "eks-demo"
}
@yum-dev
yum-dev / CNN on mnist.ipynb
Created July 22, 2019 08:49
CNN on Tensorflow MNIST data.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yum-dev
yum-dev / 01-MNIST-with-CNN-Copy1.ipynb
Last active July 18, 2019 14:36
Notebook for CNN on MNIST data.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.