Skip to content

Instantly share code, notes, and snippets.

View matheusbnas's full-sized avatar

Matheus Bernardes matheusbnas

  • Matech 3D
  • Rio de Janeiro - RJ
View GitHub Profile
@sergiolopes
sergiolopes / gpt.js
Last active July 1, 2023 14:36
Use GPT no Google Spreadcheets com essa função App Script
const SECRET_KEY = "YOUR API KEY";
const MAX_TOKENS = 3000;
const TEMPERATURE = 0.9;
function EMAILALUNO(aluno, nota) {
const url = "https://api.openai.com/v1/chat/completions";
const payload = {
model: 'gpt-3.5-turbo',
messages: [
{ role: "system", content: "Crie um parágrafo de incentivo para um aluno que recebeu uma nota na prova. Vou passar o nome do aluno e a nota." },
@ledmaster
ledmaster / jupyter_namer.py
Created May 12, 2023 17:10
No more "Untitled12-final-final.ipynb"! A python script that ingests Jupyter Notebook cells and comes up with 10 relevant names to give it.
# No more "Untitled12-final-final.ipynb"!
# A python script that ingests Jupyter Notebook cells and comes up with 10 relevant names to give it.
import nbformat
import openai
import argparse
def extract_cell_contents(notebook_path):
with open(notebook_path, "r", encoding="utf-8") as f:
notebook = nbformat.read(f, nbformat.NO_CONVERT)
@fmasanori
fmasanori / super salários USP.py
Created July 4, 2017 23:27
Super Salários USP
"""
Autores:
Tiago Henrique da Cruz Pereira
João Felipe de Moraes Borges
"""
import threading
import time
import os
from urllib.request import urlopen