Welcome! This page is using CodeRay 1.1.2.

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

Page 295, 10 entries

Same as home page 7 lines of Ruby by Me 227 Bytes Show Edit Expand
1
2
3
4
5
6
7
require 'rubygems'
require 'coderay'
tokens = CodeRay.scan <<-'CODE', :ruby
  puts %[Hello, world!]
  puts "Here\'s some #@@weird #{ { :code => "for you" } }"
CODE
print tokens.div(:line_numb...
gunnar 4 lines of Ruby by andreas 263 Bytes Show Edit Expand
1
2
3
4
<%= link_to(image_tag("se_video.jpg", :border => 1), @post.video_url) %><br /><br />
14:   <% end %>
15:   
16: <div id=post_content><li><%=  syntax_highlight_and_markdown(@post.content) %><%= cod...
phpinfo 3 lines of C 21 Bytes Show Edit Expand
1
2
3
<?php
phpinfo();
?>
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 = '#...

Page 295, 10 entries