Python port for Canva plugin verify JWT, you can find the original canva article with js here: https://www.canva.dev/docs/apps/verifying-jwts/
Code licensed under MIT
import jwt
import json
import time
Python port for Canva plugin verify JWT, you can find the original canva article with js here: https://www.canva.dev/docs/apps/verifying-jwts/
Code licensed under MIT
import jwt
import json
import time
TikCommerce, is a conecept of providing a minute long video, instead of the traditional product display method cluttering the UI. With studies showing that video tends to bring 6 times more engagement and higher conversion rates, a minute long product video is the future of the E-Commerce.
This is submitted as part of Wix Studio challenge
Read more about TikCommerce
The code is licensed under GPL-3
Writing a django app from scratch has been a hassle, so if you are looking to speed up your web development check out Django templates by foxcraft.
It comes with responsive design, google reCAPTCHA, modern Admin dashboard and more. Read the features below
You can check out the demo website here
some of the attributes maybe missing or not correct. If you find any please feel free to notify me and update this gist
Below is the code for converting
from bs4 import BeautifulSoup, NavigableString
def convert_html_to_delta(html_string):
soup = BeautifulSoup(html_string, "html.parser")
This is a gist for data validation for cloud firestore nosql db.
The function takes 2 parameter a datastructure and data, the datastructure that contains all the validation fields such as minlength, default, required etc, it is as show in the Example datastructure. The data is the data passed by user that will be validated
def clean_data(data_structure, data, update=False):
"""
# used to generate file overview | |
import os | |
ignore_dirs = ['.git'] | |
ignore_files = ['.env'] | |
def path_tree(root, inner=0): | |
for dir in os.listdir(root): | |
# print("DIR: ", root, dirs, files) |
Eg:
from setuptools import setup
with open("Readme.md", 'r') as f:
long_description = f.read()
setup(
import sys | |
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QPushButton, QGridLayout | |
app = QApplication(sys.argv) | |
widget = QWidget() | |
grid_layout = QGridLayout() | |
label = QLabel("Sample label") | |
button = QPushButton("Button") # create an instance of QPushbutton |
while True: | |
for event in event_queue: | |
if event == "quit": | |
break | |
elif event == "button_press": | |
update_button() | |
import sys | |
from PyQt5 import QtGui, QtWidgets | |
if __name__ == "__main__": | |
app = QtWidgets.QApplication(sys.argv) | |
view = QtWidgets.QGraphicsView() | |
scene = QtWidgets.QGraphicsScene() |