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
<template> | |
<div class="wrapper"> | |
<div class="animated fadeIn"> | |
<b-row> | |
<b-col cols="12"> | |
<b-card header="<i class='fa fa-align-justify'></i> Bootstrap Modals"> | |
<b-button type="button" variant="primary" @click="primaryModal = true" class="mr-1">Launch primary modal</b-button> | |
</b-card> | |
</b-col><!--/.col--> | |
</b-row><!--/.row--> |
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
<template> | |
<v-container grid-list-xl text-xs-center class="contain"> | |
<div align="center"> | |
<v-card hover width="400"> | |
<v-toolbar dark color="light-green"> | |
<v-toolbar-title>Login</v-toolbar-title> | |
</v-toolbar> | |
<div class="container"> | |
<v-text-field | |
type="email" |
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> | |
<body> | |
<p><button onclick="myMove()">Click Me</button></p> | |
<div id="mulai"></div> | |
<div id ="animate"></div> | |
<script> |
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
sudah_login = True | |
def contoh_decorator(func): | |
def tak_bisa(): | |
print("kau tak bisa") | |
if sudah_login: | |
return func() | |
return tak_bisa() |
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, abort |
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 | |
app = Flask("aplikasi saya") | |
@app.route('/') | |
def index(): | |
return 'hello' | |
if __name__ == '__main__': | |
app.run() |
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
app.config['DEBUG'] = True | |
app.config['PERMANENT_SESSION_LIFETIME']=timedelta(days=2) | |
app.config['SECRET_KEY'] = "kodeacakdisini" |
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
app.config.from_mapping({ | |
"DEBUG": True, | |
"PERMANENT_SESSION_LIFETIME": timedelta(days=2) | |
"SECRET_KEY": "kodeacakdisini" | |
}) |
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
class Confignya: | |
DEBUG = True, | |
PERMANENT_SESSION_LIFETIME = timedelta(days=2) | |
SECRET_KEY = "kodeacakdisini" | |
app.config.from_object(Confignya) |
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
if app.config['ENV'] == 'production': | |
app.config.from_object(ConfigProduction) | |
else: | |
app.config.from_object(ConfigDevelopment) |
OlderNewer