Skip to content

Instantly share code, notes, and snippets.

View BALaka-18's full-sized avatar
💭
Learning

Balaka Biswas BALaka-18

💭
Learning
View GitHub Profile
@BALaka-18
BALaka-18 / video_playerv1.py
Created July 14, 2020 13:48
Video Player v1.0
# For video processing
import cv2
import PIL.Image,PIL.ImageTk
# For GUI
from tkinter import *
import tkinter as tk
from tkinter.filedialog import *
from tkinter.messagebox import *
# Create class
@BALaka-18
BALaka-18 / youtube_video_downloader_2.py
Last active July 15, 2020 23:07
This is a gist that contains the code for creating a YouTube Video Downloader application(version 1.2)
from pytube import *
import tkinter as tk
from tkinter import *
from tkinter import ttk
from tkinter.filedialog import *
from tkinter.messagebox import *
from threading import *
import webbrowser
file_size = 0
@BALaka-18
BALaka-18 / pca.py
Last active October 29, 2022 20:48
Implementing Principal Component Analysis from scratch
'''Question : Create a python class PCA in “pca.py” to implement PCA (Principle component analysis).
The deliverable is a class that can be used as follows:
from pca import PCA
… .
… .
pca_model = PCA(n_component=2)
pca_model.fit(x)
print(pca_model.variance_ratio)
print(pca_model.transform(data))'''