Skip to content

Instantly share code, notes, and snippets.

View mkhuzaima's full-sized avatar
🎯
Focusing

Muhammad Khuzaima Umair mkhuzaima

🎯
Focusing
View GitHub Profile
@mkhuzaima
mkhuzaima / karatsuba.py
Created September 27, 2021 14:28
This gist contains the famous algorithm "karatsuba" in python which is used to efficiently multiply two numbers.
def multiply(x, y):
n = len(str(x))
if n == 1:
return x * y
nby2 = n // 2
ten_to_nby2 = 10 ** nby2
a = x // ten_to_nby2
b = x % ten_to_nby2
c = y // ten_to_nby2
@mkhuzaima
mkhuzaima / Scraping.py
Last active July 5, 2022 03:51
Python Scraping
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
import pandas
from random import randint
from time import sleep
options = Options()
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 7, 2024 21:31
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@parmentf
parmentf / GitCommitEmoji.md
Last active May 6, 2024 18:30
Git Commit message Emoji
@jewelsea
jewelsea / ListOrganizer.java
Created December 6, 2013 09:47
Use Drag and Drop to reorder items in a JavaFX ListView
import javafx.application.Application;
import javafx.collections.*;
import javafx.geometry.*;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.image.*;
import javafx.scene.input.*;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;