Welcome! This page is using CodeRay 1.1.2.
We currently have
3042 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
XML Test |
5 lines
of
XML
by
ck
|
76 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<Test Id="1">
<Description>
Test Description
</Description>
</Test> |
|
JS Test |
13 lines
of
JavaScript
|
279 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
function KeyCode(event) {
this.event = event;
this.normalize = function() {
return (this.event.keyCode ? this.event.keyCode : this.event.which);
}
this.isEnter = function() {
... |
|
cool |
2 lines
of
Ruby
|
59 Bytes |
Show |
Edit |
Expand |
|
home test |
7 lines
of
Ruby
by
YY
|
132 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
get '/new' do
if session["username"]
haml :new
else
redirect '/login'
end
end |
|
test ruby |
5 lines
of
Ruby
by
rubforever
|
52 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
class test
def index
puts "hello world!"
end
end |
|
populator.rake |
13 lines
of
Ruby
by
Railscasts
|
355 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
namespace :db do
desc "Erase and fill database"
task :populate => :environment do
[Product].each(&:delete_all)
Product.populate 10..100 do |product|
product.title... |
|
FooBar |
1 line
of
Ruby
|
151 Bytes |
Show |
Edit |
Expand |
|
SQL |
7 lines
of
SQL
|
239 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
SELECT COUNT(*),
CAST(hostname AS VARCHAR(20)) AS hostname,
CAST(program_name AS VARCHAR(30)) AS program_name,
CAST(loginame AS VARCHAR(30)) AS loginame
FROM master..SYSPROCESSES
GROUP BY ho... |
|
Unityscript test |
32 lines
of
JavaScript
|
902 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
var rotationSpeed = 10.0;
var lerpSpeed = 1.0;
private var speed = new Vector3();
private var avgSpeed = new Vector3();
private var dragging = false;
private var targetSpeedX = new Vector3()... |
|
html |
1 line
of
XML
|
4 Bytes |
Show |
Edit |
Expand |
|