Skip to content

Instantly share code, notes, and snippets.

View joshaven's full-sized avatar

Joshaven Potter joshaven

View GitHub Profile
From 3541168430e8274780258de54e992a7d274932f3 Mon Sep 17 00:00:00 2001
From: Joshaven Potter <yourtech@gmail.com>
Date: Wed, 16 Dec 2009 17:33:33 -0500
Subject: [PATCH] syntax fixes in src/node.js
---
src/node.js | 61 ++++++++++++++++++++++++++++++-----------------------------
1 files changed, 31 insertions(+), 30 deletions(-)
diff --git a/src/node.js b/src/node.js
From e5ae5bb8495ce28f8ac150bf340a3ce42d2ff34f Mon Sep 17 00:00:00 2001
From: Joshaven Potter <yourtech@gmail.com>
Date: Tue, 15 Dec 2009 22:05:01 -0500
Subject: [PATCH] fix issue when S3Object is compaired to another type of object using the == method and associated test
---
lib/aws/s3/object.rb | 2 +-
test/object_test.rb | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
@joshaven
joshaven / .irbrc
Created October 22, 2009 19:51
launch many ruby projects by typing 'irb' from the root dir of the project
#!/usr/bin/ruby
# Save this file as .irbrc in the root of your home directory... This will allow
# you to load multiple different enviroments by simply typing 'irb' from your console.
#
# This file includes tab compleation and irb history.
#
# For example, after saving this file you can:
# type: irb instead of ./script/console
# type: irb instead of irb (followed by "require 'lib/init.rb'")
@joshaven
joshaven / vash.rb
Created September 10, 2009 21:19
Volatile Ruby Hash > Vash
#############################################################################
# Class: Vash (Ruby Volatile Hash)
# Hash that returns values only for a short time. This is useful as a cache
# where I/O is involved. The primary goal of this object is to reduce I/O
# access and due to the nature of I/O being slower then memory, you should also
# see a gain in quicker response times.
#
# For example, if Person.first found the first person from the database & cache
# was an instance of Vash then the following would only contact the database for
# the first iteration: