Skip to content

Instantly share code, notes, and snippets.

View pgaijin66's full-sized avatar

Prabesh pgaijin66

View GitHub Profile
@pgaijin66
pgaijin66 / gist:f0f65f2e4fc078635496ed4cf735d682
Last active March 1, 2023 09:36
Draw on screen using OpenCV and Handgesture.
# DO NOT REMOVE THESE TWO LINES.
# Disabling hardward transform flag for OpenCV package. This needs to be done before importing OpenCV package.
# This will stop slow startup and initialization behaviour effectively making webcam initialize faster.
# See more: https://github.com/opencv/opencv/issues/17687
import os
os.environ["OPENCV_VIDEOIO_MSMF_ENABLE_HW_TRANSFORMS"] = "0"
# Now import openCV package
import cv2
import mediapipe as mp
package main
import (
"fmt"
)
func main(){
slice := []int{0,1,2,3}
fmt.Println(slice)
package main
import (
"fmt"
)
func main(){
slice := []int{0,1,2,3}
fmt.Println(slice)
package main
import (
"fmt"
)
func main(){
slice := []int{0,1,2,3}
fmt.Println(slice)
git lfs untrack <filename,pattern,folder>
git add .
git commit -m "Adding files to Git LFS"
git lfs track "folder/**/*.*"
@pgaijin66
pgaijin66 / gist:554c41d5370a36cf55a244125196d1ca
Created January 6, 2021 06:44
git lfs recursively tracking files and folders
find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u | awk '{print $1" filter=lfs diff=lfs merge=lfs -text"}' | sed 's/^/*./'