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 json |
1 line
of
JSON
by
none
|
368 Bytes |
Show |
Edit |
Expand |
1 |
{"name":"lxcserver","description":"LXC server role description","json_class":"Chef::Role","default_attributes":{"moo":{"repos":["cloudstack"],"packages":{"libvirt":{},"glusterfs-cli":{},"cloudstack... |
|
html template |
11 lines
of
HTML
by
djrConcepts
|
181 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
<!doctype html>
<html>
<head>
<title>CodeRay Demo Ray</title>
</head>
<body>
<div>
Hello CodeRay
</div>
</body>
</html> |
|
test |
122 lines
of
Ruby
|
4.58 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
require 'mathpack'
module Mathpack
module SLE
def self.simple_sweep(params = {})
a = params[:left].dup
b = par... |
|
Spec sample |
32 lines
of
C++
|
790 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
describe 'Object#stub' do
before do
@array = %w(aardvark bonobo chipmunk dromedary)
end
it 'can stub a method within the scope of a block' do
@array.length.must_equal 4
... |
|
Sample |
44 lines
of
HTML
|
2.14 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<section class="marketing">
<div class="row">
<div class="large-12 columns">
<div class="row">
<div class="large-2 medium-4 small-6 center_ columns best">
... |
|
sample |
9 lines
of
C++
by
gokul
|
310 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<div id= "posts">
<% @posts.each do |post| %>
<div class= "post">
<h2 class="title"> <%= link_to post.title, post %> </h2>
<p> <%= post.content %> </p>
<p class= "date"> Published At : <... |
|
sample |
12 lines
of
Plain text
by
gokul
|
329 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
a = 2
# sdsadf
<div id= "posts">
<% @posts.each do |post| %>
<div class= "post">
<h2 class="title"> <%= link_to post.title, post %> </h2>
<p> <%= post.content %> </p>
<p class= "date... |
|
sample |
9 lines
of
JSON
by
gokul
|
310 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<div id= "posts">
<% @posts.each do |post| %>
<div class= "post">
<h2 class="title"> <%= link_to post.title, post %> </h2>
<p> <%= post.content %> </p>
<p class= "date"> Published At : <... |
|
sample |
9 lines
of
Ruby
by
gokul
|
310 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<div id= "posts">
<% @posts.each do |post| %>
<div class= "post">
<h2 class="title"> <%= link_to post.title, post %> </h2>
<p> <%= post.content %> </p>
<p class= "date"> Published At : <... |
|
sample |
9 lines
of
Java
by
gokul
|
310 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<div id= "posts">
<% @posts.each do |post| %>
<div class= "post">
<h2 class="title"> <%= link_to post.title, post %> </h2>
<p> <%= post.content %> </p>
<p class= "date"> Published At : <... |
|