My Recent Pastes (349 and counting)

Pastes by anathematic (349 and counting)

Pages:

Below are the 15 most recent pasties by anathematic.

March 08, 2010
1:34AM EDT
by anathematic

## lololol
if request.post?

March 08, 2010
12:09AM EDT
by anathematic

## Routes.rb
  map.resources :subscribers

## Index.html.erb
        <%= render(:partial => "subscriber_table", :collection => @contacts, :locals => { :resolution => @resolution }) %>

December 10, 2009
4:47AM EDT
by anathematic

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require(File.join(File.dirname(__FILE__), 'config', 'boot'))

December 08, 2009
10:50PM EDT
by anathematic

thomass-macbook:wotvenue thomas (master)$ spec
F..FFFFFFFFFFFFFFF.F.......FSegmentation fault

December 08, 2009
10:48PM EDT
by anathematic

thomass-macbook:wotvenue thomas (master)$ sudo gem install nokogiri -s http://tenderlovemaking.com/
Password:
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.4.0.20091208000023
1 gem installed

December 08, 2009
10:44PM EDT
by anathematic

nokogiri -v
--- 
warnings: []

libxml: 

December 07, 2009
9:02PM EDT
by anathematic

before_filter :foos, :only => "index"

def index
  if @search
    @foo = @search

December 07, 2009
4:46PM EDT
by anathematic

[z14807AA:~/foo.com/current] admin$ ruby script/console production
Loading production environment (Rails 2.1.0)
>> PublishedContent.search("peking man cave")
=> []
>> PublishedContent.find(:all, :conditions => ['title LIKE ?', "%peking man cave%"])

November 29, 2009
3:52AM EDT
by anathematic

# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV["RAILS_ENV"] ||= 'test'
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
require 'spec/autorun'

November 17, 2009
9:44PM EDT
by anathematic

<input type="button" value="Submit Vote" onclick="javascript:$.post('fashionawards.php', {vote: vote, email: $(this).siblings('input[name=email]').val(), subscribe: $(this).siblings('input[name=subscribe]').val()}); $(this).parent().parent().hide('slow');$(this).parent().parent().parent().children('.thumb_gallery_overview').hide('slow');$(this).parent().parent().parent().children('.thanks').show('slow');" /><input type="button" value="Cancel" onclick="javascript:$(this).parent().parent().hide();$(this).parent().parent().siblings('div.thumb_gallery_overview').show('fast');" />

November 17, 2009
6:45AM EDT
by anathematic

[PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;

November 17, 2009
6:29AM EDT
by anathematic

## Log
I [2009-11-17 22:26:02]  INFO: ferret move 'start' to 'start'
I [2009-11-17 22:26:02]  INFO: ferret before_start: deleted pid file (CleanPidFile)
I [2009-11-17 22:26:02]  INFO: ferret start: cd /home/foo/rails_app/foo/current && ruby script/ferret_server -e production start
I [2009-11-17 22:26:27]  INFO: ferret [ok] process is not running (ProcessRunning)

November 17, 2009
6:02AM EDT
by anathematic

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see 

November 16, 2009
3:30AM EDT
by anathematic

## Brilliant.

<? # this file has been renamed to activities.php
   # UPDATE YOUR STUPID LITTLE BOOKMARKS
include('lib/foo-common.php');

November 11, 2009
1:15AM EDT
by anathematic

  def destroy_multiple
    @contents = PublishedContent.find(params[:id])
    
    @contents.each do |content|
      unless content.unpublish

Next page