Skip to content

Instantly share code, notes, and snippets.

View rizwansoaib's full-sized avatar
:atom:
Programming is thinking, not typing

RIZWAN AHMAD rizwansoaib

:atom:
Programming is thinking, not typing
View GitHub Profile
@rizwansoaib
rizwansoaib / Whatsapp-Monitor.md
Created June 2, 2020 06:39
WhatsApp Online Monitor Extension
@rizwansoaib
rizwansoaib / face.py
Created July 19, 2018 03:12
recognize face
import face_recognition
import cv2
# This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the
# other example, but it includes some basic performance tweaks to make things run a lot faster:
# 1. Process each video frame at 1/4 resolution (though still display it at full resolution)
# 2. Only detect faces in every other frame of video.
# PLEASE NOTE: This example requires OpenCV (the `cv2` library) to be installed only to read from your webcam.
# OpenCV is *not* required to use the face_recognition library. It's only required if you want to run this
def mul(a,b):
if(b>=1):
return a+mul(a,b-1)
else:
return 0
a=int(input("Enter First Digit:\n"))
b=int(input("Enter Second Digit:\n"))
print("{0}*{1}={2}".format(a,b,mul(a,b)))
def encrypt(pt):
ct=pow(pt,13)
ct=ct%667
print("\nYour Encrypt Data is:",ct)
def decrypt(ct):
pt=pow(ct,237)
pt=pt%667
print("\nYour Decrypt Data is:",pt)
@rizwansoaib
rizwansoaib / min note.cpp
Created January 7, 2018 04:39
Find minimum currency required
#include <stdio.h>
void main()
{
int a,x,i=0;
printf("Here are 1,2,5,10,20,50,100 currency you will enter amount and program tell minimum currency required\n");
printf("Please Enter Amount\n");
scanf("%d",&x);
@rizwansoaib
rizwansoaib / Sqrt.cpp
Created January 5, 2018 11:54
To find squareroot of number
#include <stdio.h>
int sqr(int x)
{
int i=1;
int j;
while(j<=x)
{
j=i*i;
i++;
}
@rizwansoaib
rizwansoaib / Trignometric ratio.cpp
Created January 5, 2018 11:52
To find all trignometric ratio
#include <stdio.h>
void main()
{
double x;
scanf("%lf",&x);
double b=x*3.14/180;
printf("sin %.lf°=%.lf",x,sin(b));
printf("\ncos %.lf°=%.lf",x,cos(b));
printf("\ntan %.lf°=%.lf",x,tan(b));
@rizwansoaib
rizwansoaib / Rev5dig.cpp
Created January 4, 2018 11:15
To reverse 5 digit
#include <stdio.h>
void main()
{
int x;
printf("enter 5 digit to reverse");
scanf("%d",&x);
int a=x%10;
int u=x/10;
@rizwansoaib
rizwansoaib / Sum5dig.cpp
Created January 4, 2018 11:08
For sum of 5 digit
#include <stdio.h>
void main()
{
int x;
printf("please enter 5 digit to know sum");
scanf("%d",&x);
int a=x%10;
int u=x/10;
@rizwansoaib
rizwansoaib / Power.cpp
Created January 4, 2018 10:43
Find power in c
#include <stdio.h>
void power(int x,int y)
{
int i=1;
int j=x;
if (y!=0)
{
for(i; i<y; i++)
{
x=j*x;