Skip to content

Instantly share code, notes, and snippets.

View rupl's full-sized avatar
💭
¯\_(ツ)_/¯

Chris Ruppel rupl

💭
¯\_(ツ)_/¯
View GitHub Profile

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@rupl
rupl / .zshrc
Last active August 29, 2015 14:02 — forked from SlexAxton/.zshrc
GIF workflow for OS X Mavericks 10.9 and Homebrew 0.9.5 — lovingly adapted from https://gist.github.com/SlexAxton/4989674
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@rupl
rupl / wat.html
Created August 5, 2011 17:43 — forked from pifantastic/wat.html
<ul>
<li>1.0
<li>2.0
<ul>
<li>2.1
<li>2.2
^ this would render incorrectly
VS.
@rupl
rupl / gist:2507359
Created April 27, 2012 08:16 — forked from webchick/gist:2503918
Only bluecheese errors.
Warning: Illegal offset type in unset in drupal_get_messages() (line 1791 of /var/www/git-dev.drupal.org/htdocs/includes/bootstrap.inc).
Warning: Illegal offset type in isset or empty in drupal_get_messages() (line 1793 of /var/www/git-dev.drupal.org/htdocs/includes/bootstrap.inc).
Notice: Undefined variable: search_box in include() (line 21 of /var/www/git-dev.drupal.org/htdocs/sites/all/themes/bluecheese/tpl/page.tpl.php).
// SASS
.header-main ul.inline li {
& a:hover {
background-color: $dkblue;
}
&.active-trail a {
background-color: $dkblue;
}
}
@rupl
rupl / word_count.rb
Last active December 16, 2015 16:40 — forked from chriseppstein/word_count.rb
Word counter for writing articles. Allows you to count lines of code at a different rate than regular words.
#!/usr/bin/env ruby
require 'rubygems'
require 'rdiscount'
require 'nokogiri'
words = 0
limit = 2700
content = $stdin.read
html = RDiscount.new(content).to_html
@rupl
rupl / granimation.css
Last active November 1, 2018 08:10 — forked from anonymous/my.css
CSS Gradient Animation — https://www.gradient-animator.com/
background: linear-gradient(270deg, #430fe4, #234ae8, #15a32d, #f55519, #d71abf);
background-size: 1000% 1000%;
-webkit-animation: AnimationName 6s ease infinite;
-moz-animation: AnimationName 6s ease infinite;
-o-animation: AnimationName 6s ease infinite;
animation: AnimationName 6s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}