Skip to content

Instantly share code, notes, and snippets.

View Max-Makhrov's full-sized avatar
🇺🇦

Max Makhrov Max-Makhrov

🇺🇦
View GitHub Profile
@tanaikech
tanaikech / submit.md
Created May 8, 2024 05:27
Leveraging Gemini 1.5 API for Automated Test Case Generation in Google Apps Script Reverse Engineering

Leveraging Gemini 1.5 API for Automated Test Case Generation in Google Apps Script Reverse Engineering

Abstract

This report examines leveraging Gemini 1.5 API with Google Apps Script to automate sample input creation during script reverse engineering. Traditionally, this process is manual and time-consuming, especially for functions with numerous test cases. Gemini 1.5 API's potential to streamline development by automating input generation is explored through applying reverse engineering techniques to Google Apps Script samples.

Introduction

@tanaikech
tanaikech / submit.md
Last active May 7, 2024 09:45
Gemini API with JSON schema

Gemini API with JSON schema

Overview

These are sample scripts in Python and Node.js for controlling the output format of the Gemini API using JSON schemas.

Description

In a previous report, "Taming the Wild Output: Effective Control of Gemini API Response Formats with response_mime_type," I presented sample scripts created with Google Apps Script. Ref Following its publication, I received requests for sample scripts using Python and Node.js. This report addresses those requests by providing sample scripts in both languages.

@tanaikech
tanaikech / submit.md
Last active May 3, 2024 08:08
Inserting Animated GIFs over Cells on Google Sheets using Google Apps Script

Inserting Animated GIFs over Cells on Google Sheets using Google Apps Script

Overview

This script demonstrates how to insert an animated GIF over cells in a Google Sheet using Google Apps Script.

Description

I recently received a request to create a Google Apps Script for inserting animated GIFs into cells on a Google Sheet. I previously published a sample script on my blog on June 6, 2017. Ref In that script, the animation GIF was inserted using a public link. This new script leverages data URLs, which simplifies the process for using GIFs stored in Google Drive. Since this approach might be helpful to others, I'm sharing it here.

@tanaikech
tanaikech / submit.md
Last active April 16, 2024 13:00
Consolidate Scattered A1Notations into Continuous Ranges on Google Spreadsheet using Google Apps Script

Consolidate Scattered A1Notations into Continuous Ranges on Google Spreadsheet using Google Apps Script

Abstract

Consolidate scattered cell references (A1Notation) in Google Sheets for efficiency. This script helps select cells by background color or update values/formats, overcoming limitations of large range lists.

Introduction

@tanaikech
tanaikech / submit.md
Created April 10, 2024 01:17
Identifying Colored Cell Regions in Google Sheets with Google Apps Script

Identifying Colored Cell Regions in Google Sheets with Google Apps Script

Overview

This Google Apps Script helps identify and analyze regions of colored cells in a Google Sheet.

Description

@tanaikech
tanaikech / submit.md
Created March 15, 2024 11:54
Copying Sheet Including Charts from Google Spreadsheet to Another Google Spreadsheet using Google Apps Script

Copying Sheet Including Charts from Google Spreadsheet to Another Google Spreadsheet using Google Apps Script

Abstract

This report presents a workaround for copying a sheet, including its charts, from Google Spreadsheet "A" to Google Spreadsheet "B" using Google Apps Script.

Description

In this report, I would like to introduce a workaround for the following goal:

@tanaikech
tanaikech / submit.md
Last active March 14, 2024 11:00
Empowering Everyone to Leverage Various Google APIs using Google Apps Script

Empowering Everyone to Leverage Various Google APIs using Google Apps Script

Abstract

Google offers powerful APIs but using them (except advanced services) can be complex. A new, simpler method would benefit developers creating diverse applications. To address this, I built a Google Apps Script library simplifying API access.

Description

@tanaikech
tanaikech / submit.md
Last active March 6, 2024 12:04
Enhanced Search using Gemini API

Enhanced Search using Gemini API

Abstract

The Gemini API can now do semantic searches, going beyond content generation. This means it can understand the meaning of your search and provide better results, even if your words don't exactly match the data. This report introduces the enhanced search capabilities of the Gemini API.

Introduction

@tanaikech
tanaikech / submit.md
Created February 29, 2024 02:25
Similarity Viewer using Gemini API with Google Spreadsheet and Google Apps Script

Similarity Viewer using Gemini API with Google Spreadsheet and Google Apps Script

Abstract

The Gemini API enables both content generation and semantic search, managing data effectively. This report introduces a Gemini-powered similarity viewer for easy visualization of complex text similarity scores, using Google Spreadsheet and Apps Script.

Introduction

@tanaikech
tanaikech / submit.md
Last active April 26, 2024 11:51
Allowing Access by IMPORTHTML, IMPORTDATA, IMPORTFEED, IMPORTXML, and IMPORTRANGE on Google Spreadsheet with Google Apps Script

Allowing Access by IMPORTHTML, IMPORTDATA, IMPORTFEED, IMPORTXML, and IMPORTRANGE on Google Spreadsheet with Google Apps Script

Updated on April 26

From this X and this blog, it seems that in the current stage, this situation can be resolved using Sheets API. The sample script of Google Apps Script is as follows. Before you test this, please enable Sheets API at Advanced Google services.

function myFunction() {