Skip to content

Instantly share code, notes, and snippets.

View ShahStavan's full-sized avatar
🎯
Focusing

Mr.Shah ShahStavan

🎯
Focusing
View GitHub Profile
@ShahStavan
ShahStavan / 22bce539_practical_6.ipynb
Created September 29, 2023 19:25
22bce539_Practical_6.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShahStavan
ShahStavan / 22bce539_practical_5.ipynb
Created September 29, 2023 19:24
22bce539_Practical_5.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShahStavan
ShahStavan / 22bce539_practical_4.ipynb
Last active September 29, 2023 19:23
Linear Regression with Regularization (without using sklearn or equivalent library) and Simple and Multiple Linear Regression with and without regularization using Sklearn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Blog Post - Brand</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter&amp;display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway&amp;display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
@ShahStavan
ShahStavan / index.html
Created December 28, 2021 10:46
RwLxBmX
<div class="container" id="animation">
<h1 id="headline">ZENZZEN Under Maintenance</h1>
<div id="countdown">
<ul>
<li><span id="days"></span>days</li>
<li><span id="hours"></span>Hours</li>
<li><span id="minutes"></span>Minutes</li>
<li><span id="seconds"></span>Seconds</li>
</ul>
</div>
@ShahStavan
ShahStavan / OPENCV2.py
Created August 18, 2021 12:29
Capturing video using WEBCAM in Python using opencv2
# First you need to install opencv
# $ pip install opencv-python
import cv2
cap = cv2.VideoCapture(0) # Here 0 says that capture the video from default web cam. Basically it's called id.
while True:
ret , frame = cap.read() #Here ret is a boolean value
# gray_scale = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
# Try the command above the line to convert video into grayscale
@ShahStavan
ShahStavan / StockPricePrediction.py
Created August 11, 2021 16:12
Predicting Stock Price with help of Machine Learning in Python
# First install libraries of Python
# ---Libraries--- : numpy , matplotlib , pandas , pandas_datareader , tensorflow , scikit-learn
# Import files in our Code
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from pandas.core.algorithms import mode
import pandas_datareader as web
import datetime as dt
@ShahStavan
ShahStavan / GeoLocation.html
Created August 7, 2021 16:26
Know Your Geolocation using a Navigator.Geolocation script
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Know Your Geolocation</title>
</head>
<body>
<h1>Geolocation</h1>
@ShahStavan
ShahStavan / Logic.txt
Last active May 19, 2023 06:54
Program to find second maximum of n numbers without using arrays in Java
Let's see Logic behind the code🤘
We have declared four variables ..
curr = Current element
first = Will be largest number
second = Will be second max number
i = So that we can break the while loop
while(i==1)
-> It checks whether i is 1 or not.
@ShahStavan
ShahStavan / Logic of Recursion.txt
Created July 3, 2021 09:57
Let's understand Recursion in Best Possible way in C++ 🙌. We will take example of Factorial✌️
In First case what happens main function gets the input from user and pass it as Parameter to function called factorial
Let's assume n = 4
int factorial(int n)
{
cout<<n<<endl; // Here we display n
if(n==0){ // if n becomes 0 we return 1
return 1;
}