This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables | |
$primary: #2c3e50; | |
$secondary: #ecf0f1; | |
@import "style"; | |
@import "../node_modules/bootstrap/scss/bootstrap.scss"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
height: 100%; | |
} | |
.login-form { | |
width: 100%; | |
max-width: 350px; | |
margin: auto; | |
padding: 50px 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"liveSassCompile.settings.formats": [ | |
{ | |
"format": "compressed", | |
"extensionName": ".css", | |
"savePath": "/css" | |
} | |
], | |
"liveSassCompile.settings.generateMap": false, | |
"liveSassCompile.settings.autoprefix": [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"keys": [ | |
{ | |
"kty": "RSA", | |
"n": "rZU9v8dA5pcvO5e_3GrzKjMf3dNltiFNRz367ZlYTJMprhiS197vjizrT81SA39sPTbIzwvZbV-iF-sjwbhnyQ", | |
"e": "AQAB", | |
"alg": "RS256", | |
"kid": "955104a37fa903ed80c57145ec9e83edb29b0c45", | |
"use": "sig" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} |
OlderNewer