Skip to content

Instantly share code, notes, and snippets.

Avatar

Troy Starwalt troystarwalt

View GitHub Profile
@himynameisdave
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
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.
// WHAT IT DOES:
// 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.
// HOWTO:
// 1. Go to JIRA in your browser, log in.
// 2. Open your browser JavaScript console.
@afeld
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
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:
# http://matharvard.ca/posts/2011/aug/22/contact-form-in-rails-3
# http://railscasts.com/episodes/206-action-mailer-in-rails-3
# config/initializers/smtp_settings.rb
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,