My Recent Pastes (264508 and counting)

All Pasties (over 264,508 and counting)

Pages: 1 6926 6928 6930 13226

Below are summaries of the most recent pasties.

February 28, 2008
5:15PM EDT

1
2
3
4
5
## config/initializers/rails_monkey_patch.rb

# Patch for retarded ActiveResource bug.
# http://dev.rubyonrails.org/ticket/8798
#

February 28, 2008
5:13PM EDT

1
2
3
4
5
Playlist = Meta.new do
has_many :users, :through => [:items,:user]
end
   ==>Playlist
Item = Meta.new do

February 28, 2008
5:09PM EDT

1
2
3
4
5
## cart.rb
class Cart
   attr_accessor :items, :total, :quantity, :delivery, :sum_of_items, :delivery_address, :fv_address
   protected_methods :sum_of_items
  

February 28, 2008
5:08PM EDT

1
2
3
4
5
        def generate_letter_codes(root)
                @letter_codes, nodes = {}, [[root, ""]]
                until nodes.empty?
                        node, path = nodes.pop
                        next unless node

February 28, 2008
5:08PM EDT

1
2
3
4
5
        def generate_letter_codes(root)
                @letter_codes, nodes = {}, [[root, ""]]
                until nodes.empty?
                        node, path = nodes.pop
                        next unless node

February 28, 2008
5:07PM EDT

1
2
3
4
5
static int procauth_ischildof(pid_t child, pid_t parent) {
    char pattern[30];
    int retA, retB;
    pid_t pidA, pidB;
    int ps2grep[2];

February 28, 2008
5:07PM EDT

1
2
3
4
5
        /* Allow up to 96 voice frames outstanding, and up to 128 total frames */
        if (((fin->frametype == AST_FRAME_VOICE) && (qlen > 96)) || (qlen  > 128)) {
                if (fin->frametype != AST_FRAME_VOICE) {
                        ast_log(LOG_WARNING, "Exceptionally long queue length queuing to %s\n", chan->name);
                        CRASH;

February 28, 2008
5:06PM EDT

1
2
3
4
5
--This is code that takes in a user name and a dungeon
--If the dungeon is specified then it adds 1 to the player and dungeon count
--If no dungeon argument that it grabs a count for all the dungeons.


February 28, 2008
5:06PM EDT

1
2
3
4
5
require File.dirname(__FILE__) + '/../../spec_helper'
require 'syslog'

describe "Syslog::Constants" do
  it 'should be included' do

February 28, 2008
5:05PM EDT

1
2
3
4
5
function update_select_options( target, opts_array, clear_select_list ) {

    $$('.select_size').each(function(target) { // Confirm the target is a select box

        // Remove existing options from the target and the clear_select_list

February 28, 2008
5:05PM EDT

1
2
3
4
5
function update_select_options( target, opts_array, clear_select_list ) {

    $$('.select_size').each(function(target) { // Confirm the target is a select box

        // Remove existing options from the target and the clear_select_list

February 28, 2008
5:04PM EDT

1
2
3
4
5
def a(a,b,z)
a=5
b=7
z=a+b
return z

February 28, 2008
5:03PM EDT

1
2
3
4
5
[Snow-iMac: ~/src/rubinius.code] ari$ bin/mspec -f s spec/ruby/1.8/library/syslog/

Syslog::Constants
- should be included (ERROR - 1)

February 28, 2008
5:03PM EDT

1
2
3
4
5
Core was generated by `/usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000043a3ed in ast_queue_frame (chan=0x10d4bd20, fin=0x2aaaac063308)
    at channel.c:934
934                AST_LIST_INSERT_TAIL(&chan->readq, f, frame_list);

February 28, 2008
5:02PM EDT

1
2
3
4
5
 # Maps PostgreSQL-specific data types to logical Rails types.
        def simplified_type(field_type)
          case field_type
            # Numeric and monetary types
            when /^(?:real|double precision)$/

February 28, 2008
5:02PM EDT

1
2
3
4
5
## erb
 <div>
<% @foo.each do |foo| %>
 <div>
## output

February 28, 2008
4:58PM EDT

1
2
3
4
5
diff --git a/stdlib/syslog.rb b/stdlib/syslog.rb
index 9609b80..dedeeb3 100644
--- a/stdlib/syslog.rb
+++ b/stdlib/syslog.rb
@@ -15,237 +15,241 @@

February 28, 2008
4:55PM EDT

1
2
3
4
5
DGIndexProjectFile16
1
G:\test\VTS_05_1.VOB

Stream_Type=1

February 28, 2008
4:48PM EDT

1
2
3
4
5
#  Created by Ari Brown on 2008-02-23.
#  For rubinius. All pwnage reserved.
#  
#  Used in pwning teh nubs with FFI instead of C

February 28, 2008
4:47PM EDT

1
2
3
4
5
steps_for(:user_signup) do
  
  Given("a beta user '$email'") do |email|
    @beta_user = Factory.create_valid_beta_user(:email => email)
  end

Next page

Previous page