Welcome! This page is using CodeRay 1.1.2.

We currently have 2731 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 263, 10 entries

Test 4 lines of C by Rich 42 Bytes Show Edit Expand
1
2
3
4
function help() {
  $('#me').show();

}
asdfsdf 29 lines of JavaScript 1.01 KB Show Edit Expand
1
2
3
4
5
6
7
describe Textilizer do
  def textilize(text)
    Textilizer.new(text).to_html
  end
  
  it "should do basic textile" do
    textilize("hello *world*").should == "<p>hello <strong>world</stro...
Sample Snippet 8 lines of ERb by Nick 580 Bytes Show Edit Expand
1
2
3
4
<div id="review-item-%item_id%" class="review-item">
  <h3><a href="%item_link%">%item_title</a></h3>
  <div id="review-item-content-%item_id%" class="review-item-content">%item_review%</div>
  <di...
puts "hello world" 1 line of C 18 Bytes Show Edit Expand
1
puts "hello world"
PbdtIWSK 1 line of Ruby by RnqJNXvQSeLAEOUrKB 13 Bytes Show Edit Expand
1
dors2.txt;1;1
Spaaam! 1 line of ERb by Devyn 26 Bytes Show Edit Expand
1
<b>This is spaaaaaaam!</b>
lambda with inner join 4 lines of Ruby by Tony Perrie 464 Bytes Show Edit Expand
1
2
  lambda { |objs| { :select => "domain_objects.*, count(links.from_id) AS object_count", 
                    :conditions => objs.inject("TRUE") { |str,obj| str + " OR ( links.object_value.id = '#...
yahoo 5 lines of Ruby by me 797 Bytes Show Edit Expand
1
2
    class Foo                                                                                                                                                                                     
 ...
Named Scope Example with Lambda and Group By Having 5 lines of Ruby by Tony Perrie 368 Bytes Show Edit Expand
1
2
3
4
  named_scope :linked_to, 
  lambda { |ovs| { :select => "domain_objects.*, count(links.from_id) AS object_count", 
                   :conditions => [ "links.object_value_id IN (?)", ovs ], 
  ...
http://judofyr.net/posts/morse.html 55 lines of Ruby by Magus Holm 2.22 KB Show Edit Expand
1
2
3
4
5
module                    Morse

 A,B,C=proc{M.tr(' ','').gsub(/#{$/}+/,$/).split($/).map{|x|
x[/(.)(.+)(.).*\1\2\3/,2].to_i(16)}},proc{|c|A[][c-65].to_s(2
    )[1..-1].tr('10','-.')},proc{|m|(...

Page 263, 10 entries