Welcome! This page is using CodeRay 1.1.2.

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

Page 117, 10 entries

title 13 lines of C by author 241 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
#import <Foundation/NSObject.h>

@interface Fraction: NSObject {
    int numerator;
    int denominator;
}

-(void) print;
-(void) setNumerator: (int) n;
-(void) setDenominator: (int) d;
...
ruby code 19 lines of Ruby 317 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
def something
  a = [
        [  1, 2, 3, 4 ],
        [  5, 6, 7, 8 ],
        [ 9, 10,11,12 ],
        [ 13,14,15,16 ]
      ]
  puts a.inspect
  (0..3).each do |i|
    (0..3).each do |j...
test 1 line of Ruby by Harisankar P S 20 Bytes Show Edit Expand
1
puts "hello world!!"
First 37 lines of Ruby 602 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Vn="S,B,L".scan(/\b/).size/2
MinLength=Vn+2
quan=0 
A=["","","","","",""]
until quan>4 do
  
  z="S"
  while z=~/['S']/

    z=z.gsub(/[S]/,'aB')

  while z=~/['B']/
    x=rand
    if ...
kjdsfk 3 lines of Ruby 15 Bytes Show Edit Expand
1
2
3
Hello
if
else
asd 1 line of Ruby 35 Bytes Show Edit Expand
1
http://coderay.rubychan.de/rays/new
sql 3 lines of SQL 88 Bytes Show Edit Expand
1
2
3
  Processing by Users::SessionsController#create as HTML

Completed 302 Found in 619ms
BAB 29 lines of PHP by ReptoxX 1015 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9

<form action="" method="get"> <!-- Please use Post instead of Get -->
  <table class="table table-normal">
    <tr>
      <td>Name:</td>
      <td>Age:</td>
    </tr>
    <tr>
      <td><input type="text"...
sdfsdf 17 lines of Delphi by qwerty 256 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
program factorial;

function fact(n: integer): longint;
begin
    if (n = 0) then
        fact := 1
    else
        fact := n * fact(n - 1);
end;

var
    n: integer;

begin
    for ...
foo.rb 25 lines of Ruby 533 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
irb(main):001:0> class Foo
irb(main):002:1> def foo
irb(main):003:2> "foo"
irb(main):004:2> end
irb(main):005:1> end
=> nil
irb(main):006:0> module X
irb(main):007:1> class Foo
irb(main):00...

Page 117, 10 entries