Welcome! This page is using CodeRay 1.1.2.
We currently have
3063 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
This |
4 lines
of
HTML
|
234 Bytes |
Show |
Edit |
Expand |
1
2 |
<pre><code class="ruby">
Place you code here.laksdmaksljdaskldjalsd jaslkdj aslkdjaslkdjaklsdjaslkdj askldj aksldjasldjaskdjalsdjaslkdjkasjdlaksjd lka sjdalskjdklasjdaksldjalskdj alskdjalsdjalsk... |
|
sql |
2 lines
of
Python
|
24 Bytes |
Show |
Edit |
Expand |
1
2 |
SELECT *
FROM tablename |
|
sdfds |
15 lines
of
SQL
|
502 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
SELECT DISTINCT(lower(per.name)) AS name
FROM personnel_functional_group pfg,
personnel per,
functional_group fg
WHERE per.ID_NUMBER=pfg.PERSONNEL_ID
AND fg.id_number = pfg.func_group_id... |
|
haml test |
2 lines
of
HAML
by
RT
|
18 Bytes |
Show |
Edit |
Expand |
|
php class test |
13 lines
of
Java
|
130 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
<?php
class MyNewClass{
public function __construct()
{
time();
return $this;
}
}
?> |
|
test |
2 lines
of
Plain text
|
39 Bytes |
Show |
Edit |
Expand |
1
2 |
dev0:/srv/# find coderay
dev0:/srv/#
|
|
Hop |
10 lines
of
Ruby
|
151 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end |
|
PDF |
6 lines
of
Ruby
by
Rails
|
220 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
Mime::Type.register "application/pdf", :pdf
ActionController.add_renderer :pdf do |template, options|
string = render_to_string template, options
send_data PdfUtils.string_to_pdf(string), ... |
|
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
|
|