Skip to content

Instantly share code, notes, and snippets.

View deep5050's full-sized avatar
💻
EMBEDDED SYSTEM

Dipankar Pal deep5050

💻
EMBEDDED SYSTEM
View GitHub Profile
@deep5050
deep5050 / ass2.sql
Created December 7, 2017 15:02
a simple employee- manager database
create table employee(emp_id varchar2(5)primary key,
person_name varchar2(20),dob date ,
street varchar2(20),city varchar2(20)
);
SQL> desc employee;
Name Null? Type
----------------------------------------- -------- ----------------------------
EMP_ID NOT NULL VARCHAR2(5)
PERSON_NAME VARCHAR2(20)
@deep5050
deep5050 / car_inheritence.cpp
Created February 22, 2018 09:29
project on new car registration and save them in a .csv file
#include <iostream>
#include <cstring>
#include <fstream>
#define max_size 100
using namespace std;
// global count for cars
int apc_count = 0, nap_count = 0, acpu_count = 0, napu_count = 0;
// author: dipankar pal (c) copyright 2017
// assignment 01 : choice no: 2
// 11 - sep -2017
#include <iostream>
#include<cstdlib>
using namespace std;
const int size=100;
/////////////////////////////// CLASS /////////////////////////
@deep5050
deep5050 / operations_on _ordered_array_using_class.cpp
Created February 22, 2018 09:36
all operations on ordered array using class ( normal school or college project)
// author: dipankar pal (c) copyright 2017
// assignment 01 : choice no: 2
// 11 - sep -2017
#include <iostream>
#include<cstdlib>
using namespace std;
const int size=100;
/////////////////////////////// CLASS /////////////////////////
@deep5050
deep5050 / customer.sql
Created February 22, 2018 09:38
school / college project on sql (oracle) (customer, branch,,, calcutta university)
CREATE TABLE CUSTOMER(
CUSTOMER_ID NUMBER(5),
CUSTOMER_NAME VARCHAR2(25),
CUSTOMER_STREET VARCHAR2(20),
CUSTOMER_CITY VARCHAR2(20),
PRIMARY KEY(CUSTOMER_ID)
);
CREATE TABLE BRANCH(
@deep5050
deep5050 / company_relation.sql
Created February 22, 2018 09:41
school / college project on company relation table (oracle 10g) (calcutta university)
-- create table employee(emp_id varchar2(5)primary key,
-- person_name varchar2(20),
-- dob date ,
-- street varchar2(20),city varchar2(20)
-- );
-- modify
create table employee(emp_id varchar2(5) primary key,
person_name varchar2(20) not null,
dob date check(dob<'1-jan-2000'),
street varchar2(20) default 'N/A',
@deep5050
deep5050 / lcm.sh
Created March 25, 2018 11:53
shell script (bash) to find LCM of n integers
#find LCM of n integers
echo "enter the number of elements "
read n
i=0
for ((i=0;i<n;i++))
do
echo "data?"
read A[$i]
done
@deep5050
deep5050 / divisible_11.sh
Created March 25, 2018 11:57
(((bash shell script))) 1. find prime factors of a given integer ,,2. print a pattern, 3. tells a integer is divisible by 11 or not without dividing it by 11 .
#check wheather a number is divisible by 11 or not without divide it by 11
echo "enter a number:"
read input
temp=$input
#extract digits from the number
i=0
while [ $input -ne 0 ];do
buff=`expr $input % 10`
file:///C:/Users/student/Downloads/SomeCorpusAccessToolsforBanglaCorpusIJOAL2016.pdf
@deep5050
deep5050 / perceptron.py
Created September 27, 2019 03:00
A simple single layer ANN ( perceptron) to realize logic gates function
import numpy as np
import matplotlib.pyplot as plt
class Perceptron(object):
"""
This class defines a single layer perceptron with 3 inputs ;
initial weights will be set to 0;
one extra bias w[0] will be added;
Params