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
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
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, render_template, session, request, redirect, abort, jsonify | |
from helpers import login_required, random_str, upload_s3 | |
import requests | |
from termcolor import colored | |
import os | |
app = Flask(__name__) | |
app.config["SECRET_KEY"] = "abcdef" |
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, url_for, render_template, request, redirect, session | |
from werkzeug.security import check_password_hash, generate_password_hash | |
import sqlite3 | |
conn = sqlite3.connect("db.sqlite3", check_same_thread=False) | |
c = conn.cursor() | |
app = Flask(__name__) | |
app.config["SECRET_KEY"] = "secretkey" |
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
<form> | |
<input type="search" placeholder="search" id="search"> | |
<button type="button" onclick="apiRequest();">click</button> | |
</form> | |
<div id="error"></div> |
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
<div class="container" style="margin-top: 2em;"> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="input-group"> | |
<input id="scanner_input" class="form-control" placeholder="Click the button to scan an EAN..." type="text" /> | |
<span class="input-group-btn"> | |
<button class="btn btn-default" type="button" data-toggle="modal" data-target="#livestream_scanner"> | |
<i class="fa fa-barcode"></i> | |
</button> |