Skip to content

Instantly share code, notes, and snippets.

View mrinalxdev's full-sized avatar
🧠
Involving my Brain and Fingers to code better

Mrinal Pramanick mrinalxdev

🧠
Involving my Brain and Fingers to code better
View GitHub Profile
import cv2
import mediapipe as mp
import numpy as np
import random
# Initialize MediaPipe Hands
mp_hands = mp.solutions.hands
hands = mp_hands.Hands(max_num_hands=2)
mp_draw = mp.solutions.drawing_utils
@mrinalxdev
mrinalxdev / threads-transaction.go
Last active October 3, 2024 23:31
This piece of code shows an unique way of implementation of threading in golang
package threadinggo
// This piece of code shows an unique way of implementation of threading in golang,
// concurrent transaction processing and thread safety using mutex
// Used Waitgroup and Mutex Locking for concurrent transaction and safety locking
import (
"fmt"
"sync"
"time"
@mrinalxdev
mrinalxdev / main.py
Created October 3, 2024 20:35
A python cli task reminder bot : creates a json file for the task reminders
import datetime
import json
import os
import subprocess
import threading
import time
import queue
import ttkbootstrap as ttk
from ttkbootstrap.constants import *
from tkinter import messagebox