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.
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... |
|
JScript Test |
0 lines
of
JSON
by
nobody
|
0 Bytes |
Show |
Edit |
Expand |
|
Assembler |
14 lines
of
C
by
NASM
|
224 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
GLOBAL squaring
SECTION .bss
res: resb 8
sav: resb 94
SECTION .text
squaring:
FNSAVE [sav]
push ebp
finit
fld1
fld QWORD [esp+8]
MOV EAX, [esp+... |
|