Welcome! This page is using CodeRay 1.1.2.
We currently have
3061 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Test |
211 lines
of
Ruby
|
5.03 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
require 'rubygems'
require 'terminator'
class Class
def unsafe_methods(*methods)
methods.each do |method|
self.class_eval "def safe_and_#{method}; sandbox('#{method}'); end;"
... |
|
applicant |
6 lines
of
SQL
|
322 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
ALTER TABLE applicant
ADD COLUMN gi_mailingdd214 TINYINT(4) NOT NULL COMMENT '',
ADD COLUMN gi_applied TINYINT(4) NOT NULL COMMENT '',
ADD COLUMN gi_mailingcert TINYINT(4) NOT NULL COMMENT '',... |
|
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' ;
{$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
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>
</tr>
<tr class="even">
</tr>
<tr>
</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; |
|