Skip to content

Instantly share code, notes, and snippets.

View ShardulJunagade's full-sized avatar
💭
I may be slow to respond.

Shardul Junagade ShardulJunagade

💭
I may be slow to respond.
View GitHub Profile
@ShardulJunagade
ShardulJunagade / oops.md
Last active June 16, 2026 04:22
oops-notes

OOPs - Object Oriented Programming

Classes and Objects

objects - entities in the real world class - blueprint of these entities

each object has properties (variables) and methods (functions)

Access Modifies:

  1. private - data and methods accessible inside class (default)
Free Visual Studio 2022 Product key:
Visusal Studio 2022 Professional Product Key:
NXXPC-Q94CK-YJYWC-JTQVW-9TR8X
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Visual STudio 2022 Pro DOwnload :
https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=professional&channel=Release&version
Visual Studio 2022 Enterprise product key:
RT8M4-FNKYB-934F7-6R287-T3FB8
@ShardulJunagade
ShardulJunagade / cpi.py
Last active May 7, 2026 10:05
CPI and P/F Calculator
# Description: This program calculates the Cumulative Performance Index (CPI) of a student based on their grades and credits.
# Author: Shardul Junagade
# Date: 24-12-2024
class Course:
def __init__(self, name, course_code, grade, credit, pass_fail=False):
if grade < 0 or credit < 0:
raise ValueError("Grade and credits must be non-negative.")
self.name = name
self.course_code = course_code
{
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@ShardulJunagade
ShardulJunagade / settings.json
Last active June 21, 2025 04:14
Windows Terminal Settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@ShardulJunagade
ShardulJunagade / Old Microsoft.PowerShell_profile.ps1
Last active July 23, 2025 23:49
Microsoft PowerShell 7 Profile
# Set prediction view style to ListView in PSReadLine (default is InlineView)
# This shows predictions in a dropdown list rather than inline gray text.
Set-PSReadLineOption -PredictionViewStyle ListView
# Ensure Terminal-Icons module is installed before importing
# Helps visually distinguish between files, directories, and types in listings like Get-ChildItem
if (-not (Get-Module -ListAvailable -Name Terminal-Icons)) {
Install-Module -Name Terminal-Icons -Scope CurrentUser -Force -SkipPublisherCheck
}
@ShardulJunagade
ShardulJunagade / PyTorch GPU Setup.md
Created February 8, 2025 14:54
Step-by-step guide to installing PyTorch with NVIDIA GPU support using venv, Conda, or Docker.

Setting Up PyTorch with NVIDIA GPU (CUDA and cuDNN)

This guide provides three different methods to install PyTorch with GPU acceleration using CUDA and cuDNN. Choose the method that best suits your requirements and system configuration.

  1. Using Virtual Environment (venv) in Python
  2. Using Conda Environment in Anaconda
    • Using pip
    • Using conda
  3. Using Docker Container
@ShardulJunagade
ShardulJunagade / yt-transcript-scrapper.py
Created June 28, 2024 21:38
Automated script to fetch and save transcripts of all videos from a specified YouTube channel in a chosen language.
from youtube_transcript_api import YouTubeTranscriptApi
from youtube_transcript_api.formatters import TextFormatter
import scrapetube
import os
# Enter the Youtube Channel ID
channel_id = ""
# Enter the name of the txt file to be saved
file_name = ""