Skip to content

Instantly share code, notes, and snippets.

View rsantana74's full-sized avatar

Renato Santana rsantana74

View GitHub Profile
@rsantana74
rsantana74 / qabot.py
Last active February 22, 2023 04:07
Open AI Q&A bot.
import openai
import os
import csv
openai.api_key = os.environ["OPENAI_API_KEY"]
prompt = "I am a highly intelligent question answering bot. If you ask me a question that is rooted in truth, I will give you the answer. If you ask me a question that is nonsense, trickery, or has no clear answer, I will respond with \"Unknown\".\n\n"
with open('cfqa.csv') as csv_file:
reader = csv.DictReader(csv_file)
@rsantana74
rsantana74 / linux xdebug config
Last active July 8, 2020 11:26
xdebug-install-usage
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"