Welcome! This page is using CodeRay 1.1.2.

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

Page 158, 10 entries

auie 1 line of PHP 28 Bytes Show Edit Expand
1
[(X < Y Or X < Z) And X  Q]
Python 4 lines of Python by anon 100 Bytes Show Edit Expand
1
2
3
4
funcs = Functions()
for f in funcs:
    name = Sample(f)
    AnotherFunction("Test: %s\n" % name)
ERB example 8 lines of ERb 344 Bytes Show Edit Expand
1
2
3
4
5
<meta charset="utf-8">
    <title><%= content_for?(:title) ? yield(:title) : @page_name.value %></title>
    <%= csrf_meta_tags %>

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements --...
Model without persist 23 lines of Ruby 566 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
class Contact
  include ActiveModel::Validations
  include ActiveModel::Conversion
  extend ActiveModel::Naming

  attr_accessor :name, :email, :message

  validates_presence_of :name
  #va...
Jotain 49 lines of Ruby 1.52 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
require 'socket'
require 'rubygems'
require 'json'
require 'fileutils'

module Pingpong
  class Client
    def initialize(player_name, server_host, server_port)
      tcp = TCPSocket.open(s...
split 10 lines of Ruby by bovi 271 Bytes Show Edit Expand
1
2
3
4
5
6
lines = <<EOF
Du bist ein werdendes, nicht ein gewordnes ICH.
Und alles Werden ist im Widerspruch mit sich.
Unendliches das WIRD, muss ENDLICH sich gebaeren.
Und Endliches will, indem es wird,
...
test php 14 lines of PHP 583 Bytes Show Edit Expand
1
2
3
4
5
      $filename = 'secret-combination.txt';
      extract($_GET);
      if (isset($attempt)) {
        $combination = trim(file_get_contents($filename));
        if ($attempt === $combination) ...
test ruby 5 lines of Ruby by jduan 101 Bytes Show Edit Expand
1
2
3
4
5
describe Post do
     subject { Post.new published: true }

     it { should be_published }
end
test 1 line of Ruby by e 21 Bytes Show Edit Expand
1
<strong>Test</strong>
misc/ustring.c 22 lines of C 722 Bytes Show Edit Expand
1
2
3
4
/* ==================== handle argv ==================== */

#define ustring_delete_range_p(/*UString **/ ustr, /*UChar **/ from, /*UChar **/ to) \
ustring_delete_len(ustr, from - ustr->ptr, to ...

Page 158, 10 entries