Skip to content

Instantly share code, notes, and snippets.


Regis Gaughan, III rgthree

  • Google
  • Boston, MA
View GitHub Profile
rgthree / filters.js
Last active Nov 30, 2015
"Mailer" Gmail Filter
View filters.js
var filter;
filter = '' +
'-is:chat ' +
'-from:me ' +
// Only when we haven't applied a userlabel already; this works well as the last rule in your filters list
'has:nouserlabels ' +
'{"Order Number" "Order No" "Subtotal" "Shipping Address" "Billing Address" "Thank you for shopping" "Thank you for your order" "Shipping Confirmation" "has shipped"} ' +
console.log("---------------\n RETAIL FILTER: \n" + filter.replace(/\s+/g, ' '));
View .bash_prompt
export TERM=gnome-256color
tput sgr0
RED=$(tput setaf 1)
ORANGE=$(tput setaf 172)
BLUE=$(tput setaf 4)
WHITE=$(tput setaf 7)
GRAY=$(tput setaf 0)
BOLD=$(tput bold)
RESET=$(tput sgr0)
rgthree / gist:6295699
Created Aug 21, 2013
Quick MooVeeStar View/Template system
View gist:6295699
<!DOCTYPE html>
<html lang="en">
<title>MooVeeStar Templates</title>
<meta charset="utf-8">
.app-view > ul > li {margin-bottom:5px; border:1px solid #009;}
.app-view > ul > li [data-bind*="tags"] {display:none;}
.app-view > ul > li.-has-tags {border-color:#F00;}
.app-view > ul > li.-has-tags [data-bind*="tags"] {display:block;}
rgthree /
Last active Aug 22, 2016
Google's iOS Gmail folding loading animation using CSS transitions & JS


This has stopped working due to an odd timing issue with a minuscule -webkit-transition-duration value firing a webkitTransitionEnd

Checkout a pure CSS version here:

Google/Gmail's "Folding Circle"