Welcome! This page is using CodeRay 1.1.2.

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

Page 255, 10 entries

not_allowed.rb 13 lines of ERb 302 Bytes Show Edit Expand
1
2
3
4
5
6
7
<%- content_for :title do -%>
  <%= @content.parent.parent.title %>
<%- end -%>

<div class="corner-content-1col-top"></div>

<%- content_1col_module @content.title, {:border => false, :class...
PHP 22 lines of PHP by asd 679 Bytes Show Edit Expand
1
2
3
4
5
// Generate a random character string
function rand_str($length = 32, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890')
{
    // Length of character list
    $chars_len...
test 5 lines of Ruby 66 Bytes Show Edit Expand
1
2
3
4
5
class Person
def initialize(name)
 @name      = name
  end
end
asd 5 lines of Ruby 71 Bytes Show Edit Expand
1
2
3
4
5
class Person
  def initialize(name)
    @name      = name
  end
end
Punkt Klammer 1.9 1 line of Ruby by bovi 22 Bytes Show Edit Expand
1
A.new.(1,2) #=> [a, b]
ObjC Test 10 lines of C by shauber 476 Bytes Show Edit Expand
1
2
3
4
// Setup database location
        NSString *dbName = @"cartracker.sqlite3";
        NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
   ...
test 84 lines of Plain text by john 2.5 KB Show Edit Expand
1
2
3
4
5
6
7
8
# install openssh-server
$ sudo apt-get install openssh-server

#install updates and tools
$ sudo apt-get update?$ sudo apt-get upgrade?$ sudo apt-get install build-essential

# install php
...
test 12 lines of Plain text 163 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
test = test <<-"TEST1", <<-"TEST2"
testteset
ets#{testetsetsett}safdsfdfsda
esste
ste
TEST1
sdfdfsfsdfsd
fddsfdsdsf
#{adsdsdas}sdffa
dfs
fdsfdsfds
TEST2
HAML test 19 lines of ERb by Imanel 520 Bytes Show Edit Expand
1
2
3
4
5
6
!!!
%html(xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en")
  %head
    %title BoBlog
    %meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
    = stylesheet_link_...
How C++ looks with C highlighting 12 lines of C by J. Wedekind 161 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
template< typename T >
T plus( const &T x )
{
  return -x;
}

template< typename T >
class image
{
public:
  image( const image< T > &_image ) {}
};

Page 255, 10 entries