This file contains 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
import asyncio | |
from typing import Any, Dict | |
from slack_bolt.adapter.socket_mode.async_handler import AsyncSocketModeHandler | |
from slack_bolt.app.async_app import AsyncApp | |
from slack_bolt.context.ack.async_ack import AsyncAck | |
from slack_bolt.context.say.async_say import AsyncSay | |
app = AsyncApp() |
This file contains 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
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"}: |
This file contains 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
#!/bin/sh | |
lint() { | |
TARGET_FOLDERS=$@ | |
if [ -z "$TARGET_FOLDERS" ]; then | |
TARGET_FOLDERS="app tests" | |
fi | |
echo "linting folders $TARGET_FOLDERS..." | |
echo "running autoflake" |
This file contains 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
Show hidden characters
{ | |
"extends": "airbnb", | |
"plugins": [ | |
"react", | |
"jsx-a11y", | |
"import" | |
], | |
"env": { | |
"browser": true, | |
"node": true |
This file contains 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
{ | |
"title": "name", | |
"type": "text" | |
} | |
{ | |
"title": "How do you feel about tbe current state of politics", | |
"type": "textarea" | |
} |