Welcome! This page is using CodeRay 1.1.2.
We currently have
3043 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
action |
9 lines
of
Ruby
|
158 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
MAGIC_NUMBER = 10000000
def is_anyout_out_there?
"Is anybody out there?"
end
def hardcore_action
MAGIC_NUMBER.times { is_anyout_out_there? }
end |
|
asda |
8 lines
of
Plain text
by
asda
|
213 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
class Array
def quick_sort
return self if length <= 1
pivot = self[0]
less, greatereq = self[1..-1].partition { |x| x < pivot}
less.quick_sort + [pivot] + greatereq.quick_so... |
|
asda |
35 lines
of
PHP
by
asda
|
697 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
def merge_sort(m)
if m.length <= 1
return m
end
middle = m.length / 2
left = m[0,middle]
right = m[middle..-1]
left = merge_sort(left)
right = merge_... |
|
Assembly info |
8 lines
of
Java
by
test
|
563 Bytes |
Show |
Edit |
Expand |
1
2
3 |
Indexer.TFSUtil tfsUtil = new Indexer.TFSUtil();
tfsUtil.UnitTesting = true;
Assert.IsNotNull(tfsUtil.ConnectToTFS(@"http://israel2-pc:8080/tfs/", @"israel2-pc... |
|
JSON response |
17 lines
of
JSON
|
195 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 |
{
total: 51,
index: 1,
list: [
{
unite: {
code: "J",
libelle: "Jour"
},
unites: true,
souhait: false,
libelle: "122638",
uniteh: true,
unitej: true,
code: "1226",
unitem: true
}]} |
|
test for Terminal |
8 lines
of
Plain text
|
76 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<pre>
<code class="terminal">
var="hola"
./configure
</code>
</pre> |
|
Number Maping |
7 lines
of
JavaScript
by
Drsko Senchitj
|
196 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
function mapNumber(id1, id2){
var firstDigit = Math.min(id1, id2);
var secondDigit = Math.max(id1, id2);
return (firstDigit*(25-firstDigit)>>1) + secondDigit - 1;
} |
|
Ruby method |
3 lines
of
Ruby
by
JM
|
34 Bytes |
Show |
Edit |
Expand |
1
2
3 |
def say_hello
puts "Hello"
end |
|
sgg |
14 lines
of
CSS
|
874 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
FCM: NON-DROP FRAME
001 X041C001_111215.DPX V C 04:05:07:15 04:05:49:07 01:00:00:00 01:00:41:17
*FROM CLIP NAME: 632/VXX912-1
002 X041C002_111208.DPX V C 04:06:14:22 0... |
|
fdf |
4 lines
of
Ruby
|
40 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
def ass
puts "balls"
up "ass"
end |
|