Skip to content

Instantly share code, notes, and snippets.

View PVaid's full-sized avatar
🎯
Focusing

PVaid

🎯
Focusing
View GitHub Profile
@PVaid
PVaid / DogRegistration.java
Created May 24, 2017 02:57
Animal Love!!
import java.util.Scanner;
public class DogRegistration
{
public void processDogs()
{ double total_fees=0;
double total_discount = 0;
for(int i=0;i<3;i++)
{
double fee, disct;
@PVaid
PVaid / gist:fc03f619848e296b50ece3a5a6f14158
Last active May 26, 2017 12:37
Drawing a smiley using an Applet viewer
/*<applet Code="DemoApplet.class" width=800 height=600>
</applet>*/
import java.applet.*;
import java.awt.*;
public class DemoApplet extends Applet
{
public void paint(Graphics g)
{
g.drawOval(40,40,120,150); //head
g.drawOval(57,75,30,20); //left eye
@PVaid
PVaid / gist:b6415c8036f575177276083fb7d02628
Created July 29, 2017 04:24
Continuous Niven Numbers in C
#include <stdio.h>
#include<conio.h>
static int sum(int n)
{
int sum = 0;
do
{
sum += n % 10;
} while (n /= 10);
@PVaid
PVaid / final.py
Created December 23, 2017 15:29
Face Detection using Open CV
import cv2
import numpy as np
#Numpy is the core library for scientific computing in Python. It provides a high-performance multidimensional array object, and tools for working with these arrays
import sys
#This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter.
facePath = "haarcascade_frontalface_default.xml"