Skip to content

Instantly share code, notes, and snippets.

View krishankant's full-sized avatar

krishankant singhal krishankant

View GitHub Profile
service: email-api
plugins:
- serverless-webpack
- serverless-offline #must be last
provider:
name: aws
runtime: nodejs10.x
stage: dev
import React from 'react';
export default class Login extends React.Component{
constructor() {
super()
this.state = {
username: '',
password: '',
isLogined: false
}
}
@krishankant
krishankant / LRUCache
Last active June 20, 2019 15:39
LRUCache Implementation
package com.learning;
/* package whatever; // don't place package name! */
import java.util.HashMap;
class Entry {
int value;
int key;
Entry left;
Entry right;