Skip to content

Instantly share code, notes, and snippets.


Kelvin Koh stupoid

View GitHub Profile
stupoid /
Last active Feb 23, 2021
Modified version of lambda-canary blueprint to monitor multiple sites and log via telegram_bot
import os
from urllib.parse import urlencode
from urllib.request import Request, urlopen
def getenvbool(key: str, default: bool) -> bool:
envvar = os.getenv(key, "").lower()
if envvar in {"true", "1"}:
return True
elif envvar in {"false", "0"}:
stupoid /
Created Dec 23, 2020
General shell scripts for python dev
lint() {
if [ -z "$TARGET_FOLDERS" ]; then
TARGET_FOLDERS="app tests"
echo "linting folders $TARGET_FOLDERS..."
echo "running autoflake"
stupoid / .eslintrc.json
Created Jun 1, 2017
react eslint config
View .eslintrc.json
"extends": "airbnb",
"plugins": [
"env": {
"browser": true,
"node": true
stupoid / profile_examples.json
Created Oct 2, 2015
Example profile questions
View profile_examples.json
"title": "name",
"type": "text"
"title": "How do you feel about tbe current state of politics",
"type": "textarea"