Welcome! This page is using CodeRay 1.1.2.

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

Page 197, 10 entries

Controller 8 lines of Ruby by Ruby 176 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
class InvoicesController < ApplicationController
  respond_to :html, :xml, :json

  def show
    @invoice = Invoice.find(params[:id)
    respond_with(@invoice)
  end
end
controller 4 lines of Ruby by Rails 80 Bytes Show Edit Expand
1
2
3
4
def show
  @invoice = Invoice.find(params[:id)
  respond_with(@invoice)
end
SQL Test 1 line of SQL by greenbean 26 Bytes Show Edit Expand
1
select * from dual limit 1
dsds 8 lines of YAML 191 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
quoteCount: 190034043
quoteCount_ :199472
quoteSetCount: 260731430
quoteSetCount_ : 232007
quoteInQuoteSet: 1455654345
quoteInQuoteSet_ : 1333705
bboCount: 154919752
bboCount_ : 185341
diff of a graphitestorage schema 18 lines of diff 481 Bytes Show Edit Expand
1
2
3
4
5
--- storage-schemas.conf.example  2011-09-29 16:05:01.000000000 +0000
+++ storage-schemas.conf  2011-09-29 19:32:17.488089233 +0000
@@ -5,6 +5,13 @@
 #  pattern = regex
 #  retentions = timePerPo...
maven test 25 lines of XML by m 824 Bytes Show Edit Expand
1
2
3
4
<configSections>
   <sectionGroup name="applicationSettings">
      ...
      <section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intellig...
Ruby example 25 lines of Ruby by Alexey 534 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
module CodeRay
module Encoders
  
  load :token_kind_filter
  
  # A simple Filter that removes all tokens of the :comment kind.
  # 
  # Alias: +remove_comments+
  # 
  # Usage:
  #  Cod...
test 4 lines of Python 93 Bytes Show Edit Expand
1
2
3
4
# Fig. 2.1: fig02_01.py
# Printing a line of text in Python.

print "Welcome to Python!"
testing 22 lines of JSON by z 603 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
{
    "glossary": {
        "title": "example glossary",
    "GlossDiv": {
            "title": "S",
      "GlossList": {
                "GlossEntry": {
                    "ID": "SGML",
          "...
cucumber 40 lines of Plain text by asdf 2.08 KB Show Edit Expand
1
2
3
4
5
6
<markdown> 
@http://www.pivotaltracker.com/story/show/18733537 @candidates
Feature: User views candidates
  In order to hire amazing people
  As a signed in user
  I want to see a list of cand...

Page 197, 10 entries