Welcome! This page is using CodeRay 1.1.2.
We currently have
3066 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
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 |
|
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... |
|
Test |
543 lines
of
PHP
|
13 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
<?php
ini_set('html_errors', false);
if (!defined('BITTER_LANGUAGE_PATH')) {
define('BITTER_LANGUAGE_P... |
|
testtest |
3 lines
of
ERb
by
testest
|
50 Bytes |
Show |
Edit |
Expand |
1
2
3 |
<%= request.request_uri %>
ou
<%= request.path%> |
|