Skip to content

Instantly share code, notes, and snippets.

View albertocavalcante's full-sized avatar
🌎
BRA -> USA

Alberto Cavalcante albertocavalcante

🌎
BRA -> USA
View GitHub Profile
package main
import (
"bufio"
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"net/http"
@iamarcel
iamarcel / search-gpt.py
Created February 11, 2023 12:57
Basic GPT-3 + Bing Answering Machine
import os
import openai
import requests
from pprint import pprint
import dotenv
dotenv.load_dotenv()
openai_api_key = os.environ.get("OPENAI_API_KEY")
bing_search_api_key = os.environ['BING_SEARCH_V7_SUBSCRIPTION_KEY']
@digitarald
digitarald / mcp.json
Last active May 4, 2025 08:32
MCP Template for VS Code GitHub Copilot
{
"inputs": [
{
"type": "promptString",
"id": "github-pat",
"password": true,
"description": "GitHub Personal Access Token (PAT, https://github.com/settings/personal-access-tokens/new)"
}
],
"servers": {
@titobundy
titobundy / copilot-instructions.md
Last active May 15, 2025 06:54 — forked from burkeholland/copilot-instructions.md
Custom Instructions Example

Vite / React / Tailwind / Nanostores / Astro Best Practices

This guide outlines best practices for building a Vite / React / Tailwind / Nanostores / Astro application. The goal is readability and maintainability, minimizing abstraction to keep the codebase clear.

Tech Stack Overview

  • Astro
  • Preact
  • Nanostores
  • Tailwind CSS
  • Postgres