Skip to content

Instantly share code, notes, and snippets.


Troy Starwalt troystarwalt

View GitHub Profile
himynameisdave / gradient-animation.less
Last active Oct 26, 2020
Mixins for Animating Between Gradients
View gradient-animation.less
.gradient-animation( @start, @end, @transTime ){
background-size: 100%;
background-image: linear-gradient(@start, @end);
position: relative;
z-index: 100;
&:before {
background-image: linear-gradient(@end, @start);
content: '';
display: block;
height: 100%;
qvaqvaboo / bulk_unwatch.js
Last active Jan 12, 2021
JIRA bulk unwatch with your browser only (JS)
View bulk_unwatch.js
// Simple JS snippet to bulk unwatch (stop watching, un-watch) issues in JIRA.
// Written and tested for JIRA 5.2, but should work for all 5+ versions.
// 1. Gets list of issues you watch using JQL search via REST API. You can modify JQL per your needs.
// 2. For each issue found, triggers REST API call to unwatch this issue for current user.
// 1. Go to JIRA in your browser, log in.
// 2. Open your browser JavaScript console.
afeld / gist:4952991
Last active Dec 27, 2020
good APIs for mashups
View gist:4952991

This list has been superseded by Public APIs. Check there for APIs with Auth: No, HTTPS and CORS Yes.

List of data APIs that require no server-side auth or private credentials, and are thus good for small browser-only JS projects.

wrburgess / gist:1337891
Created Nov 3, 2011
Rails Contact Form w/ Gmail SMTP
View gist:1337891
# Majority of this solution was written and posted here:
# config/initializers/smtp_settings.rb
ActionMailer::Base.smtp_settings = {
:address => "",
:port => 587,