This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# encoding=utf-8 | |
import sys, pyperclip, random | |
from subprocess import call | |
extra_aesthetics = ["・。", "・ウ", "・エ", "・ィ", "・・", "・ゥ", "・」" , "・、", "・イ", "・・", "・。", "・ュ", "・エ", "・・", "・。", "・ュ", "・キ", "・。", "・ォ", "・ュ", "・オ"] | |
extra = False | |
word = "" |