Skip to content

Instantly share code, notes, and snippets.


Chris Barnes randomutterings

View GitHub Profile
randomutterings / Gemfile
Last active Aug 29, 2015
Google Sheets with roo and roo-google
View Gemfile
gem 'roo', github: 'roo-rb/roo'
gem 'roo-google', github: 'roo-rb/roo-google'

Keybase proof

I hereby claim:

  • I am randomutterings on github.
  • I am chrisbarnes ( on keybase.
  • I have a public key whose fingerprint is 8E6A A6A8 F573 62AB 7E93 231A EE1E 140F C527 BD65

To claim this, I am signing this object:

randomutterings / application.js
Created Feb 15, 2009
Changing images with JQuery and the fade effect
View application.js
function addClickHandlers(){
// Adds click handlers to image thumbnails that update the larger image
$("img.thumbnail", this).click(function() {
src = this.src.replace("small", "medium")
$("#medium_photo").fadeOut(200, function(){
$("#medium_photo").attr('src',src).bind('readystatechange load', function(){
if (this.complete) $(this).fadeIn(400);
You can’t perform that action at this time.