Public Gists by zapnap

Gravatar
Thu Jun 04 18:49:20 -0700 2009
1
2
3
    def count(*args)
      query = args.last.kind_of?(Hash) ? args.pop : {}
      property_name = args.first
Gravatar
Thu Jun 04 16:28:02 -0700 2009
1
2
3
# datamapper 0.9.11
# bleh!
 
Gravatar
Fri May 01 11:01:12 -0700 2009
1
2
3
Dan Pickett, http://en.oreilly.com/rails2009/profile/46469
Brian Cardarella, http://en.oreilly.com/rails2009/profile/45790
Nick Plante, http://en.oreilly.com/rails2009/profile/2753
Gravatar
Fri Apr 17 11:53:18 -0700 2009
1
2
3
$rake twitter:update --trace
(in /Users/rafael/Desktop/retweet)
** Invoke twitter:update (first_time)
Gravatar
Sun Mar 29 15:47:21 -0700 2009
1
2
3
njero - http://neverlet.be
sutto - http://blog.ninjahideout.com
zapnap - http://blog.zerosum.org
Gravatar
Mon Mar 16 15:04:13 -0700 2009
1
2
3
  config.gem 'RedCloth', :version => '3.0.4', :lib => 'redcloth'
  config.gem 'BlueCloth', :lib => 'bluecloth'
  config.gem 'faker'
Gravatar
Thu Mar 05 08:11:26 -0800 2009
1
2
3
  1) Failure:
test_should_swap_with_bottom_when_next_to_bottom_and_moving_to_bottom(PageExtensionsTest)
    [/Users/nap/dev/episodic/vendor/extensions/reorder/test/unit/page_extensions_test.rb:60:in `test_should_swap_with_bottom_when_next_to_bottom_and_moving_to_bottom'
Gravatar
Sun Feb 22 09:51:00 -0800 2009
1
2
3
$('ul.menu li a.album').click(function() {
  $('.page').hide();
  $('#pt35mm').removeClass('hidden');
Gravatar
Mon Feb 16 07:10:40 -0800 2009
1
2
3
specify 'should retrieve artists for typeahead filtering' do
  Artist.should_receive(:all).with(:limit => SiteConfig.max_artists, :name.like => '%ab%').and_return(@artists)
  get '/artists.json', :q => 'ab'
Gravatar
Sat Jan 31 11:47:33 -0800 2009
1
2
3
Let's make a list of Sinatra-based apps!
 
Apps:
Gravatar
Wed Nov 05 11:01:00 -0800 2008
1
2
3
# -*- apache -*-
# Leopard (10.5) Apache 2 configuration for Validator S.A.C. installed in /Applications
 
Gravatar
Wed Oct 29 11:10:23 -0700 2008
1
2
3
describe Notifications do
  # ...
 
Gravatar
Tue Oct 07 13:48:20 -0700 2008
1
2
<!-- ugly ugly ugly --->
<li class="rating-5"><a href="http://localhost:3000/teams/foobar-patrol/rate/completeness/5" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'put'); f.appendChild(m);var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', '2a1475f507de8460df36c0fdf0fa588420e87195'); f.appendChild(s);f.submit();return false;" title="Rate this 5 stars out of 5">5</a></li></ul>
Gravatar
Mon Sep 08 08:35:42 -0700 2008
1
2
3
  describe 'ratings' do
    before(:each) do
      @user = users(:quentin)
Gravatar
Tue Aug 26 09:52:35 -0700 2008
1
2
3
Alright, Rumblers... so the *official contest dates*, in case you haven't already heard from the rumor mill (or the twittersphere), are:
 
October 18th and 19th.
Gravatar
Mon Aug 04 17:31:01 -0700 2008
1
2
3
module Foo
  module Bar
    def self.test
Gravatar
Mon Jul 28 09:26:44 -0700 2008
1
2
3
def foobar
  puts "hallo there"
end
Gravatar
Mon Jul 21 13:27:19 -0700 2008
1
2
3
def foo
  puts 'foo'
end