This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add ChatGPT Menu | |
const onOpen = () => { | |
const ui = SpreadsheetApp.getUi(); | |
ui.createMenu("ChatGPT") | |
.addItem("💾 Save Responses as Text", "saveAsText") | |
.addItem("ChatGPT API Sheet by Sarah Tamsin 💜", "openUrl") | |
.addToUi(); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
firehose_client = boto3.client('firehose') | |
def lambda_handler(event, context): | |
resultString = "" | |
for record in event['Records']: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from io import BytesIO | |
import pyarrow as pa | |
import pyarrow.parquet as pq | |
kilobytes = 1024 | |
megabytes = kilobytes * 1000 | |
chunksize = int(10 * megabytes) |