Skip to content

Instantly share code, notes, and snippets.

@adamwolf
adamwolf / Gmail Filter by Search Query.md
Last active December 30, 2019 15:04 — forked from dead-claudia/Gmail Filter by Search Query.md
Gmail script filter based on search queries

Gmail Filter by Search Query

This program, in the form of a configuration script and a main script, allows for complicated Gmail search queries to be used as filters. It also lets you do more advanced stuff you can't do with ordinary filters, like label based on whether an email contains a specific kind of attachment.

Installing

  1. Go to script.google.com.
  2. Go to File > New > Script File, and type Main as the title for the new script. This will be for the main script.
  3. Delete any pre-filled text in the script file, and copy main.gs from this gist to that file.
  4. Go to File > New > Script File again, and type Config as the title for the new script. This will be for configuration.
@adamwolf
adamwolf / beemindGmail.gs
Last active March 1, 2020 03:47
Integrate Gmail and Beeminder using Google Apps Script. Beemind the age of your oldest email in your inbox, or the number of unread threads.
/* Beemind Gmail, by Adam Wolf
2019/07/26
This is a Google Apps Script that lets you beemind the oldest message in your Gmail inbox in “days old”, as well as the
unread thread count.
You can share it to multiple Gmail accounts of yours, and each one will beemind to a different goal.
This is not user-friendly right now (more on this later), but it does the job for me.
@adamwolf
adamwolf / simple_beeminder_button.ino
Created September 21, 2015 02:14
Simple Beeminder Particle Internet Button Sketch
#include "InternetButton/InternetButton.h"
//Simple, simple Beeminder example program
//Connect to Beeminder through IFTTT
//to automatically add datapoints when you push a physical button!
// September 20th 2015
// Adam Wolf, @adamwwolf
// http://feelslikeburning.com