Skip to content

Instantly share code, notes, and snippets.

View pmsteil's full-sized avatar

Patrick Steil - AI Solutions Architect pmsteil

View GitHub Profile
/**
* This Google Sheets script keeps data in the specified column sorted any time
* the data changes.
*
* After much research, there wasn't an easy way to automatically keep a column
* sorted in Google Sheets, and creating a second sheet to act as a "view" to
* my primary one in order to achieve that was not an option. Instead, I
* created a script that watches for when a cell is edited and triggers
* an auto sort.
*
@pmsteil
pmsteil / x12.js
Created April 29, 2022 15:47 — forked from lk321/x12.js
EDI X12 Parse to JSON - NodeJS
import fs from 'fs';
export default class X12 {
constructor(file) {
if (file.includes('/')) {
fs.readFile(file, 'utf8', (err, contents) => {
return this.parseTextToJSON(contents);
});
} else {
"""
These are the Relevance API endpoints.
Before running this script, ensure you have the following environment variables
set as ENVIRONMENT variables or in your .env file:
RELEVANCEAI_BASE_URL="https://api-{region}.stack.tryrelevance.com"
RELEVANCEAI_API_KEY="Your_Api_Key"
RELEVANCEAI_REGION_ID="Your_Region_Id"
You can install the required packages with the following pip command: