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 |
6 lines
of
Ruby
by
Beavis
|
37 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
def run
puts :test
end
test |
|
Test |
1 line
of
JSON
by
Test
|
2.05 KB |
Show |
Edit |
Expand |
1 |
{"action":"webhook","model":{"id":"4d5ea62fd76aa1136000000c","name":"Trello Development","desc":"Trello board used by the Trello team to track work on Trello. How meta!\n\nThe development of the Tr... |
|
ES6 String Interpolation |
13 lines
of
JavaScript
|
157 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
class Simple {
foo() {
this.data.append(`
<div id="foo">
${1 + 1}
</div>
`);
}
bar() {
return 42;
}
} |
|
ads |
1 line
of
Python
|
10 Bytes |
Show |
Edit |
Expand |
|
React |
1 line
of
JavaScript
by
-
|
108 Bytes |
Show |
Edit |
Expand |
1 |
{ "note": { "to": "Tove", "from": "Jani", "heading": "Reminder", "body": "Don't forget me this weekend!" } } |
|
dsf |
3 lines
of
C
|
81 Bytes |
Show |
Edit |
Expand |
1
2
3 |
class User < ActiveRecord::Base
attr_accessible :first_name, :last_name
end
|
|
js |
3 lines
of
JavaScript
by
taro
|
82 Bytes |
Show |
Edit |
Expand |
1
2
3 |
function mailTemplate(name) {
console.log(`hi ${name} こんにちは, こんにちは こんにちは`);
} |
|
s |
5 lines
of
Python
|
87 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
def explore(u, n):
if n < N_e:
return R_plus
else:
return u |
|
Geb example |
4 lines
of
Ruby
|
148 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
assert $("p", 0).text() == "a"
assert $("p", 2).text() == "c"
assert $("p", 0..1)*.text() == ["a", "b"]
assert $("p", 1..2)*.text() == ["b", "c"] |
|
yaml list |
4 lines
of
YAML
by
iao
|
46 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
---
a b c
---
def gh ijkio |
|