Skip to content

Instantly share code, notes, and snippets.

View jsfez's full-sized avatar

Jeremy SFEZ jsfez

View GitHub Profile
@jsfez
jsfez / connectGoogleSheetToChatGPT.js
Last active February 15, 2023 22:31
Connect Google Sheet to chatGPT
// Load OpenAI API key from script properties
const openaiApiKey = "YOUR_API_KEY";
// Load Google Sheet data
const sheet =
SpreadsheetApp.getActiveSpreadsheet().getActiveSheet() ||
SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
const data = sheet.getDataRange().getValues();
// Fetch response from OpenAI's completion API
@jsfez
jsfez / cypress-support-e2e.js
Created October 5, 2023 20:28
Adding argosScreenshotForResolutions command to cypress
// file: cypress/support/e2e.js
import "@argos-ci/cypress/support";
const resolutions = ["iphone-6", "ipad-2", [1024, 768]];
Cypress.Commands.add("argosScreenshotForResolutions", (name, options = {}) => {
// Save the initial viewport size
const initialViewportWidth = Cypress.config("viewportWidth");
const initialViewportHeight = Cypress.config("viewportHeight");
@jsfez
jsfez / upload-screenshots-without-github-app.md
Last active June 24, 2026 16:12
Argos - Using Argos without a GitHub App

Using Argos without a GitHub App

Step-by-step guide to send screenshots to Argos without installing any GitHub App, from your CI.

This guide covers uploading images your tests already produced, not capturing them.

1. Prerequisites

  1. Create a project and get the ARGOS_TOKEN:
  2. Create a team on Argos and share its name with the Argos team.