My Recent Pastes (96 and counting)

Pastes by voxdolo (96 and counting)

Pages:

Below are the 15 most recent pasties by voxdolo.

January 18, 2008
2:17PM EDT
by voxdolo

Index: spec/merb/render_spec.rb
===================================================================
--- spec/merb/render_spec.rb        (revision 1319)
+++ spec/merb/render_spec.rb        (working copy)
@@ -412,6 +412,22 @@

January 14, 2008
11:20AM EDT
by voxdolo

SELECT i.id, i.name, i.category_id
FROM items i
LEFT JOIN ( 
  SELECT fv.item_id 
  FROM field_values AS fv 

January 14, 2008
10:58AM EDT
by voxdolo

mysql> describe items;
+-------------+--------------+------+-----+---------+----------------+
| Field       | Type         | Null | Key | Default | Extra          |
+-------------+--------------+------+-----+---------+----------------+
| id          | int(11)      | NO   | PRI | NULL    | auto_increment | 

January 14, 2008
10:54AM EDT
by voxdolo

## the evil
Item.find_by_sql([
  %Q[ SELECT DISTINCT i.id, i.name, i.category_id
      FROM items AS i
        JOIN field_values AS fv

January 09, 2008
12:48PM EDT
by voxdolo

Index: lib/merb/server.rb
===================================================================
--- lib/merb/server.rb        (revision 1223)
+++ lib/merb/server.rb        (working copy)
@@ -71,7 +71,7 @@

November 05, 2007
4:50PM EDT
by voxdolo

## teh evilz?
class MessageObserver < ActiveRecord::Observer
  def after_create(message)
    "#{message.recipient.class}Notifier".constantize.send :deliver_message_notification(message)
  end

October 30, 2007
12:55PM EDT
by voxdolo

<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='mongrel/nin-jamlab'>
  <service 
    name='network/mongrel/nin-jamlab' 

October 26, 2007
11:32AM EDT
by voxdolo

## Pre-Leopard install Gem Dump


*** LOCAL GEMS ***

October 18, 2007
6:29PM EDT
by voxdolo

require 'rubygems'
require 'spec'
require 'observer'

class FooObserver

October 18, 2007
6:20PM EDT
by voxdolo

require 'rubygems'
require 'spec'
require 'observer'

class FooObserver

October 18, 2007
6:16PM EDT
by voxdolo

require 'rubygems'
require 'spec'
require 'observer'

class FooObserver

October 16, 2007
4:12PM EDT
by voxdolo

require 'uuidtools'

class Media < Application
  
  before :login_required

October 16, 2007
4:11PM EDT
by voxdolo

require 'uuidtools'

class Media < Application
  
  before :login_required

September 28, 2007
1:27PM EDT
by voxdolo

Chorus:

Comments and Wikis, 
kid you know I'm the king of...
Make my words sticky

September 26, 2007
1:42PM EDT
by voxdolo

namespace :extension do
  desc 'rename file extensions to Rails 2.0 style conventions'
  task :rename do
    
    require 'find'

Next page