Skip to content

Instantly share code, notes, and snippets.

View rgthree's full-sized avatar

Regis Gaughan, III rgthree

View GitHub Profile
@rgthree
rgthree / _readme.md
Last active August 22, 2016 15:47
Google's iOS Gmail folding loading animation using CSS transitions & JS

NOTE

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: https://github.com/rgthree/google-loader-css


Google/Gmail's "Folding Circle"

@rgthree
rgthree / gist:6295699
Created August 21, 2013 15:09
Quick MooVeeStar View/Template system
<!DOCTYPE html>
<html lang="en">
<head>
<title>MooVeeStar Templates</title>
<meta charset="utf-8">
<style>
.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
rgthree / .bash_prompt
Created November 4, 2013 23:02
.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
rgthree / filters.js
Last active November 30, 2015 22:23
"Mailer" Gmail Filter
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, ' '));