Skip to content

Instantly share code, notes, and snippets.

@randomutterings
randomutterings / Gemfile
Last active August 29, 2015 14:17
Google Sheets with roo and roo-google
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 (https://keybase.io/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
randomutterings / application.js
Created February 15, 2009 15:23
Changing images with JQuery and the fade effect
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);
});
});