Skip to content

Instantly share code, notes, and snippets.

View AbhishekRaval's full-sized avatar
🎯
Focusing

Abhishek Raval AbhishekRaval

🎯
Focusing
View GitHub Profile
/* C++ program to find Inorder successor in a BST */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find some data in the tree
@AbhishekRaval
AbhishekRaval / prof.sql
Last active August 29, 2015 14:14 — forked from andrew8088/prof.sql
CREATE DATABASE profs;
USE profs;
CREATE TABLE professors (
name varchar(30) NOT NULL,
specialization varchar(20),
salary double(8,2),
CONSTRAINT prof_pk PRIMARY KEY (name));
CREATE TABLE students (
@AbhishekRaval
AbhishekRaval / ImageUploadComponent.jsx
Created June 3, 2018 09:27 — forked from hartzis/ImageUploadComponent.jsx
React Image Uploading Component with Image Preview
class ImageUpload extends Component {
constructor(props) {
super(props);
this.state = {
file: '',
imagePreviewUrl: ''
};
this._handleImageChange = this._handleImageChange.bind(this);
this._handleSubmit = this._handleSubmit.bind(this);
}