This file contains hidden or 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
#!/usr/bin/env bash | |
LAMBDA_NAME="your-lambda-name" | |
cd venv/lib/python3.7/site-packages | |
zip -r9 ${OLDPWD}/function.zip . | |
cd ${OLDPWD} | |
cd ./lambda/custom/ | |
zip -g ../../function.zip your_function.py | |
cd ${OLDPWD} | |
aws lambda update-function-code \ | |
--function-name ${LAMBDA_NAME} \ |
This file contains hidden or 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
# A simple example of using a QTimer to create a debounce on a line edit. | |
# For things like search fields, etc. | |
from PyQt5.QtCore import QTimer | |
from PyQt5.QtWidgets import QWidget, QLineEdit, QApplication, QVBoxLayout | |
class Widget(QWidget): | |
def __init__(self, parent=None): | |
super().__init__(parent) |