Welcome! This page is using CodeRay 1.1.2.

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

Page 116, 10 entries

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...
Audit Database Class 122 lines of PHP 2.98 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
<?php

class DataBase
{
    protected $_pdo    = null;
    protected $_banco  = null;
    protected $_config = null;

    public function __construct()
    {
        try {
            $t...
CSS Parser 15 lines of Ruby by mg 387 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
require 'css_parser'

class InlineStyle
  class CssParserWrapper
    attr_accessor :rules

    def initialize(css_code)
      parser, @rules = CssParser::Parser.new, []
      parser.add_blo...
foo.rb 6 lines of Ruby 50 Bytes Show Edit Expand
1
2
3
4
5
6
def foo
  # foo comment
  puts "Foo"
end

foo
T 41 lines of C 932 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
def repS(word,n)
  return false if n==nil
  x=rand(3)
  word[n..n]="aS" if x==0
  word[n..n]="bD"  if x==1
  word[n..n]="fR"  if x==2
  return true
end

def repD(word,n)
    return false if ...
test 13 lines of diff 564 Bytes Show Edit Expand
1
2
3
4
5
diff --git a/app/views/pages/welcome.html.erb b/app/views/pages/welcome.html.erb
index 5997ed1..b463598 100755
--- a/app/views/pages/welcome.html.erb
+++ b/app/views/pages/welcome.html.erb
@@ -...

Page 116, 10 entries