Welcome! This page is using CodeRay 1.1.0 (beta).

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

Page 123, 10 entries

HTML 24 lines of HTML 337 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div>
  <div>
    <p>lorem ipsum dolor</p>
  </div>
  <div>
    <p>lorem ipsum dolor</p>
  </div>
</div>
<div>
  <div>
    <p>lorem ipsum dolor</p>
  </div>
  <div>
    <p>lorem ipsum ...
Announcement 1 line of Plain text by murphy 43 Bytes Show Edit Expand
1
The CodeRay website was updated to Rails 3.
Rake task 5 lines of Plain text by huug 205 Bytes Show Edit Expand
1
2
3
4
5
huug@huug-hp-laptop ~/workspace/tenue[masterâš¡]$ rake new
(in /home/huug/workspace/tenue)
Title: New article             

  toto ~ an article was created for you at articles/2011-02-12-new-ar...
HelloWorld 8 lines of C 112 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
class HelloWorld 

{
  public static void main (String args[])
  {
    System.out.println("HelloWorld");
  }
}
sd 38 lines of Ruby 632 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
class Router

    class Route 
        attr_accessor :name,:path

        def initialize(name,path)
            @name = name
            @path = path
        end

        def to_s
      ...
json 17 lines of Ruby 297 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
{
    animals:{
        dog:[
            {
                name:'Rufus',
                breed:'labrador'
            },
            {
                name:'Marty',
                breed:...
JSON test 1 line of JavaScript 4.49 KB Show Edit Expand
1
[{"html":"<a class='entity' href='http://intridea.presently.com/entity/jon'>@jon</a> <a href=\"intridea.presently.com/topics/protip\" title=\"#protip\" alt=\"protip\" rel=\"tag\" class=\"tag qtip_t...
test 1 line of PHP 4 Bytes Show Edit Expand
1
test
asaas 17 lines of HTML by asasas 812 Bytes Show Edit Expand
1
2
3
4
5
    <div class="form-item clear">
            <table class="ask-title-table">
                <tr>
                    <td class="ask-title-cell-key">
                        <div class="editor...
c++ test 32 lines of C++ by http://www.cplusplus.com/doc/tutorial/inheritance/ 642 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
// friend functions
#include <iostream>
using namespace std;

class CRectangle {
    int width, height;
  public:
    void set_values (int, int);
    int area () {return (width * height);}
...

Page 123, 10 entries