Skip to content

Instantly share code, notes, and snippets.

View rooreynolds's full-sized avatar

Roo Reynolds rooreynolds

View GitHub Profile
@rooreynolds
rooreynolds / CountEmail.gs
Last active June 2, 2022 20:09
Gmail email stats (Google Sheets script)
function CountEmail() {
var starredEmails = GmailApp.search('is:starred');
var newunreadEmails = GmailApp.search('is:unread label:inbox');
var urgentEmails = GmailApp.search('label:urgent');
var waitingEmails = GmailApp.search('label:waiting-for');
var chaseEmails = GmailApp.search('label:chase');
var draftEmails = GmailApp.search('in:draft');
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1");
@rooreynolds
rooreynolds / Arduino_physical_mute_key.ino
Last active May 23, 2024 07:57
Arduino / Teensyduino code for a keyboard interface to toggle mute and camera controls in Google Meet
/*
* A simple arduino app to send a keyboard combination (Command + F1)
* when a button is pushed. This key combination can, using an app like
* FastScripts (https://red-sweater.com/fastscripts/) or similar,
* trigger a script to perform a specific action, for example
* to mute the teleconferencing app of your choice.
*
* Useful scripts for running at the desktop side:
* - Google Meet: https://github.com/aezell/mutemeet
* - Zoom: https://gist.github.com/mgaruccio/15734cb2f1442c457f0fa25dd838cc6d
//inspired by https://twitter.com/paulpod/status/1330091111889690628
#include <Arduino.h>
#include <TM1637Display.h>
#include <Bounce2.h>
#define CLK 2
#define DIO 3
#define pin_button A0