Skip to content

Instantly share code, notes, and snippets.

View shahbaz17's full-sized avatar
🦊

Mohammad Shahbaz Alam shahbaz17

🦊
View GitHub Profile
@shahbaz17
shahbaz17 / main.scss
Created July 1, 2020 12:36
Bootstrap 5 Login page
// Variables
$primary: #2c3e50;
$secondary: #ecf0f1;
@import "style";
@import "../node_modules/bootstrap/scss/bootstrap.scss";
@shahbaz17
shahbaz17 / index.html
Last active June 22, 2023 03:25
Bootstrap 5 Login Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/main.css" />
<title>Bootstarp 5 - Login Page</title>
</head>
<body class="d-flex text-center bg-secondary">
<form class="login-form">
from flask import Flask
from flask import jsonify
from flask import request
from flask import make_response
app = Flask(__name__)
@app.route('/login')
def login():
auth = request.authorization
@shahbaz17
shahbaz17 / flaskapp.py
Last active October 26, 2018 18:50
Flask App | JWT implementation
from flask import Flask, jsonify, request, make_response
import jwt
import datetime
from functools import wraps
app = Flask(__name__)
app.config['SECRET_KEY'] = 'indonesia'
# Token Decorator
<html>
<head>
<script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-box color="#4CC3D9" position="-1 0.5 -3" rotation="0 45 0"></a-box>
<a-cylinder color="#FFC65D" position="1 0.75 -3" radius="0.5" height="1.5"></a-cylinder>
<a-sphere color="#EF2D5E" position="0 1.25 -5" radius="1.25"></a-sphere>
<a-plane color="#7BC8A4" rotation="-90 0 0" position="0 0 -4" width="4" height="4"></a-plane>