Skip to content

Instantly share code, notes, and snippets.

View shahbaz17's full-sized avatar

Mohammad Shahbaz Alam shahbaz17

View GitHub Profile
<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>
@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
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 / 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">
@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 / _style.scss
Created July 1, 2020 12:37
Bootstarp 5 Login Page - Tutorial
html,
body {
height: 100%;
}
.login-form {
width: 100%;
max-width: 350px;
margin: auto;
padding: 50px 20px;
@shahbaz17
shahbaz17 / settings
Created July 1, 2020 12:39
Live Sass Compile Config - Settings
"liveSassCompile.settings.formats": [
{
"format": "compressed",
"extensionName": ".css",
"savePath": "/css"
}
],
"liveSassCompile.settings.generateMap": false,
"liveSassCompile.settings.autoprefix": []
@shahbaz17
shahbaz17 / setup.sh
Created July 8, 2020 05:07 — forked from chris-sev/setup.sh
Mac Setup
# how to run this thingy
# create a file on your mac called setup.sh
# run it from terminal with: sh setup.sh
# heavily inspired by https://twitter.com/damcclean
# https://github.com/damcclean/dotfiles/blob/master/install.sh
#!/bin/bash
set -euo pipefail
@shahbaz17
shahbaz17 / jwks.json
Last active October 18, 2022 14:23
JWKS Endpoint
{
"keys": [
{
"kty": "RSA",
"n": "rZU9v8dA5pcvO5e_3GrzKjMf3dNltiFNRz367ZlYTJMprhiS197vjizrT81SA39sPTbIzwvZbV-iF-sjwbhnyQ",
"e": "AQAB",
"alg": "RS256",
"kid": "955104a37fa903ed80c57145ec9e83edb29b0c45",
"use": "sig"
}
{
"kty": "RSA",
"n": "ygKuZawk6RrA1a1O73ZWzxZ_c2kAGqS8wmP6XevYpJ55Sz5VHR9rU7AHGGIac4nLI_HjmFZ4Mwf5r8U6YNlkVN1jUHAkWi-dtYAu_6esf1dFi4VLcwJN7GDzV5DZfYqaIcZQN0Sl_smjkpoSuJZoQF7NHPb-DEHJGeWrsBaufGTZ5-l6OADQ_nGT8efIMAs3lqvvXppbabj1UOmTdW_uxodIXYsqAzIzABQbotGjk67bWvFO1S3FHPoCeqMWdqp_eo4k147nXDmdDs7HlVyPChMKEtpZpocL4BjP5JfUpBroFQ5W2VmOZCNfweT0yBcvdFCohLuDZ1U-h5A0ddt2uxpdbO3rNViTZff18ou8mA0udN-O1sNA7jagLXpBB6uaiLtsQZAWTXanQe-XEukda8azBscOdkdsJozpPe066Qg7RWCW4HUNvr32EH7SkB4XAl661mJKHdLFfuiNTIh3qBGsFVvnHfcb3uMJfpuUXbzvoPM7g-feAKEXhsCQZrSB",
"e": "AQAB",
"alg": "RS256",
"kid": "RkI5MjI5OUY5ODc1N0Q4QzM0OUYzNkVGMTJDOUEzQkFCOTU3NjE2Rg",
"use": "sig"
}