Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
multiline comments |
24 lines
of
C
by
Avi
|
558 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
CDcmImage* misc::RetrieveAndMaybeCreateDcmImage(
CDcmSeries* a_pSeries,
const std::string& a_sImgUID,
size_t a_nImageIdx
)
{
const bool bMakeItFail = false;
if ( bMakeItFail)
... |
|
C++ Classes |
40 lines
of
C
by
Me
|
846 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
class valor_aptidao
{
public:
int i;
float aptidao;
valor_aptidao(std::pair<int,float>p)
{ i = p.first; aptidao = p.second; }
};
bool vcompare (valor_aptidao lhs,
valor_apt... |
|
FooBar |
7 lines
of
Ruby
by
dirtyhand
|
299 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
def to_link(member_id='default-member')
doc = Hpricot(code)
link = doc.search('a').first[:href]
link = " href=\"#{link}#{retailer.broker.member_id_template... |
|
km |
4 lines
of
Ruby
|
28 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
class Foo
def bar
end
end |
|
ruby |
2 lines
of
Ruby
|
24 Bytes |
Show |
Edit |
Expand |
1
2 |
class Robot < Human
end |
|
TDog |
9 lines
of
Delphi
by
kai
|
179 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
TDog =
class(TAnimal)
private
FName: string;
protected
procedure SetName(const Name: string);
public
property Name: string read FName write SetName;
end; |
|
bvn |
15 lines
of
Ruby
|
304 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
#!/usr/bin/ruby
require 'socket'
addrinfo = Socket::getaddrinfo(nil, 'www', nil, Socket::SOCK_STREAM, nil, Socket::AI_PASSIVE)
af, port, name, addr = addrinfo.first
sock = TCPServer(addr, ... |
|
BBEdit Include |
10 lines
of
Ruby
by
Curt Sheller
|
253 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
#!/usr/bin/ruby
imageFile = ARGV[2]
puts "<... |
|
my c test |
8 lines
of
C
|
75 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
#include <stdio.h>
int main(void)
{
printf("X\n");
return 0;
} |
|
tetest |
6 lines
of
PHP
|
40 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<?php
function test()
{
test
}
?> |
|