Welcome! This page is using CodeRay 1.1.2.

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

Page 218, 10 entries

sd 38 lines of Ruby 632 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
class Router

    class Route 
        attr_accessor :name,:path

        def initialize(name,path)
            @name = name
            @path = path
        end

        def to_s
      ...
json 17 lines of Ruby 297 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
{
    animals:{
        dog:[
            {
                name:'Rufus',
                breed:'labrador'
            },
            {
                name:'Marty',
                breed:...
JSON test 1 line of JavaScript 4.49 KB Show Edit Expand
1
[{"html":"<a class='entity' href='http://intridea.presently.com/entity/jon'>@jon</a> <a href=\"intridea.presently.com/topics/protip\" title=\"#protip\" alt=\"protip\" rel=\"tag\" class=\"tag qtip_t...
test 1 line of PHP 4 Bytes Show Edit Expand
1
test
asaas 17 lines of HTML by asasas 812 Bytes Show Edit Expand
1
2
3
4
5
    <div class="form-item clear">
            <table class="ask-title-table">
                <tr>
                    <td class="ask-title-cell-key">
                        <div class="editor...
c++ test 32 lines of C++ by http://www.cplusplus.com/doc/tutorial/inheritance/ 642 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
// friend functions
#include <iostream>
using namespace std;

class CRectangle {
    int width, height;
  public:
    void set_values (int, int);
    int area () {return (width * height);}
...
String interpolation 1 line of Ruby 81 Bytes Show Edit Expand
1
"I like to drink #{if milk? then "milk" else "Jack Daniels" end} in the morning."
Python test 13 lines of Python by Nejr 264 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
import sys, os
from django.http import HttpResponse

def view(request):
   if False:
      return HttpResponse('False!')

   try:
      a = 1 / 0
   except DivideByZeroExceptionOrSomething...
html 12 lines of HTML 705 Bytes Show Edit Expand
1
2
3
4
<code class="HTML">
[16:18:06][cmux.c,984][2]<Agent_QueueRead>ReadLen:33 Tag:251e0092 HeadMsg:a1,00,1e,45
[16:18:06][cmux.c,364][3]<Agent_MessageRead>(33)
a1 00 1e 45 f5 30 00 00 00 00 47 87 00 ...
Shell test 1 line of Plain text 41 Bytes Show Edit Expand
1
cat something.txt else.txt > combined.txt

Page 218, 10 entries