Skip to content

Instantly share code, notes, and snippets.

View ShahStavan's full-sized avatar
🏄
Working from home

Mr.Shah ShahStavan

🏄
Working from home
View GitHub Profile
document.addEventListener('DOMContentLoaded', function() {
const checkElement = setInterval(() => {
const commandDialog = document.querySelector(".quick-input-widget");
if (commandDialog) {
// Apply the blur effect immediately if the command dialog is visible
if (commandDialog.style.display !== "none") {
runMyScript();
}
// Create an DOM observer to 'listen' for changes in element's attribute.
const observer = new MutationObserver((mutations) => {
.line-numbers {
position: relative !important;
width: 35px !important;
font-size: 16px !important;
font-family: 'Geist Mono' !important;
opacity: .3;
}
/* Code canvas top shadow */
@ShahStavan
ShahStavan / 22bce539_practical_6.ipynb
Created September 29, 2023 19:25
22bce539_Practical_6.ipynb
Loading
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
Loading
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
Loading
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>