Welcome! This page is using CodeRay 1.1.2.
We currently have
3063 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Quick Syntax highlighting test |
10 lines
of
Ruby
by
Deaner666
|
96 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
def index
inc = 0
for post in @posts do
inc += 1
post.id = inc
end
end |
|
XML TEST |
11 lines
of
ERb
by
TZA
|
499 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:verifyRequest xmlns:ns2="http://project4.pl/cc/ws" ncd="false" txid="task-108592" checkLimit="true"
... |
|
coderay in Wx::TextCtrl |
15 lines
of
Ruby
by
pbr
|
490 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
def colourize k,t,ts
if k and t
c,c1=@ins_pt,ts+@... |
|
Java |
2 lines
of
Java
|
96 Bytes |
Show |
Edit |
Expand |
1
2 |
hlpGroup.setPersistor(null); |
|
Euclids Algorithm |
37 lines
of
Ruby
by
chaitanya
|
740 Bytes |
Show |
Edit |
Expand |
|
erwqr |
1 line
of
Ruby
|
18 Bytes |
Show |
Edit |
Expand |
|
factory test |
11 lines
of
Ruby
|
306 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
Factory.define :user do |f|
f.sequence(:username) { |n| "user#{n}" }
f.password "test"
f.password_confirmation { |u| u.password }
f.sequence(:email) { |n| "user#{n}@example.com" }
end
... |
|
check rights |
9 lines
of
Ruby
|
257 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
def check_rights
begin
name = self.class.name.underscore.split("_")[0].capitalize.singularize
o = eval(name).find(params[:id])
notowner = o.user != current_user
res... |
|
Test PHP |
32 lines
of
Delphi
|
1.06 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
require_once( ABSPATH . '/wp-includes/registration.php');
3
4
5 $wpcas_options = array(
6 'cas_version' => '2.0',
7 'include_path' => '/RUTA/DEL/PHPCAS/CA... |
|
JSON |
12 lines
of
JSON
|
261 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
{
"id": 1,
"type": "banner",
"title": "som title",
"enabled": true,
"geo": "geo things",
"width": 150,
"height": 300,
"ext": "",
"html": "<div>yay, i ca... |
|