Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
test |
9 lines
of
XML
|
289 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
<transaction>
<id>28834</id>
<kind>transfer</kind>
<account>+77051234567</account>
<amount currency="kzt">772.57</amount>
<recipient>+77778889900</recipient>
<committed-at>2011-01... |
|
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]
def index
|
|
aoeu |
104 lines
of
Ruby
by
aoeu
|
3.35 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
module Nanoc3::Filters
class ColorizeSyntax < Nanoc3::Filter
|
|
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 |
|