Skip to content

Instantly share code, notes, and snippets.

View hritik5102's full-sized avatar
:electron:
console.log("Learn to code")

Hritik Jaiswal hritik5102

:electron:
console.log("Learn to code")
View GitHub Profile

Installation requirement

NPM Package :

"bootstrap": "^4.4.1",
"highcharts": "^8.0.3",
"highcharts-react-official": "^3.0.0",
"react": "^16.13.0",
"react-chatbot-window": "^1.3.0",

"react-dom": "^16.13.0",

Python 2

  • pip install opencv-contrib-python
  • pip install numpy
  • pip install matplotlib
  • pip install imutils
  • pip install dlib
  • pip install scipy
  • pip install Pillow
  • pip install SimpleCV

Chatbot with deep learning

Python Package

  1. pip install tensorflow
  2. pip install nltk
  3. pip install numpy
  4. pip install pickle
  5. pip install tflearn
  6. pip install json
@hritik5102
hritik5102 / TicTacToe_Using_MinMaxAlgorithm.py
Last active September 19, 2020 13:37
TIC TAC TOE Game Using Min Max Algorithm
# TIC TAC TOE Minmax algorithm
'''
1. Backtracking algorithm
2. Max wiil try to maximize it utility
3. Min will try to minimize user or human utility to win
4. Time complexity : O(b^d)
b : branching factor (choices, number of possible move)
d : depth
@hritik5102
hritik5102 / Google_KickStart_Round_A_Plates.py
Last active October 8, 2020 07:35
Google Kickstart - Round A - Question 2 - Plates
# Google Kick Start - Round A - Q2 - Plates
'''
Author : Hritik Jaiswal
Problem : https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ffc7/00000000001d40bb
Date : October 8 2020
'''''
'''
Sample input :
2
@hritik5102
hritik5102 / Cyclic_Binary.py
Last active May 19, 2023 12:34
Cyclic binary string hackerrank solution
'''
Author : Hritik Jaiswal
Problem : https://www.hackerrank.com/contests/hackerrank-hackfest-2020/challenges/cyclic-binary-string
Date : October 17 2020
Reference : https://www.youtube.com/watch?v=h3B49vlhbEw
Challenge : Hackerrank HackFest 2020
'''
def maximumPower(s):
# Write your code here
n = len(s)
@hritik5102
hritik5102 / Game_of_Maximization.py
Last active October 17, 2020 16:45
Game of Maximization Hackerrank problem solution
'''
Author : Hritik Jaiswal
Problem : https://www.hackerrank.com/contests/hackerrank-hackfest-2020/challenges/stones-piles
Date : October 17 2020
Reference : https://www.youtube.com/watch?v=WxshQC9VDag
Challenge : Hackerrank HackFest 2020
'''
def maximumStones(arr):
# Write your code here
oddStone = []

Microsoft Azure Machine Learning Studio Experiment: Dataset: Automobile Price data

Problem statement

A Chinese automobile company Geely Auto aspires to enter the US market by setting up their manufacturing unit there and producing cars locally to give competition to their US and European counterparts. They have contracted an automobile consulting company to understand the factors on which the pricing of cars depends. Specifically, they want to understand the factors affecting the pricing of cars in the American market, since those may be very different from the Chinese market. The company wants to know:

  • Which variables are significant in predicting the price of a car
  • How well those variables describe the price of a car
@hritik5102
hritik5102 / Single_Server_Queuing_System.py
Created November 25, 2020 21:23
To simulate a Single Server Queuing System (One-operator Barbershop problem) using Python
'''
Owner : Hritik Jaiswal
Date : Nov 26 2020
Topic : To simulate a Single Server Queuing System (One-operator Barbershop problem) using Python
Subject : Modeling and simulation
'''
import random
# Seed
@hritik5102
hritik5102 / Membership_functions.py
Created February 4, 2021 12:26
To implement different membership functions used for fuzzification of inputs.
# import package
import numpy as np
import matplotlib.pyplot as plt
import math
def trianguler_mf(x,a,b,c):
if x<=a:
return 0
elif a <= x <= b: