Welcome! This page is using CodeRay 1.1.2.
We currently have
3049 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
test |
4 lines
of
CSS
by
gd
|
36 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
## test
body {}
## another test |
|
Html test |
111 lines
of
HTML
|
3.93 KB |
Show |
Edit |
Expand |
1
2
3
4 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Web SQL S... |
|
ee |
13 lines
of
Ruby
|
370 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
class Pasta
include DataMapper::Resource
property :id, Serial
property :content, Text
property :paster, String
property :t... |
|
Testing method calls |
5 lines
of
Ruby
|
68 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
def foo
self.bar + 123
something(123)
blah.moo(1000)
end
|
|
Obj-C |
6 lines
of
C
|
153 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
- (void)endEditing:(id)sender
{
[self performSelector:@selector(updateStatus)
withObject:nil
afterDelay:0.05];
} |
|
Ruby 1.9 hash syntax |
1 line
of
Ruby
|
42 Bytes |
Show |
Edit |
Expand |
1 |
h = { first: "first", second: "second" }
|
|
Generated JS |
51 lines
of
JavaScript
|
1.37 KB |
Show |
Edit |
Expand |
1
2
3
4
5 |
function NUMER(patient) {
var prcn5 = function(patient) {
var prcn6 = function(patient) {
var comp7 = function(patient) {
|
|
JSON |
7 lines
of
JSON
|
171 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
{
sender_id: 111111111111,
receiver_id: 222222222222,
text: "message text",
date: "string (or whatever?) date value",
date: "string (or whatever?) date value"
} |
|
Ruby Hello World |
1 line
of
Ruby
by
jag
|
9 Bytes |
Show |
Edit |
Expand |
|
Haml |
9 lines
of
Java
by
NW
|
145 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
!!! 5
%html{lang: 'en'}
%head
%title Haml Highlighting
%body
#id.class
%h1 Title
%p
Stuff in a paragraph. |
|