Skip to content

Instantly share code, notes, and snippets.

View tanaikech's full-sized avatar

Kanshi TANAIKE tanaikech

View GitHub Profile
@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 05:39
Specifying Output Types for Gemini API with Google Apps Script

Specifying Output Types for Gemini API with Google Apps Script

Abstract

The Gemini API generates different outputs depending on the prompts. This report explains how to use function calling in the new Gemini 1.5 API to control the output format (string, number, etc.) within a script during a chat session. This allows for more flexibility in using the Gemini API's results.

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
Last active April 11, 2024 01:44
Parsing Invoices using Gemini 1.5 API with Google Apps Script

Parsing Invoices using Gemini 1.5 API with Google Apps Script

Abstract

This report explores using Gemini, a new AI model, to parse invoices in Gmail attachments. Traditional text searching proved unreliable due to invoice format variations. Gemini's capabilities can potentially overcome this inconsistency and improve invoice data extraction.

Introduction

@tanaikech
tanaikech / submit.md
Created April 2, 2024 06:01
Convert Soft Breaks to Hard Breaks on Google Documents using Google Apps Script

Convert Soft Breaks to Hard Breaks on Google Documents using Google Apps Script

Description

This script converts soft breaks to hard breaks in a Google Document using Google Apps Script.

Usage

Follow these steps:

@tanaikech
tanaikech / submit.md
Last active April 2, 2024 07:52
Technique for Appending Values to Specific Columns on Google Spreadsheet using Google Apps Script

Technique for Appending Values to Specific Columns on Google Spreadsheet using Google Apps Script

Abstract

This report addresses the challenge of appending values to specific columns in Google Sheets when columns have uneven last rows. It offers a Google Apps Script solution with a sample script and demonstration image, enabling efficient and flexible data manipulation.

Introduction

@tanaikech
tanaikech / submit.md
Created March 30, 2024 05:31
Analyzing Trends of Google Apps Script from Questions on Stackoverflow using Gemini 1.5 API

Analyzing Trends of Google Apps Script from Questions on Stackoverflow using Gemini 1.5 API

Abstract

A new large language model (LLM) called Gemini with an API is now available, allowing developers to analyze vast amounts of data. This report explores trends in Google Apps Script by using the Gemini 1.5 API to analyze questions on Stack Overflow.

Introduction

@tanaikech
tanaikech / sbmit.md
Last active March 30, 2024 02:36
Generating Texts using Files Uploaded by Gemini 1.5 API

Generating Texts using Files Uploaded by Gemini 1.5 API

Abstract

The Gemini API allows the generating of text from uploaded files using Google Apps Script. It expands the potential of various scripting languages for diverse applications.

Introduction

@tanaikech
tanaikech / submit.md
Created March 25, 2024 02:23
Crafting Bespoke Output Formats with Gemini API

Crafting Bespoke Output Formats with Gemini API

Abstract

The Gemini API unlocks potential for diverse applications but requires consistent output formatting. This report proposes a method using question phrasing and API calls to craft a bespoke output, enabling seamless integration with user applications. Examples include data categorization and obtaining multiple response options.

Introduction

@tanaikech
tanaikech / submit.md
Created March 21, 2024 06:47
Attempting Reverse Engineering with Gemini API and Google Apps Script

Attempting Reverse Engineering with Gemini API and Google Apps Script

Abstract

Gemini API on Vertex AI/Studio unlocks new applications with data retrieval and content generation through function calls. This report explores using the API for reverse engineering with a sample interpreter in Google Apps Script.

Introduction

The recent release of the LLM model Gemini as an API on Vertex AI and Google AI Studio unlocks a vast potential for new applications and methodologies. It significantly expands capabilities across diverse situations, paving the way for groundbreaking applications. Notably, the Gemini API allows data retrieval and content generation through function calls. In my recent report, "Guide to Function Calling with Gemini and Google Apps Script", I explore function calls as a launchpad for various applications. This report showcases reverse engineering using the Gemini API, with a sa