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.
PHP |
22 lines
of
PHP
by
asd
|
679 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
function rand_str($length = 32, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890')
{
$chars_len... |
|
test |
5 lines
of
Ruby
|
66 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
class Person
def initialize(name)
@name = name
end
end |
|
asd |
5 lines
of
Ruby
|
71 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
class Person
def initialize(name)
@name = name
end
end |
|
Punkt Klammer 1.9 |
1 line
of
Ruby
by
bovi
|
22 Bytes |
Show |
Edit |
Expand |
|
ObjC Test |
10 lines
of
C
by
shauber
|
476 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
NSString *dbName = @"cartracker.sqlite3";
NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
... |
|
test |
84 lines
of
Plain text
by
john
|
2.5 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
# install openssh-server
$ sudo apt-get install openssh-server
#install updates and tools
$ sudo apt-get update?$ sudo apt-get upgrade?$ sudo apt-get install build-essential
# install php
... |
|
test |
12 lines
of
Plain text
|
163 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
test = test <<-"TEST1", <<-"TEST2"
testteset
ets#{testetsetsett}safdsfdfsda
esste
ste
TEST1
sdfdfsfsdfsd
fddsfdsdsf
#{adsdsdas}sdffa
dfs
fdsfdsfds
TEST2 |
|
HAML test |
19 lines
of
ERb
by
Imanel
|
520 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
!!!
%html(xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en")
%head
%title BoBlog
%meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
= stylesheet_link_... |
|
How C++ looks with C highlighting |
12 lines
of
C
by
J. Wedekind
|
161 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
template< typename T >
T plus( const &T x )
{
return -x;
}
template< typename T >
class image
{
public:
image( const image< T > &_image ) {}
};
|
|
My Test |
1 line
of
Plain text
|
24 Bytes |
Show |
Edit |
Expand |
1 |
sudo gem install coderay |
|