Skip to content

Instantly share code, notes, and snippets.

@gunvirranu
gunvirranu / Vector2D.java
Created March 17, 2017 07:03
Complete 2D Vector Class for Java
public class Vector2D {
public double x;
public double y;
public Vector2D() { }
public Vector2D(double x, double y) {
this.x = x;
@AshikNesin
AshikNesin / react-file-upload.js
Created February 2, 2017 06:46
Simple React File Upload
import React from 'react'
import axios, { post } from 'axios';
class SimpleReactFileUpload extends React.Component {
constructor(props) {
super(props);
this.state ={
file:null
}