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

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

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

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

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

1
2
3
4
5
## new.rhtml

<h1>New message</h1>

<% form_for(:message, :url => { :action => 'create' }, 

June 27, 2007
11:42PM EDT

1
2
3
4
5
require 'slideshow'

slideshow {
  slide ("Types of DSL") {
    item "Brand new language"

June 27, 2007
11:38PM EDT

1
http://dl.free.fr/48ZrsJxq/cellophane.zip

June 27, 2007
10:48PM EDT
by jp_tix

1
2
3
[user]
        name = mittnavn
        email = navn@domene.com

June 27, 2007
10:46PM EDT

1
2
3
4
5
def slideshow
    puts SLIDESHOW_START
    yield
    puts SLIDESHOW_END
end

June 27, 2007
10:45PM EDT

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

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

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
10:09PM EDT
by Saldane X

1
20CC5FF4

June 27, 2007
9:33PM EDT
by hasmanyjosh

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
9:22PM EDT

1
2
3
4
5
p4 someGHZ
1gig ram
100mb/s i think
80gig hd

June 27, 2007
8:55PM EDT

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

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

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

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

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

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

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.}

Next page

Previous page