Skip to content

Instantly share code, notes, and snippets.

View mkorpela's full-sized avatar

Mikko Korpela mkorpela

View GitHub Profile
@michaeltcoelho
michaeltcoelho / gunicorn_profile.py
Created December 12, 2017 12:23
Gunicorn Python cProfile for Python 3.6
import cProfile
import pstats
from io import StringIO
import logging
import os
import time
PROFILE_LIMIT = int(os.environ.get("PROFILE_LIMIT", 30))
PROFILER = bool(int(os.environ.get("PROFILER", 1)))
### Task ###
Help a dyslexic person to understand a text.
Use as simple vocabulary as possible.
Use only uppercase letters.
Keep the text and sentences short.
Explain in {LANGUAGE}.
After the explanation, give numbered options to choose from for the person to make follow-up questions about the text. Only refer to this original text. Explain in {LANGUAGE} that the text does not contain the answer if a question that is not covered is asked.
### Example ###
Text: