Welcome! This page is using CodeRay 1.1.2.

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

Page 258, 10 entries

Delphi test 11 lines of Delphi by Salvi 163 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
function Test1(i: integer): integer;
begin
    if i > 2 then
    begin
        Result := i;
    end
    else
    begin
        Result := 0;
    end;
end;
Delphi 14 lines of Delphi by vadv 278 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
program Project1;
uses
  Forms,
  Unit1 in 'Unit1.pas' { Form1 } ;

{$R *.res}

begin
  ReportMemoryLeaksOnShutdown := DebugHook<>0;
  Application.Initialize;
  Application.MainFormOnTask...
ok 10 lines of SQL 554 Bytes Show Edit Expand
1
2
3
4
ALTER TABLE bidding_rules ADD campaign_id BIGINT;
ALTER TABLE bidding_rules ADD ad_positions INTEGER NOT NULL DEFAULT 0;
ALTER TABLE bidding_rules ALTER ad_positions DROP DEFAULT;
ALTER TABLE bi...
PHP test 14 lines of PHP 170 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
echo "Hello World";

MyClass::staticMethod();

class A {
    private $a;

    public function f() {
        $this->a = "123";
    }
}

$a = new A();
$a->f();
sql 48 lines of SQL 2.39 KB Show Edit Expand
1
2
3
4
5
select 1 from-- Skapa en ny tabell med de endast de språkkoder vi accepterar
CREATE TABLE public.languages (
    language_code char(2) PRIMARY KEY
);
INSERT INTO public.languages VALUES ('sv')...
HTML test 16 lines of HTML by czaber 271 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
<table>
  <tbody>
    <tr>
      <!-- cells go here -->
    </tr>
    <tr class="even">
      <!-- cells go here -->
    </tr>
    <tr> 
      <!-- cells go here -->
    </tr>
    <tr cl...
plsql 12 lines of SQL 197 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
declare
cursor cur is
(select contractid from contract where rownum=1);
r_serviceid contract.contractid%type;

begin
open cur;
loop 
fetch cur into r_serviceid;
end loop;
close cur;
end;
asdasd 3 lines of Java by asdasd 176 Bytes Show Edit Expand
1
2
3
string url = "http://localhost:8731/Design_Time_Addresses/Bobsled/OH";
ServicePoint mySP = ServicePointManager.FindServicePoint(new Uri(url));
mySP.UseNagleAlgorithm = false;
test diff 24 lines of diff 717 Bytes Show Edit Expand
1
2
3
4
5
6
index f01ee8e..f6005f1 100644
--- a/app/views/layouts/base.rhtml
+++ b/app/views/layouts/base.rhtml
@@ -7,6 +7,20 @@
 <meta name="keywords" content="issue,bug,tracker" />
 <%= stylesheet_link_...
Hueta 14 lines of PHP 271 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
<?php
class MyDestructableClass {
  function __construct() {
      print "In constructor\n";
      $this->name = "MyDestructableClass";
  }

  function __destruct() {
      print "Destroyin...

Page 258, 10 entries