Welcome! This page is using CodeRay 1.1.2.
We currently have
3063 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
test python |
10 lines
of
Python
|
158 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
import Allo as Al
a = Al.Courbe()
a = Al.import('example.dat')
a.rotate(15)
axes = [-0.1,1.1,-0.7,0.7]
a.plot(axes)
|
|
基本原则 |
2 lines
of
PHP
|
17 Bytes |
Show |
Edit |
Expand |
|
Some SQL-Queries |
5 lines
of
SQL
by
tester
|
126 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
SELECT * FROM Addresses;
SELECT * FROM Customers;
SELECT * FROM Invoices;
SELECT * FROM LineItems;
SELECT * FROM Products; |
|
pg sql |
10 lines
of
SQL
|
194 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
CREATE FUNCTION get_name(integer) RETURNS varchar AS $$
DECLARE
uname varchar;
BEGIN
SELECT name into uname
FROM table_test1
WHERE id = $1;
RETURN uname;
END;
$$ LANGUAGE plpgsql;
|
|
test |
4 lines
of
Ruby
by
test
|
38 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
def test
puts "test"
end |
|
qt code |
8 lines
of
C++
by
qt
|
224 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
QFile file("box.txt");
if (file.open(QFile::ReadOnly)) {
char buf[1024];
qint64 lineLength = file.readLine(buf, sizeof(buf));
if (lineLength != -1) {
|
|
YAML Test |
8 lines
of
YAML
by
Me
|
51 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
---
X: 1
Y: 2
Z:
- A: 5
B: 6
C: 7
... |
|
PHP + russian test |
8 lines
of
PHP
by
troex
|
358 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
<?
$MESS["OPEN_WRONG_CAPTCHA"] = "Неверно введены символы с картинки";
$MESS["CAB_ACC_OPEN_S1"] = "Не выбрана валюта <br />торгового счета";
$MESS["CAB_ACC_OPEN_S2"] = "Не выбрано плечо торговог... |
|
test value-less attribute |
19 lines
of
HTML
|
305 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
<b>This is bold</b>
<p>
This <b>bold</b> is <i>nested</i>
</p>
<iframe sandbox>
This attribute has no value.
</iframe>
<textarea disabled>
This is a disabled text area.
</texta... |
|
Android Layout XML |
19 lines
of
PHP
|
592 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
... |
|