Skip to content

Instantly share code, notes, and snippets.

View sdhull's full-sized avatar
🏃
Gettin it

Steve Hull sdhull

🏃
Gettin it
View GitHub Profile
.css-selector {
    background: linear-gradient(290deg, #5510ff, #af37ff);
    background-size: 400% 400%;
    -webkit-animation: AnimationName 0s ease infinite;
    -moz-animation: AnimationName 0s ease infinite;
    -o-animation: AnimationName 0s ease infinite;
    animation: AnimationName 0s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
@sdhull
sdhull / rails_routing_invalid_chars_fix.rb
Last active August 29, 2015 13:56 — forked from bensomers/rails_routing_invalid_chars_fix.rb
fix for invalid encodings that are extended ascii / windows 1252
# Fix for a Rails - Ruby 1.9 bug
# Rails Router, now that it's UTF-8 default, blows up when routing requests
# with invalid chars in the URL; it should properly return a 400 error
# Have to monkey-patch the fix in, since it's not scheduled for release until
# Rails 4.0.
# Adapted Andrew White (pixeltrix)'s fix at
# https://github.com/rails/rails/commit/3fc561a1f71edf1c2bae695cafa03909d24a5ca3,
# but edited to work in 3.0.x.
# 3.1.x, 3.2.x compatibility unknown
require 'action_dispatch/routing/route_set'