Skip to content

Instantly share code, notes, and snippets.

@agrawalo
agrawalo / index.html
Last active March 19, 2019 20:35
finalclient
<!DOCTYPE html>
<html>
<head>
<title>
Authentication
</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
@agrawalo
agrawalo / server.js
Last active March 19, 2019 20:34
finalserver
var express = require('express');
var app=express();
var bodyParser= require('body-parser');
var jwt=require('jsonwebtoken');
var users=[
{
name:"xxxx",
password:"xxxx"
},
@agrawalo
agrawalo / index.html
Last active March 19, 2019 20:33
client
<!DOCTYPE html>
<html>
<head>
<title>
Authentication
</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
@agrawalo
agrawalo / server.js
Created March 19, 2019 20:23
server
var express = require('express');
var app=express();
var bodyParser= require('body-parser');
var users=[
{
name:"xxxx",
password:"xxxx"
},
{
python = <<EOF
from batchutil import bazzinga
def foo(batch):
return f"foo: I am {batch.name}"
def bar(batch):
return f"bar: I am {batch.name}"
python = <<EOF
from batchutil import bazzinga
def foo():
return f"foo: I am {self.name}"
def bar():
return f"bar: I am {self.name}"
+---------------------------------------+-----------------------+
| RDBMS | ElasticSearch |
+---------------------------------------+-----------------------+
| Database | Index |
| Table | Type |
| Row | Document |
| Column | Field |
| Schema | Mapping |
| SQL | Query DSL |
| SELECT * FROM | GET API |