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.
puppet |
16 lines
of
Ruby
|
385 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
class vim::params {
case $operatingsystem {
/(RedHat|Fedora|CentOS|Scientific)/: {
$vim_package = 'vim-X11'
$vimrc = '/etc/vimrc'
}
/(Debian|Ubuntu)/: {
$vim_... |
|
pg sql |
10 lines
of
SQL
|
254 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
DROP TABLE dbo.TemsItems
GO
CREATE TABLE dbo.TemsItems (
item_id varchar(4) NOT NULL,
item_key varchar(32) NOT NULL,
CONSTRAINT item_id_pk PRIMARY KEY(item_id)
)
GO
GRANT SEL... |
|
Capistrano Deploy File |
33 lines
of
Ruby
|
988 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
set :application, "railscasts.com"
role :app, application
role :web, application
role :db, application, :primary => true
set :user, "deploy"
set :deploy_to, "/var/www/apps/#{application}"
... |
|
python test |
1 line
of
Python
by
xxx
|
9 Bytes |
Show |
Edit |
Expand |
|
test |
5 lines
of
C++
|
131 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
if (!pForCount)
{
res = res.Fetch(x => x.Usage);
} |
|
Hello World |
9 lines
of
Ruby
|
213 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
class Comment < ActiveRecord::Base
auto_html_for :body do
html_escape
image
youtube(:width => 400, :height => 250)
link :target => "_blank", :rel => "nofollow"
simple_fo... |
|
Spine |
1 line
of
JavaScript
|
12 Bytes |
Show |
Edit |
Expand |
|
teste |
4 lines
of
C
|
27 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
public class Wagner
{
} |
|
json |
10 lines
of
JSON
|
110 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
[
{
"fruit" : "apple",
"price" : "12€"
},
{
"fruit" : "pear",
"price" : "16€"
}
] |
|
Coderay Source Code |
11 lines
of
CSS
|
220 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
body {
color: #484848;
font-family: Verdana,sans-serif;
font-size: 12px;
margin: 0;
min-width: 900px;
padding: 0;
}
h1, h2, h3, h4 {
font-family: "Trebuchet MS"... |
|