View lambda_canary.py
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"}: |
View scripts.sh
#!/bin/sh | |
lint() { | |
TARGET_FOLDERS=$@ | |
if [ -z "$TARGET_FOLDERS" ]; then | |
TARGET_FOLDERS="app tests" | |
fi | |
echo "linting folders $TARGET_FOLDERS..." | |
echo "running autoflake" |
View .eslintrc.json
{ | |
"extends": "airbnb", | |
"plugins": [ | |
"react", | |
"jsx-a11y", | |
"import" | |
], | |
"env": { | |
"browser": true, | |
"node": true |
View profile_examples.json
{ | |
"title": "name", | |
"type": "text" | |
} | |
{ | |
"title": "How do you feel about tbe current state of politics", | |
"type": "textarea" | |
} |