Welcome! This page is using CodeRay 1.1.2.

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

Page 219, 10 entries

T1 4 lines of Java 116 Bytes Show Edit Expand
1
2
3
4
<%@ page import="java.lang.String" %>
  <%
        String myLogin =  (String)session.getAttribute( "test" );
%>
some code 94 lines of Ruby by sdf 2.59 KB Show Edit Expand
1
2
3
4
5
6
7
class ForumsController < ApplicationController
  before_filter :admin_required, :except => [:index, :show]

  # GET /forums
  # GET /forums.xml
  def index
    # reset the page of each forum ...
aoeu 104 lines of Ruby by aoeu 3.35 KB Show Edit Expand
1
2
3
4
5
6
7
# encoding: utf-8

module Nanoc3::Filters
  class ColorizeSyntax < Nanoc3::Filter

    # The default colorizer to use for a language if the colorizer for that
    # language is not overridden...
test 3 lines of Ruby 88 Bytes Show Edit Expand
1
2
3
  namespace :admin do
    resources :roles, :only=>[:index, :create, :destroy]
  end
CSS font weight 3 lines of CSS 31 Bytes Show Edit Expand
1
2
3
body {
  font-weight: bold;
}
Perl 13 lines of Ruby by tabac! 171 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl

use strict;
use warnings;

our $x, $y;

for ($x=1; $x<=10; $x++) {
  for ($y=1; $y<=10; $y++) {
    printf("%3d ", $x*$y);
  }
  print "\n";
}
XML with CDATA 5 lines of XML by JL 149 Bytes Show Edit Expand
1
2
3
4
5
<wsdl:interface name="moviesView">
  <wsdl:documentation><![CDATA[
    Some documentation inside a CDATA
  ]]></wsdl:documentation>
</wsdl:interface>
Java Static Init 8 lines of Java 287 Bytes Show Edit Expand
1
2
3
4
5
6
{
  final HashMap nstjsons = new HashMap();
  final Configuration config = new Configuration(nstjsons);
  config.setSupressAtAttributes(false);
  mof = new MappedXMLOutputFactory(config);
  mif = n...
test page 5 lines of Plain text 67 Bytes Show Edit Expand
1
2
3
4
5
$> pwd
/home/adminuser
$> cd myapp
$> pwd
/home/adminuser/myapp
yaml test 9 lines of YAML 111 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
---
test: this is a test
some: |
  testing some other stuff
  oogah!
honk:
 - babar
 - likes
 - pants

Page 219, 10 entries