Welcome! This page is using CodeRay 1.1.2.

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

Page 207, 10 entries

Disappointing Objective C -- person class 22 lines of Python by Cody 420 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
// Person class

#import <Foundation/Foundation.h>

@interface Person : NSObject {
}

@property (nonatomic, retain) NSString *firstName;
@property (nonatomic, retain) NSString *lastName;

...
teste1 1 line of SQL 25 Bytes Show Edit Expand
1
SELECT nome from clientes
teste sql 12 lines of C by teste 427 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
DECLARE @Skip int
DECLARE @Take int

SET @Skip = 0     -- The number of records to skip
SET @Take = 10  -- The number of records to return

SELECT * FROM (
   SELECT ROW_NUMBER() OVER (ORDER...
ruby 2 lines of Ruby 115 Bytes Show Edit Expand
1
2
a = data = [ false, 42, %w(forty two), { :now => Time.now, :class => Time.now.class, :distance => 42e42 } ]
puts a
Scala test 75 lines of Java by asdasdas 2.89 KB Show Edit Expand
1
2
3
4
5
6
7
8
package pdss.biz.ceval.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;...
haml ??? 10 lines of Ruby 439 Bytes Show Edit Expand
1
2
3
4
5
6
= simple_form_for @page_layout, :html => {:multipart => true} do |f|
  =f.input :name
  =f.input :default
  =f.input :blocks
  =f.input :haml_template, :as => :file
  -if @page_layout.haml_tem...
Class 60 lines of Ruby 1.91 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
class CodeFormatter
  def initialize(text)
    @text = text
  end

  def to_html
    text = @text.clone
    codes = []
    text.gsub!(/^``` ?(.*?)\r?\n(.+?)\r?\n```\r?$/m) do |match|
     ...
Test 5 lines of Ruby by 123 162 Bytes Show Edit Expand
1
2
3
4
5
def edit
    @book = Book.find(params[:id])
    @publisher = Publisher.find(@book.publisher.id) unless @book.publisher.blank?
    @authors = @book.authors
end
objc ? 1 line of C++ 19 Bytes Show Edit Expand
1
[NSString dealloc];
Diff test 98 lines of Java by MagicTonton 4.3 KB Show Edit Expand
1
2
3
Modified: trunk/src/com/se/server/events/servlets/EventServiceImpl.java
===================================================================
--- trunk/src/com/se/server/events/servlets/EventServic...

Page 207, 10 entries