My Recent Pastes (196321 and counting)
All Pasties (129 and counting)
Pages: 1 ... 6932 6933 6934 6935 6936 ... 7853
Below are summaries of the most recent pasties.
December 06, 2006
9:40AM EDT
View more (48 lines)
1 2 3 4 5 |
o such file to load -- clientes/script/../config/../config/routes.rb /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:608:in `reload' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:67:in `prepare_application' |
December 06, 2006
9:29AM EDT
View more (9 lines)
1 2 3 4 5 |
class TesteController < ApplicationController def index render_text "Alo MUndo Rails" end |
December 06, 2006
8:45AM EDT
1 2 3 4 |
valdinei@vale_valdinei$ ruby script/server -c ISO8859-1 => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options |
December 06, 2006
8:44AM EDT
1 2 3 4 |
valdinei@vale_valdinei$ ruby script/server -c ISO8859-1 => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options |
December 06, 2006
8:32AM EDT
View more (11 lines)
1 2 3 4 5 |
<h3>Archives</h3> <p>This would be much nicer with jamis' month_drop thingy.</p> {{ '' | section | months | assign_to: 'home_section' }} <ul> {% for month in home_section.months %} |
December 06, 2006
8:20AM EDT
by pythonic
View more (51 lines)
1 2 3 4 5 |
class UsersController < ApplicationController def index list render :action => 'list' end |
December 06, 2006
8:10AM EDT
View more (21 lines)
1 2 3 4 5 |
##Controller (application.rb) def flag render :partial =>'flag', :locals => { :controller_name => "2", @action_name => params[:action_name] } |
December 06, 2006
7:38AM EDT
by Alastair Moore
View more (10 lines)
1 2 3 4 5 |
export TM_YEAR=`date +%Y` export TM_DATE=`date +%Y-%m-%d` export TM_USERNAME=`niutil -readprop / /users/\$USER realname` TM_CSS="$TM_NEW_FILE_BASENAME.css" |
December 06, 2006
7:15AM EDT
View more (10 lines)
1 2 3 4 5 |
have you heard of the new ror blog? yeah, im going to subscribe their rss have you heard of the new ror blog? yeah, im already subscribing it. |
December 06, 2006
7:13AM EDT
by Carl-Johan Kihlbom
View more (17 lines)
1 2 3 4 5 |
class User has_many :subscriptions has_many :subscribables, :through => subscriptions end |
December 06, 2006
7:05AM EDT
by Carl-Johan Kihlbom
View more (17 lines)
1 2 3 4 5 |
class Subscription has_many :subscription_items has_many :subscribables, :through => subscription_items end |
December 06, 2006
7:05AM EDT
by Carl-Johan Kihlbom
View more (17 lines)
1 2 3 4 5 |
class Subscription has_many :subscription_items has_many :subscribables, :through => subscription_items end |
December 06, 2006
6:40AM EDT
View more (6 lines)
1 2 3 4 5 |
$ ruby -e 'favorites = []; while(input = gets and input != "\n") do favorites.push input.chomp end; p favorites' x y z |
December 06, 2006
6:34AM EDT
View more (18 lines)
1 2 3 4 5 |
DROP TABLE IF EXISTS `offers`; CREATE TABLE `offers` ( `id` int(11) NOT NULL auto_increment, `code` varchar(20) default NULL, |
December 06, 2006
6:04AM EDT
View more (39 lines)
1 2 3 4 5 |
require "thread" class Log4u @mutex = {} def self.mutex(path) |
December 06, 2006
6:02AM EDT
by Tiago
View more (31 lines)
1 2 3 4 5 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">
<head>
|
December 06, 2006
5:47AM EDT
by Joseph Taylor
View more (14 lines)
1 2 3 4 5 |
A second issue comes up also, moreover. As Internet standards--usually canonicalized in RFCs--have evolved, and as Python libraries have become more versatile and robust, some newer modules have superceded older ones. In a similar way, for example, the [re] module replaced the older [regex] |
December 06, 2006
5:45AM EDT
by Joseph Taylor
View more (87 lines)
1 2 3 4 5 |
require 'strscan'
class String
def interpolation_queue
@interpolation_queue ||= []
|
December 06, 2006
5:32AM EDT
View more (59 lines)
1 2 3 4 5 |
#include <stdio.h>
#define MAX_WORD_SIZE 100
int main() {
char *wordp[MAX_WORD_SIZE] = {NULL}, word[MAX_WORD_SIZE] = {'\0'};
|
December 06, 2006
5:26AM EDT
View more (58 lines)
1 2 3 4 5 |
require "rubygems" require "thread" DELAY_TEMPLATES = { :daily => {:cmd_string => "cronolog ",:format_string => "\%Y/\%m/\%d"}, :hourly => {:cmd_string => "cronolog --delay '1 hour' ",:format_string => nil}, |
December 06, 2006
4:43AM EDT
by William Taysom
View more (23 lines)
1 2 3 4 5 |
public synchronized void paint(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
int w = getWidth();
int h = getHeight();
...
|
Pastie