Welcome! This page is using CodeRay 1.1.2.

We currently have 3067 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 237, 10 entries

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)
---------------------------------...
test 3 lines of ERb by ret 64 Bytes Show Edit Expand
1
2
3
<span>
  <%= link_to "Show", product_path(@product) %>
</span>
test 13 lines of Ruby 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)
---------------------------------...
test 13 lines of diff 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)
---------------------------------...
test 13 lines of Plain text 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)
---------------------------------...
XML Asp.Net 23 lines of XML 1.55 KB Show Edit Expand
1
2
3
4
5
  <appSettings>
    <!-- For product change the value to ADUserRepository or FakeUserRepository -->
    <add key="Repository" value="ADUserRepository"/>
    <!-- Active Directory Settings -->
 ...
Test_SQL 2 lines of SQL by N_McF 45 Bytes Show Edit Expand
1
2
-- This is a comment
Select * from Torrent
primes 36 lines of Python by beardedp 1.09 KB Show Edit Expand
1
2
3
4
5
def miller_rabin_prime(n):
    """Implementation of the Miller-Rabin probalistic primality
    test. http://en.wikipedia.org/wiki/Miller-Rabin_primality_test"""
    if n % 2 and n > 3:
        ...

Page 237, 10 entries