My Recent Pastes (250 and counting)

All Pasties (over 250 and counting)

Pages: 1 2 4 5 17

Below are summaries of the 15 most recent pasties by Josh Goebel.

November 19, 2007
1:16AM EDT
by Josh Goebel

1
2
3
4
5
  def self.parsers
    { "Ruby" => :ruby, 
      "Ruby (on Rails)" => :ruby_on_rails, 
      "Diff" => :diff, 
      "Plain text" => :plain_text, 

November 15, 2007
4:16AM EDT
by Josh Goebel

1
2
3
4
5
  def edit(id)
    only_provides :html
    @domain = Domain[id]
    raise NotFound unless @domain
    render

November 15, 2007
3:59AM EDT
by Josh Goebel

1
2
3
4
5
:development: &defaults
  :adapter: mysql
  :database: dns_dev
  :username: root
  :password:

November 14, 2007
5:46AM EDT
by Josh Goebel

1
2
3
4
5
module Uv
  
  # def Uv.parse text, output = "xhtml", syntax_name = nil, line_numbers = false, render_style = "classic", headers = false
  #    init_syntaxes unless @syntaxes
  #    renderer = File.join( File.dirname(__FILE__), '..',"render", output,"#{render_style}.render")

November 13, 2007
6:09AM EDT
by Josh Goebel

1
2
3
4
5
function setActiveStyleSheet(title) {
  var i, a, main;
//  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) 
        $$('head link').each (function (a) 
        {

November 13, 2007
5:55AM EDT
by Josh Goebel

1
2
3
4
5
  class RenderProcessor #< RenderProcessor
    
    def open_tag name, position
       @stack << name
       print escape(@line[@position...position].gsub(/\n|\r/, '')) if position > @position

November 11, 2007
2:44PM EDT
by Josh Goebel

1
2
3
4
5
        def delete(name, options) #:nodoc:
          File.delete(real_file_path(name))
        rescue SystemCallError => e
          # If there's no cache, then there's nothing to complain about
        end

November 07, 2007
8:07PM EDT
by Josh Goebel

1
2
3
4
5
    # Renders an ERb template and returns the result. This is useful for
    # dynamically building documents to store on the remote servers.
    #
    # Usage:
    #

November 03, 2007
11:30PM EDT
by Josh Goebel

1
2
3
4
5
static VALUE
rb_ary_hash(ary)
    VALUE ary;
{
    long i, h;

October 26, 2007
9:16AM EDT
by Josh Goebel

1
2
3
          @paste_pages, @pastes =
            paginate :pastes, :order => 'created_at DESC', :per_page => (@user_filter ? 15 : 25), :conditions => @conditions, :select => "id"
          @pastes=Paste.find(@pastes.map(&:id), :order => "created_at DESC")

October 25, 2007
3:26PM EDT
by Josh Goebel

1
2
3
4
5
  def wiredump_dev
    options["protocol.http.wiredump_dev"]
  end

  def wiredump_dev=(wiredump_dev)

October 18, 2007
4:14AM EDT
by Josh Goebel

1
2
3
4
5
    def optimize
      print ' Tokens#optimize: before: %d - ' % size if $DEBUG
      last_kind = last_text = nil
      new = self.class.new
      for text, kind in self

October 18, 2007
3:35AM EDT
by Josh Goebel

1
2
3
4
5
module CodeRay
module Scanners

  load :html
  load :ruby

October 07, 2007
3:01PM EDT
by Josh Goebel

1
2
3
4
5
# Be sure to restart your server when you modify this file.

# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

September 25, 2007
3:10PM EDT
by Josh Goebel

1
2
3
4
5
          # this appears superfulous but was added via: http://dev.rubyonrails.org/changeset/5637
          #
          # evidentally sqlite3 needs the connection reset between requests (to 
          # detect schema changes only?) so one would expect this lines impact on 
          # other databases to be minimal... however with sqlite3 there is a real

Next page

Previous page