Skip to content

Instantly share code, notes, and snippets.

@dpflucas
dpflucas / olympics_ai_agent.py
Last active August 9, 2024 15:55
AI agent with RAG to provide information about the 2024 Summer Olympics.
import os
import wikipedia
import pandas as pd
import pickle
import argparse
import warnings
import io
from dotenv import load_dotenv
from urllib3.exceptions import NotOpenSSLWarning
from llama_index.core import VectorStoreIndex, Settings, Document, StorageContext, load_index_from_storage
@dpflucas
dpflucas / react_native_analysis.md
Last active February 11, 2016 15:13
React Native Analysis

REACT NATIVE ANALYSIS

React Native is a framework for building native apps using React. React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React.

Pros:

  • Speed and power of a native application, with the ease of development that comes with React:
    • No specific data binding
    • No event management
  • No micro managing the view
@dpflucas
dpflucas / heroku_certificates.md
Last active October 22, 2015 14:47
SSL certificates with Heroku

Setup own SSL certificates with Heroku

Required add-ons:

  • Heroku SSL Endpoint add-on ($20/mo);

Certificate options

Certificate Price Heroku official docs
StartSSL Free No
@dpflucas
dpflucas / web_hook_message.json
Last active August 29, 2015 14:13
Example of a message sent from Context.io web hook
{
"account_id": "54bdb60775f4ec2b4622cc5c",
"webhook_id": "54bdb609facadd4f7ddce665",
"timestamp": 1421719181,
"message_data": {
"email_message_id": "<CAE4oUMyRuqFOr-jdqQN9_A=yD7teJSu0O5xttAPVC8Lc=ANedQ@mail.gmail.com>",
"addresses": {
"from": {
"email": "[email protected]",
"name": "Diogo Lucas"