Skip to content

Instantly share code, notes, and snippets.

View zynaxsoft's full-sized avatar
🪲
🧊

Tanapol Prucksakorn zynaxsoft

🪲
🧊
View GitHub Profile
@EngineerLabShimazu
EngineerLabShimazu / deploy_lambda.sh
Created October 30, 2019 06:08
Deploy to lambda in python3.7
#!/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} \
@chipolux
chipolux / debounce.py
Created August 22, 2017 17:09
pyqt debounced text input
# 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)