Welcome! This page is using CodeRay 1.1.2.
We currently have
3068 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
| primes |
36 lines
of
Python
by
beardedp
|
1.09 KB |
Show |
Edit |
Expand |
1
2
3
4
5 |
def miller_rabin_prime(n):
"""Implementation of the Miller-Rabin probalistic primality
test. http://en.wikipedia.org/wiki/Miller-Rabin_primality_test"""
if n % 2 and n > 3:
... |
|
| asddsa |
1 line
of
HTML
by
hund
|
12 Bytes |
Show |
Edit |
Expand |
|
|
| junk |
40 lines
of
Ruby
|
983 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
def buttonChooseFolder_clicked
if folder = VR_Dialog.folder_box(@builder)
if folder =~ /^#{@path}\b/
VR_Dialog.message_box("You must select a backup path outside the project's root f... |
|
| CSS |
5 lines
of
CSS
by
delete.me
|
54 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
#test
{
background-color: red;
height: 56px;
} |
|
| item_code |
1 line
of
Ruby
by
tester
|
69 Bytes |
Show |
Edit |
Expand |
1 |
"#{obj.design_code}.#{obj.width_in_cm.to_i}.#{obj.length_in_cm.to_i}" |
|
| delete me |
7 lines
of
diff
|
292 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
-SET &ECHO=OFF;
-* ----------------------------------------------------------------------------
-DEFAULT &OUTPUT = 'HTML';
-SET &REPNAME = ' ';
-SET &FLTTR = 'YES' ;
-* -----------------------... |
|
| delete me |
7 lines
of
HTML
|
292 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
-SET &ECHO=OFF;
-* ----------------------------------------------------------------------------
-DEFAULT &OUTPUT = 'HTML';
-SET &REPNAME = ' ';
-SET &FLTTR = 'YES' ;
-* -----------------------... |
|
| delete me |
7 lines
of
JavaScript
|
292 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
-SET &ECHO=OFF;
-* ----------------------------------------------------------------------------
-DEFAULT &OUTPUT = 'HTML';
-SET &REPNAME = ' ';
-SET &FLTTR = 'YES' ;
-* -----------------------... |
|
| delete me |
7 lines
of
C
|
292 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
-SET &ECHO=OFF;
-* ----------------------------------------------------------------------------
-DEFAULT &OUTPUT = 'HTML';
-SET &REPNAME = ' ';
-SET &FLTTR = 'YES' ;
-* -----------------------... |
|
| delete me |
7 lines
of
diff
|
292 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
-SET &ECHO=OFF;
-* ----------------------------------------------------------------------------
-DEFAULT &OUTPUT = 'HTML';
-SET &REPNAME = ' ';
-SET &FLTTR = 'YES' ;
-* -----------------------... |
|