Skip to content

Instantly share code, notes, and snippets.

View vnkdj5's full-sized avatar
👨‍💻
Improving Skills

Vaibhav Kumbhar vnkdj5

👨‍💻
Improving Skills
View GitHub Profile
@vnkdj5
vnkdj5 / Server.java
Last active June 29, 2017 06:40
Echo Sever (Chat Server)
import java.net.*;
import java.io.*;
public class Server {
public static void main(String args[]) throws Exception,UnknownHostException{
ServerSocket ss=new ServerSocket(8088);
Socket s=ss.accept();;
DataInputStream din=new DataInputStream(s.getInputStream());
@vnkdj5
vnkdj5 / Client.java
Created June 29, 2017 06:42
Client Application for Echo (Chat) Server
import java.net.*;
import java.io.*;
public class Client {
public static void main(String[] args) throws Exception {
Socket s=new Socket("localhost",8088);
DataInputStream din=new DataInputStream(s.getInputStream());
DataOutputStream dout=new DataOutputStream(s.getOutputStream());
@vnkdj5
vnkdj5 / dhcpClient.py
Last active June 30, 2017 06:40
DHCP Configuration Assignment [CN]
import os
#Install DHCP Package
os.system("yum install dhcp")
os.system("dhclient -r")
os.system("dhclient -r -v")
os.system("dhclient -v")"
@vnkdj5
vnkdj5 / Permutation.CPP
Created July 1, 2017 04:21
Permutation Generator
#include<iostream>3
using namespace std;
class PermutationGenerator
{
char *set;
int count=1;
int start,terms,levels;
public:
void swap(char *a,char *b)
@vnkdj5
vnkdj5 / SoprtSet.CPP
Created July 1, 2017 04:37
Understanding Various Set Operations
#include<iostream>
using namespace std;
class Student
{
int sid[50];
int total;
public:
Student()
{
@vnkdj5
vnkdj5 / MatrixOperations.CPP
Created July 1, 2017 04:54
Matrix Operations Program in C++
#include<iostream>
using namespace std;
class matrix
{
private:
int a[5][5],b[5][5],c[5][5],m,n;
public:
void getB();
void add();
@vnkdj5
vnkdj5 / StringOperations.CPP
Created July 1, 2017 05:12
Various String Operations Program in C++
#include<iostream>
#include<string>
using namespace std;
class String
{
int len;
public:
inline void display(char c[])
@vnkdj5
vnkdj5 / PinnacleClub_LinkedList.CPP
Created July 1, 2017 05:32
Program for understanding various Linked List Operations
//============================================================================
// Name : Pinnacle.cpp
// Author : Vaibhav K
// Version :
// Copyright :
// Description : Hello World in C++, Ansi-style
//============================================================================
#include<stdio.h>
#include <iostream>
#include<string>
@vnkdj5
vnkdj5 / BinaryOperationsDLL.CPP
Last active December 27, 2022 16:40
Calculate 1's, 2's complement and addition of binary numbers using doubly linked list
#include<iostream>
using namespace std;
class binary;
class node
{
node *prev;
bool n;
node*next;
public:
node()
@vnkdj5
vnkdj5 / ClientV2.java
Created July 4, 2017 06:30
Client Chat With Threading
import java.net.*;
import java.io.*;
public class Client implements Runnable {
public boolean b=true;
Socket s;
DataInputStream din ;
DataOutputStream dout;
BufferedReader br;
String str,str2;