My Recent Pastes (55 and counting)
Pastes by lukeredpath (55 and counting)
Below are the 15 most recent pasties by lukeredpath.
October 31, 2007
10:26AM EDT
by lukeredpath
View all 12 lines
[After Blackadder has been searched by Darling.]: Blackadder: What in God's name is going on? Darling: Security, Blackadder. Blackadder: Security? Melchett: "Security" isn't a dirty word, Blackadder... "crevice" is a dirty word, but not "security".
October 23, 2007
12:22PM EDT
by lukeredpath
View all 32 lines
## controller class PostsController < ActionController::Base def initialize(user = load_user)
February 01, 2007
11:28AM EDT
by lukeredpath
View all 11 lines
fastcgi.server = ( ".php" => ( "localhost" => ( "bin-path" => "/usr/bin/php-cgi", "socket" => "/tmp/php.socket", "max-procs" => 2,
December 22, 2006
7:49PM EDT
by lukeredpath
View all 10 lines
# lets kill that blasted activerecord type checking! module ActiveRecord module Associations class AssociationProxy def raise_on_type_mismatch(record)
December 12, 2006
6:17AM EDT
by lukeredpath
csum = s[0]; (1 .. s.length - 1).each {|i| csum ^= s[i] }
December 12, 2006
6:08AM EDT
by lukeredpath
View all 45 lines
COMMAND STRINGi
Sid a C P1 P2 d3 d4 d5 c Eot
String Identifier
November 27, 2006
10:08AM EDT
by lukeredpath
View all 46 lines
require 'rdoc/generators/html_generator' require 'erb' module Generators
October 26, 2006
8:03AM EDT
by lukeredpath
View all
11 lines
Includes file attachment.
class String def to_ascii if self.size == 1 self[0] else
October 25, 2006
10:32AM EDT
by lukeredpath
View all
31 lines
Includes file attachment.
class A def hello! "HELLO!" end end
October 23, 2006
6:24AM EDT
by lukeredpath
View all
14 lines
Includes file attachment.
CodeHighlighter.addStyle("ruby",{ comment : { exp : /#[^\n]+/ }, brackets : {
October 20, 2006
10:05AM EDT
by lukeredpath
View all
19 lines
Includes file attachment.
module Subversion def self.new_files `svn stat . | grep ?`.split("\n").collect do |f| f.split(' ')[1] end
October 19, 2006
6:11AM EDT
by lukeredpath
View all
19 lines
Includes file attachment.
module Subversion def self.new_files `svn stat . | grep ?`.split("\n").collect do |f| f.split(' ')[1] end
October 19, 2006
6:08AM EDT
by lukeredpath
View all
29 lines
Includes file attachment.
def some_func # two for ruby # standard ruby naming conventions for classes, constants, methods, attributes etc. end
October 17, 2006
10:23AM EDT
by lukeredpath
Luke Redpath: 44xxxxxxxxx Matthew Appleton: 44xxxxxxxxx
October 17, 2006
7:08AM EDT
by lukeredpath
View all 19 lines
module Subversion def self.new_files `svn stat . | grep ?`.split("\n").collect do |f| f.split(' ')[1] end
