Skip to content

Instantly share code, notes, and snippets.

@catchthecows
catchthecows / SCNinjaTest.java
Created February 7, 2011 21:10
A quick ScoreNinja test activity
package com.sample.SCNinjaTest;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.content.Intent;
@catchthecows
catchthecows / hashascache.rb
Created October 29, 2010 23:20
Testing gist on tumblr with this nifty hash is a cache bit of code.
#!/usr/bin/ruby
@users = Hash.new do |cache, user_id|
data = "NEW"
cache[user_id] = data
puts "created #{user_id}"
end
test = @users[10]
test = @users[20]