My Recent Pastes (263 and counting)

Pastes by Josh Goebel (263 and counting)

Pages:

Below are the 15 most recent pasties by Josh Goebel.

March 07, 2007
3:28PM EDT
by Josh Goebel

module ::ActionController
  module Routing
    class RouteSet
      def load_with_development_mode_check!
        # if RAILS_ENV == 'development'

March 07, 2007
3:23PM EDT
by Josh Goebel

module ::ActionController
  module Routing
    class RouteSet
      def reload_with_development_mode_check
        # if RAILS_ENV == 'development'

March 07, 2007
3:16PM EDT
by Josh Goebel

      def load!
        Routing.use_controllers! nil # Clear the controller cache so we may discover new ones
        clear!
        load_routes!
        named_routes.install

March 06, 2007
10:39PM EDT
by Josh Goebel

Index: app/controllers/pastes_controller.rb
===================================================================
--- app/controllers/pastes_controller.rb        (revision 1997)
+++ app/controllers/pastes_controller.rb        (working copy)
@@ -58,7 +58,8 @@

March 06, 2007
9:13PM EDT
by Josh Goebel

module FileColumn # :nodoc:
  
  class BaseUploadedFile # :nodoc:
    def transform_with_magick
      if needs_transform?

March 05, 2007
10:11PM EDT
by Josh Goebel

=begin

= rice - Ruby Irc interfaCE

  $Id: irc.rb,v 1.9 2001/06/13 10:22:24 akira Exp $

March 05, 2007
9:01PM EDT
by Josh Goebel

module HasCategories
  
  def self.included(base)
    class << base
      has_many :categorizations, :as => :categorizable

March 02, 2007
5:45AM EDT
by Josh Goebel

class AccountController < ApplicationController
  def logout
    session[:login]=nil
    cookies.delete :account
    redirect_to paste_url

March 02, 2007
5:25AM EDT
by Josh Goebel

  def attempt_key_login
    user=User.new(@paste.nick)
    if params[:key] and params[:key]==user.magic_mojo
      session[:login]=@paste.nick
      cookies[:account]= { :value => (@paste.nick + ":" + user.forever_mojo), :expires => Time.now+2.weeks }

February 28, 2007
3:59AM EDT
by Josh Goebel

Index: app/controllers/topics_controller.rb
===================================================================
--- app/controllers/topics_controller.rb        (revision 2776)
+++ app/controllers/topics_controller.rb        (working copy)
@@ -45,10 +45,12 @@

February 28, 2007
3:35AM EDT
by Josh Goebel

  def create
    # this is icky - move the topic/first post workings into the topic model?
    Topic.transaction do
      @topic  = @forum.topics.build(params[:topic])
      assign_protected

February 27, 2007
10:49PM EDT
by Josh Goebel

Index: test/unit/forum_test.rb
===================================================================
--- test/unit/forum_test.rb        (revision 2776)
+++ test/unit/forum_test.rb        (working copy)
@@ -15,6 +15,15 @@

February 26, 2007
5:30AM EDT
by Josh Goebel

        if @paste.body and @paste.body.length>125000
          flash.now[:notice]="Your paste cannot be longer than 125,000 characters.  Sorry."
        end

February 24, 2007
1:07AM EDT
by Josh Goebel

        when :table
          # This is really ugly.
          # Because even monospace fonts seem to have different heights when bold,
          # I make the newline bold, both in the code and the line numbers.
          # FIXME Still not working perfect for Mr. Internet Exploder

February 21, 2007
5:18PM EDT
by Josh Goebel

function fixYear(p)
{
  return '20'+p;
}

Next page

Previous page