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.
HAML test |
19 lines
of
ERb
by
Imanel
|
520 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
!!!
%html(xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en")
%head
%title BoBlog
%meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
= stylesheet_link_... |
|
How C++ looks with C highlighting |
12 lines
of
C
by
J. Wedekind
|
161 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
template< typename T >
T plus( const &T x )
{
return -x;
}
template< typename T >
class image
{
public:
image( const image< T > &_image ) {}
};
|
|
My Test |
1 line
of
Plain text
|
24 Bytes |
Show |
Edit |
Expand |
1 |
sudo gem install coderay |
|
My Test |
3 lines
of
Plain text
|
39 Bytes |
Show |
Edit |
Expand |
1
2
3 |
#!/bin/bash
sudo gem install coderay |
|
test |
21 lines
of
YAML
|
2.86 KB |
Show |
Edit |
Expand |
|
s |
8 lines
of
Plain text
|
1.23 KB |
Show |
Edit |
Expand |
|
ruby menu |
12 lines
of
Ruby
by
casen
|
386 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
module ApplicationHelper
def nav_links
items = []
items << {:name =>'Home', :url => root_url}
items << {:name =>'Login', :url => login_path}
items << {:name =>'Register', :u... |
|
Another Java |
7 lines
of
Java
|
259 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
public static void doSomething(String arg) {
int idx = 1;
String[] cases = new String[] {"uppercase","lowercase"};
StringBuffer sb = new StringBuffer("Here it is: ");
sb.append(... |
|
Test |
4 lines
of
Ruby
|
73 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
def new
@user_id = @current_user.id
@event = Event.new
end |
|
Testing Ruby Syntax |
13 lines
of
Ruby
|
314 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
module CommentsHelper
def format_comment(content)
simple_format(keep_spaces_at_beginning(h(content)))
end
def keep_spaces_at_beginning(content)
content.split("\n").map do |li... |
|