Skip to content

Instantly share code, notes, and snippets.

View poudyalanil's full-sized avatar
👋
Hey there how you doin?

Anil Poudyal poudyalanil

👋
Hey there how you doin?
View GitHub Profile
@poudyalanil
poudyalanil / detect1.py
Last active July 18, 2020 11:35
face-detection1
import cv2
#loading pre trained face data from opencv
trained_data = cv2.CascadeClassifier('frontal-face-data.xml')
#grabbing webcam
webcam = cv2.VideoCapture(0)
while True:
#reading webcam frames
frame_read,frame = webcam.read()
# convert to black and white
greyscale_frame = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
# detect faces
face_cordinates = trained_data.detectMultiScale(greyscale_frame)
#x and y is the upper left corner coordinate and w and h are the corresponding width and height of the rectangle
for (x,y,w,h) in face_cordinates:
cv2.rectangle(frame,(x,y),(x+w,y+h),(0,255,0),2)
# show image
cv2.imshow("Anil's Face Detection App",frame)
#agument 1 defines milliseconds
cv2.waitKey(1) # keeps imaage in the screen
@poudyalanil
poudyalanil / activate.cmd
Created July 18, 2020 12:34
Windows Activator
@echo off
title Activate Windows 10 ALL versions for FREE! WireDroid.com&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software(WireDroid.com)&echo ============================================================================&echo.&echo #Supported products:&echo - Windows 10 Home&echo - Windows 10 Home N&echo - Windows 10 Home Single Language&echo - Windows 10 Home Country Specific&echo - Windows 10 Professional&echo - Windows 10 Professional N&echo - Windows 10 Education N&echo - Windows 10 Education N&echo - Windows 10 Enterprise&echo - Windows 10 Enterprise N&echo - Windows 10 Enterprise LTSB&echo - Windows 10 Enterprise LTSB N&echo.&echo.&echo ============================================================================&echo Activating your Windows...&cscript //nologo slmgr.vbs /upk >nul&cscript //nologo slmgr.vbs /cpky >nul&wmic os | findstr /I "enterprise" >nul
if %errorlevel% EQU 0 (cscript //n
@poudyalanil
poudyalanil / MicrosoftOffice2019Activate.cmd
Created July 18, 2020 12:38
Microsoft Office 2019 Activate
@echo off
title Activate Microsoft Office 2019 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&ech
[{
"quote": "A good teacher can inspire hope, ignite the imagination, and instill a love of learning.",
"name": "Brad Henry"
}, {
"quote": "Let us remember: One book, one pen, one child, and one teacher can change the world.",
"name": "Malala Yousafzai"
}, {
"quote": "My father was my teacher. But most importantly he was a great dad.",
"name": "Beau Bridges"
}, {
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: requirements-txt-fixer