My Recent Pastes (264529 and counting)

All Pasties (over 264,529 and counting)

Pages: 1 6927 6929 6931 13227

Below are summaries of the most recent pasties.

February 28, 2008
5:40PM EDT

1
2
3
4
5
function SortedEvents()
        {
                $events = $this->Events();
                //Debug::show($events);
                $mymonths = $events->groupBy('DateMonth');

February 28, 2008
5:39PM EDT

1
2
3
4
5
class Class # :nodoc:

  def cattr_reader(*syms)
    syms.flatten.each do |sym|
      next if sym.is_a?(Hash)

February 28, 2008
5:37PM EDT

1
2
3
4
5
  def create
    # If form was submitted empty, don't bother attempting to act on it
    if params[:account][:email].blank? && params[:account][:password].blank?
      @user = User.new(params[:user])
      @account = DogtimeAccount.new(params[:account])

February 28, 2008
5:34PM EDT

1
2
3
4
5
Index: swiftiply-0.6.3pre/src/swiftcore/Swiftiply/cache_base_mixin.rb
===================================================================
--- swiftiply-0.6.3pre/src/swiftcore/Swiftiply/cache_base_mixin.rb        (master)
+++ swiftiply-0.6.3pre/src/swiftcore/Swiftiply/cache_base_mixin.rb        (working copy)
@@ -1,7 +1,7 @@

February 28, 2008
5:34PM EDT

1
2
3
4
5
    <select>
        <script type="text/javascript">
            function add_zero(s) {
                if (s.length < 2) {
                    return "0" + s;

February 28, 2008
5:30PM EDT

1
2
3
4
5
02/28/2008: HTTP parse error, malformed request (127.0.0.1): #<Mongrel::HttpParserError: Invalid HTTP format, parsing fails.>
[13:58] themcgruff:
02/28/2008: REQUEST DATA: "GET /track/http:/ads.sixapart.com/show?gender=M&age=23&country=US&language=en&height=90&p=lj&width=728&accttype=ADS&adplacement=hbox&user=892190&type=content&layout=generator&theme=default_theme&categories=MOVIES,MUSIC,TECH&adunit=leaderboard-bottom&channel=Journal-Leaderboard-Bottom&interests=comix+books,sex+with+models&pagenum=8742f5290114baea544ce37c828f20f5541c4040&r=874
[13:58] themcgruff:
2f5290114baea544ce37c828f20f5541c4040:2&url=http://guntotingelf.livejournal.com/friends/&contents=%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82+%D0%BD%D0%B0%D1%80%D0%BE%D0%B4%21%D1%8F+%D1%81%D0%B5%D0%B1%D0%B5+%D1%82%D1%83%D1%82+%D1%84%D1%83%D1%82%D0%B1%D0%BE%D0%BB%D0%BA%D1%83+%D1%80%D0%B8%D1%81%D1%83%D1%8E,+%D1%83%D0%B6%D0%B5+%D0%BF%D0%BE%D0%BB+%D0%B3%D0%BE%D0%B4%D0%B0%29%29%29+%D1%82%D1%83%D1%82+%D0%B2%D1%80%

February 28, 2008
5:28PM EDT

1
2
3
4
5
        BF_Player* GetPlayer(int index)
        {
                index++;

                for( std::list<BF_Player*>::const_iterator it=PlayerList.begin() ; it!=PlayerList.end() ; ++it)

February 28, 2008
5:22PM EDT

1
2
3
4
5
map.forum                                         '/forum/:id/:permalink',         :controller => "forums", :action => "view"
map.show_article_index         '/articles',                                         :controller => "articles", :action => "index"
map.show_article                        '/article/:permalink',                 :controller => "articles", :action        => "show"
map.show_article_category '/articles/:permalink',         :controller => "articles", :action => "category"

February 28, 2008
5:20PM EDT

1
2
3
4
5
# Patch for retarded ActiveResource bug.
# http://dev.rubyonrails.org/ticket/8798
#
module ActiveResource
  class Base

February 28, 2008
5:17PM EDT

1
2
3
4
5
    <select>
        <script type="text/javascript">
            for (var i = 0; i < 100; i++) {
                var d = new Date();

February 28, 2008
5:15PM EDT

1
2
3
4
5
void convertTemp (double fahren, double* celsius, double* rankine, double* kelvin)
{
// Local Declarations
const double fahrenCelsius = (fahren - 32) * 100 / 180;
const double fahrenRankine = (fahren - 32) + 491.69;

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

Next page

Previous page