Skip to content

Instantly share code, notes, and snippets.

View mcvittal's full-sized avatar

Alex McVittie mcvittal

View GitHub Profile
/*
you can achieve similar functionality using Google Apps Script, a JavaScript-based language specifically designed to extend Google Sheets and other Google Workspace products.
Here's how you can create a script to change the background color of a range of cells randomly every 6 seconds with a random wait time between 1 and 5 seconds:
1. Open your Google Sheets document.
2. Go to Extensions > Apps Script.
3. Delete any code in the script editor and replace it with the following code:
4. Save the script by clicking the floppy disk icon or pressing Ctrl + S.
Sub RandomColorWithRandomWait()
Dim oSheet As Object
Dim oCell As Object
Dim oRange As Object
Dim oFunctionAccess As Object
Dim r, g, b As Integer
Dim i, j As Integer
Dim waitTime As Integer
oSheet = ThisComponent.CurrentController.ActiveSheet
def convert_to_dict(text):
text_lines = text.split("\n")
return_dict = {"Room EQ L":{}, "Room EQ R":{}}
isLeft = False
for line in text_lines:
if "L channel calibration:" in line:
isLeft = True
elif "R channel calibration" in line:
isLeft = False
import os, json, glob
from statistics import mode
from collections import Counter
import spacy
import re
import markovify
import nltk
from nltk.corpus import gutenberg
import warnings
#!/usr/bin/env python2
# encoding=utf-8
import sys, pyperclip, random
from subprocess import call
extra_aesthetics = ["・。", "・ウ", "・エ", "・ィ", "・・", "・ゥ", "・」" , "・、", "・イ", "・・", "・。", "・ュ", "・エ", "・・", "・。", "・ュ", "・キ", "・。", "・ォ", "・ュ", "・オ"]
extra = False
word = ""