Welcome! This page is using CodeRay 1.1.2.

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

Page 301, 10 entries

TDog 9 lines of Delphi by kai 179 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
TDog =
class(TAnimal)
  private
    FName: string;
  protected
    procedure SetName(const Name: string);
  public
    property Name: string read FName write SetName;
end;
bvn 15 lines of Ruby 304 Bytes Show Edit Expand
1
2
3
4
5
6
7
#!/usr/bin/ruby
#
require 'socket'

addrinfo = Socket::getaddrinfo(nil, 'www', nil, Socket::SOCK_STREAM, nil, Socket::AI_PASSIVE)
af, port, name, addr = addrinfo.first
sock = TCPServer(addr, ...
BBEdit Include 10 lines of Ruby by Curt Sheller 253 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
#!/usr/bin/ruby
# get the image file and its size and return a <img scr""> tag

#get the image file in 
imageFile = ARGV[2]

# TODO - Figure out reading the file for the dimensions

puts "<...
my c test 8 lines of C 75 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
#include <stdio.h>

int main(void)
{
  printf("X\n");

  return 0;
}
tetest 6 lines of PHP 40 Bytes Show Edit Expand
1
2
3
4
5
6
<?php
function test()
{
  test
}
?>
arachnid (2004 ioccc) 53 lines of C by Landon Curt Noll, Simon Cooper, Peter Seebach and 4.05 KB Show Edit Expand
1
/* Copyright (C) 2004, Landon Curt Noll, Simon Cooper, Peter Seebach and Leonid A. Broukhis. All Rights Reserved. Permission for personal, educational or non-profit use is granted provided this cop...
err 3 lines of Plain text 23 Bytes Show Edit Expand
1
2
3
<?php
phpinfo();
?>
127 UVA online judge 544 lines of C 9.93 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
/* ANSI C */
#include <stdio.h>

typedef struct __stack {
  int buf[52][2];
  int p;
} stack;

void push(stack* s, int c, int v) {
  s->p++;
  s->buf[s->p][0] = c;
  s->buf[s->p][1] = v;...
testing 23 lines of Ruby by Ping 858 Bytes Show Edit Expand
1
2
3
4
5
ActiveRecord::Schema.define(:version => 11) do

  create_table "addresses", :force => true do |t|
    t.integer  "addressable_id",                                                :null => false
...
index.c 70 lines of XML by Dave 1.9 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
#include "index.h"
#include "similarity.h"
#include "helper.h"
#include "array.h"
#include "priorityqueue.h"
#include <string.h>
#include <limits.h>
#include <ctype.h>

#define GET_LOCK(lo...

Page 301, 10 entries