My Recent Pastes (216001 and counting)
All Pasties (215,911 and counting)
Pages: 1 ... 6072 6073 6074 6075 6076 ... 8641
Below are summaries of the most recent pasties.
June 28, 2007
12:25AM EDT
1 2 3 4 5 |
task 'unroll' => [ 'environment' ] do require("unroller") hey = Struct.new(:hey) puts(Unroller.trace({ :display_style => :concise }) { hey.to_json }) end |
June 28, 2007
12:05AM EDT
View more (7 lines)
1 2 3 4 5 |
query = Work.query query.join(:editions) query.join(:authors) query.or.name_like(params[:title]).editions.name_like(params[:title]) query.or.authors.first_name_like(params[:author]).authors.last_name_like(params[:author]) |
June 27, 2007
11:57PM EDT
View more (66 lines)
1 2 3 4 5 |
<html> <head> <title>Ruby DSL-Generated S5 Presentation</title> <meta name="generator" content="S5" /> <meta name="version" content="S5 1.3" /> |
June 27, 2007
11:51PM EDT
View more (117 lines)
1 2 3 4 5 |
<ul class="links"> <? for($x=1;$x<=$floors;$x++) { ?> <li><a href="#<?= $x ?>" onclick="return false;">Floor <?= $x ?></a></li> <? } ?> </ul> |
June 27, 2007
11:49PM EDT
View more (96 lines)
1 2 3 4 5 |
## picture.rb class Picture < ActiveRecord::Base has_attachment :content_type => :image, :storage => :file_system, |
June 27, 2007
11:45PM EDT
View more (95 lines)
1 2 3 4 5 |
## new.rhtml <h1>New message</h1> <% form_for(:message, :url => { :action => 'create' }, |
June 27, 2007
11:42PM EDT
View more (12 lines)
1 2 3 4 5 |
require 'slideshow' slideshow { slide ("Types of DSL") { item "Brand new language" |
June 27, 2007
10:46PM EDT
View more (48 lines)
1 2 3 4 5 |
def slideshow puts SLIDESHOW_START yield puts SLIDESHOW_END end |
June 27, 2007
10:45PM EDT
View more (30 lines)
1 2 3 4 5 |
module ActionView module Helpers module FormHelper FIELD_ERROR_OPTIONS = {:tag_name => 'dd', :class => 'FormError'} |
June 27, 2007
10:29PM EDT
View more (25 lines)
1 2 3 4 5 |
require File.dirname(__FILE__) + '/../lib/boot.rb' puts @config.inspect bot = IRC.new(@config['nick'], @config['host'], @config['port'], "can you say marclar?") |
June 27, 2007
10:14PM EDT
by hagabaka
View more (101 lines)
1 2 3 4 5 |
#!/usr/bin/ruby # # get-ruby-strings: interactively process ruby source file for gettext # # get-ruby-strings.rb <input-file> |
June 27, 2007
9:33PM EDT
by hasmanyjosh
View more (48 lines)
1 2 3 4 5 |
desc 'Print out all defined routes in match order, with names.' task :routes => :environment do routes = ActionController::Routing::Routes.routes.collect do |route| name = ActionController::Routing::Routes.named_routes.routes.index(route).to_s verb = route.conditions[:method].to_s.upcase |
June 27, 2007
8:55PM EDT
View more (20 lines)
1 2 3 4 5 |
include Java import java.awt.event.ActionListener import javax.swing.JButton import javax.swing.JFrame |
June 27, 2007
8:51PM EDT
View more (6 lines)
1 2 3 4 5 |
Rules = { 'td.hole_position:click': function(element) { tension_screw_position = element.innerHTML; // TODO: Get the parent fieldset } |
June 27, 2007
8:48PM EDT
by headius
View more (19 lines)
1 2 3 4 5 |
include Java import java.awt.event.ActionListener import javax.swing.JButton import javax.swing.JFrame |
June 27, 2007
8:47PM EDT
View more (11 lines)
1 2 3 4 5 |
<fieldset id="blade_set_25"> <table class="datagrid holepositions"> <tbody> <tr> <td title="Click to add a tension screw" class="hole_position">90.0</td> |
June 27, 2007
8:37PM EDT
by lifo
View more (7 lines)
1 2 3 4 5 |
case when @reflection.options[:finder_sql] @finder_sql = interpolate_sql(@reflection.options[:finder_sql]) @finder_sql = "#{@reflection.klass.table_name}.#{@reflection.primary_key_name} = #{@owner.quoted_id}" |
June 27, 2007
8:36PM EDT
View more (22 lines)
1 2 3 4 5 |
require 'java' module SwingHelp include_class 'java.lang.Runnable' |
June 27, 2007
8:30PM EDT
1 |
[tr, tbody, table.datagrid, fieldset#blade_set_25, form 23, div#workarea.column, div#container, body#body.panel_details, html] |
June 27, 2007
8:30PM EDT
1 |
[tr, tbody, table.datagrid, fieldset#blade_set_25, form 23, div#workarea.column, div#container, body#body.panel_details, html]
|
June 27, 2007
8:13PM EDT
View more (17 lines)
1 2 3 4 5 |
Gem::Specification.new do |s| s.name = %q{rbrainz} s.version = "0.2.0" s.date = %q{2007-06-27} s.summary = %q{Ruby library for the MusicBrainz XML webservice.} |
Pastie