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
/** | |
* Scripts: https://script.google.com/u/0/home/my | |
* Triggers: https://script.google.com/u/0/home/triggers | |
*/ | |
function cleanUpGmail() { | |
var queries = [ | |
'from:(noreply@steampowered.com) in:inbox subject:(from your Steam wishlist on sale) older_than:7d', | |
'from:(no-reply@twitch.tv) in:inbox subject:(is live) older_than:1d', | |
'from:ebay.com subject:("is live!" OR "has been relisted") older_than:7d', | |
// Security alerts |
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
<?php | |
/** | |
* A quick little function to interact with a MySQL database. | |
* Updated by Xavi Esteve to use mysqli, original by AngeloR (https://gist.github.com/AngeloR/919695) | |
* | |
* When working with Limonade-php a full-fledged MySQL wrapper seems like | |
* overkill. This method instead accepts any mysql statement and if it works | |
* returns either the result or the number of rows affected. If neither worked, | |
* then it returns false | |
* |