Skip to content

Instantly share code, notes, and snippets.

View DhirajBhakta's full-sized avatar

Dhiraj Bhakta K DhirajBhakta

  • NITK, surathkal.
View GitHub Profile
@DhirajBhakta
DhirajBhakta / index.html
Created May 23, 2017 10:27
JSX in Detail modularized + namespaced // source https://jsbin.com/jedixen
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="modularized + namespaced">
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/twitterbootstrap/
2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"
type="text/css" />
<script src="https://netdna.bootstrapcdn.com/twitterbootstrap/
2.3.2/js/bootstrap.min.js"></script>
#patient Login(STUDENT,EMPLOYEE)
@auth.route('/login',methods=['GET','POST'])
def login():
if current_user.is_authenticated:
return redirect(url_for('patient.showPatientProfile'))
form = LoginForm()
if form.validate_on_submit():
cursor = mysql.connect().cursor()
user = USER.checkIfIDExists(cursor,form.ID.data)
import flask_testing
import unittest
import urllib.request
from app import create_app
from flask import url_for, g
class PatientTest(flask_testing.TestCase):