Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
test |
8 lines
of
Ruby
by
Adam Q
|
352 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
def main():
auth_handler = urllib.request.HTTPBasicAuthHandler()
auth_handler.add_pass... |
|
test |
8 lines
of
Python
|
352 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
def main():
auth_handler = urllib.request.HTTPBasicAuthHandler()
auth_handler.add_pass... |
|
sas |
5 lines
of
HTML
by
as
|
173 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<!doctype html>
<html>
<head>
<title>Tablă de șah</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.2r1/build/reset/reset-min.css">
|
|
strcpy |
8 lines
of
C
by
openbsd
|
155 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
char *
strcpy(char *to, const char *from)
{
char *save = to;
for (; (*to = *from) != '\0'; ++from, ++to);
return(save);
}
|
|
pip |
17 lines
of
Plain text
by
test
|
694 Bytes |
Show |
Edit |
Expand |
1
2
3 |
->from('Auto4Cars_AutoPriceStatisticDBO s')
->innerJoin('s.Passport_CurrenciesRateDBO cr WITH cr.toCurrency = 1')
// ->addWhere('s.created_at > (NOW() - INTERVAL 12 MON... |
|
test |
7 lines
of
C++
|
307 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
struct msgStruct
2 {
3 uint instanceid;
4 byte datasize;
5 byte msgType; |
|
CSS Baby |
10 lines
of
CSS
by
Micky
|
248 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
@charset "utf-8";
body {
margin:0;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
background: url(/images/layout/container_background.jpg) no... |
|
check_website |
30 lines
of
PHP
|
635 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<?php
if(!isset($argv[1])) { echo "Usage: ./check_www <url (without http://)>\n"; exit(2); }
$url = "http://" . $argv[1];
$header = @get_headers($url, 1);
if(!$header) { echo "Could not c... |
|
test |
4 lines
of
JSON
|
26 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
{
"var":1,
"test": {}
} |
|
test |
13 lines
of
HTML
|
375 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
= String < Object
--------------------------------------------------------------
= Includes:
(from ruby core)
Comparable
Enumerable
(from ruby core)
---------------------------------... |
|