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.
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 |
|
test45453 |
1 line
of
Java
by
asdfnn
|
61 Bytes |
Show |
Edit |
Expand |
1 |
byte[] content = "Inhalt 1".getBytes(StandardCharsets.UTF_8); |
|
bkj |
25 lines
of
C
|
643 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Macken");
MODULE_DESCRIPTION("SW2");
static int mygpio_open(struct inode*, struct file*);
static int mygpio_release(struct inode *inode, struct ... |
|
Test JS with callout |
36 lines
of
JavaScript
by
Yo
|
1.08 KB |
Show |
Edit |
Expand |
|
Ruby |
13 lines
of
Ruby
by
Luka
|
312 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
gem "rest-client"
resource = RestClient::Resource.new(
"localhost:3000/api/v1/distance_and_bearing",
payload: {
api_key: YOUR_API_KEY,
pay... |
|
skel |
18 lines
of
HTML
|
454 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Canvas tutorial</title>
<script type="text/javascript">
function draw() {
var canvas = document.getEl... |
|
skelton |
19 lines
of
HTML
|
470 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Canvas tutorial</title>
<script type="text/javascript">
function draw() {
var canvas = document.getEl... |
|
erb |
3 lines
of
ERb
by
taro
|
89 Bytes |
Show |
Edit |
Expand |
1
2
3 |
<h1>New blog</h1>
<p>title: <%= @blog.title %></p>
<p>content: <%= @blog.content %></p> |
|