Welcome! This page is using CodeRay 1.1.2.

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

Page 166, 10 entries

using coderay with redcarpet for Ruby on Rails 21 lines of Ruby by Jason 605 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
module ApplicationHelper
  class MarkdownRenderer < Redcarpet::Render::HTML
    def block_code(code, language)
      CodeRay.highlight(code, language)
    end
  end
  
  def markdown(text)
...
Hello World 10 lines of JSON 142 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello, World");
    }

}

- a
+ a
test 2 lines of HTML by joe 35 Bytes Show Edit Expand
1
2
<h1>hello world</h1>
<h2>test</h2>
test 13 lines of ERb by jc 387 Bytes Show Edit Expand
1
2
3
4
5
6
7
<% @pages.each do |page| %>
  <tr>
    <td><%= page.name %></td>
    <td><%= page.content %></td>
    <td><%= page.stock %></td>
    <td><%= page.quantity %></td>
    <td><%= link_to 'Show', ...
sameera 3 lines of Ruby 43 Bytes Show Edit Expand
1
2
3
class TestClass
  attr_accessor :name
end
my gemgile 11 lines of Ruby by Naveed 230 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
source 'https://rubygems.org'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'rails', '3.2.5'
gem 'devise'
gem "twitter-bootstrap-rails"
gem "s...
Delphi Test 37 lines of Delphi 661 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
unit NoInspectorDescriptionPane;

interface

procedure Register;

implementation

uses
  Forms, Classes, Controls, Dialogs;

function FindObjectInspector: TComponent;
var
  I: Integer;...
dewdew 2 lines of Ruby by dasdas 113 Bytes Show Edit Expand
1
2
save failed for 1 or more records
 > com.servoy.j2db.dataprocessing.DataException: Column 'IdDoc' cannot be null
xml test 7 lines of XML 99 Bytes Show Edit Expand
1
2
3
4
5
6
7
<some>
  <tag>
    <here attr="true"/>
    <text>Some text</text>
    <xxx/>
  </tag>
</some>
Perl as PHP 15 lines of JSON by Marco De Lellis 433 Bytes Show Edit Expand
1
2
3
4
5
6
7
{
        "created_at": "2009-06-09T17:49:20+10:00",
        "email": "steveATsct.com.au@blocks.dev",
        "enabled": true,
        "first_name": "Steve",
        "id": 2,
        "last_lo...

Page 166, 10 entries