Welcome! This page is using CodeRay 1.1.0 (beta).

We currently have 2239 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 1, 10 entries

test 7 lines of C by test 102 Bytes Show Edit Expand
1
2
3
4
5
6
7
#include <stdio.h>

int main(int argc, char* argv[])
{
  printf("Hello, world\n");
  return 0;
}
Makefile 22 lines of PHP 716 Bytes Show Edit Expand
1
2
3
4
5

# To build modules outside of the kernel tree, we run "make"
# in the kernel source tree; the Makefile these then includes this
# Makefile once again.
# This conditional selects whether we are...
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 1 line of Ruby 32 Bytes Show Edit Expand
1
<%= @input1 %> is <%= @result %>
Spec sample 32 lines of Ruby 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 9 lines of Plain text 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 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 : <...

Page 1, 10 entries