Welcome! This page is using CodeRay 1.1.2.
We currently have
3061 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
test |
11 lines
of
Ruby
by
tester
|
162 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
Just want to see what this does to normal text - I have to make sure it works.
def test(one)
puts one
end
1.upto(9) |n|
puts n
end
puts test(1)
|
|
Bot i am |
91 lines
of
C++
|
3.09 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
namespace InfoPathFormPrinterWebService
{
internal class View
{
private string viewName;
... |
|
rake rails db backup |
29 lines
of
Ruby
by
dan ryan
|
860 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
namespace :db do
timestamp = Time.now.strftime("%Y-%m-%d")
backup_dir = "#{RAILS_ROOT}/db"
namespace :backup do
desc 'Backup all the local databases de... |
|
teste |
13 lines
of
ERb
by
Brando
|
241 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
<% form_for(@post) do |f| %>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %>
</p>
<p>
<%= f.label :body %><br />
<%= f.text_area :body %>
</p>
<p>
... |
|
edit |
6 lines
of
Ruby
|
177 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
def edit
@news_item = NewsItem.find(params[:id])
@all_districts = District.find(:all)
@all_crime_types = CrimeType.find(:all)
end |
|
hello world |
7 lines
of
C
by
yanok
|
89 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
public class foo()
{
public foo()
{
Console.WriteLine("Hello World");
}
} |
|
Hello World |
1 line
of
Plain text
|
720 Bytes |
Show |
Edit |
Expand |
1 |
some plain textsome plain textsome plain textsome plain textsome plain textsome plain textsome plain textsome plain textsome plain textsome plain textsome plain textsome plain textsome plain textso... |
|
teste |
3 lines
of
Ruby
|
37 Bytes |
Show |
Edit |
Expand |
1
2
3 |
def logged_in?
!!current_user
end |
|
Crontab |
1 line
of
Ruby
by
anuj
|
93 Bytes |
Show |
Edit |
Expand |
1 |
*/2 * * * * root /home/user/projects/trunk/script/runner -e production 'Sweeper.run'
|
|
Test Ruby |
23 lines
of
Ruby
|
401 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
require 'uri'
class Site < ActiveRecord::Base
@@default_aaa = { :aaa => "2#{asd}323#{RA}dasd #{@dassd.to_s}", :baa => 'sasd' }
TYPE = "asds"
has_many :asdsd
d... |
|