Welcome! This page is using CodeRay 1.1.2.

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

Page 275, 10 entries

SU/Rudy/test 44 lines of Ruby by john@drivenupthewall 1.08 KB Show Edit Expand
1
2
3
4
5
#
#  _PDF_Viewer.rb

#  seems to only work with adobe pdf format, but that's what safari saves pdfs to, so if it won't open, re-save from safari
#  seems to open most image files at full size s...
/etc/hosts.allow 5 lines of Plain text by akhamutov 144 Bytes Show Edit Expand
1
2
3
4
5
ALL : localhost 127.0.0.1/32 [::1]/128 : allow
ALL : PARANOID : deny
ALL : locallhost 127.0.0.1/32 : allow
ALL : [::1]/128 : allow
sshd: ALL
Just some ruby 18 lines of Ruby by nunya 226 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Whatever < SomeOtherClass
  attr_accessor :my_ivar
  
  def meth_name
    5.times do |i|
      puts "this was time #{i}"
    end

    3.times {puts "whatever"}
  end

private

  ...
Hello, CodeRay 7 lines of C++ 120 Bytes Show Edit Expand
1
2
3
4
5
6
7
#include <stdio.h>
#include <stdlib.h>

int main(void) {
  printf("Hello, CodeRay!\n");
  return EXIT_SUCCESS;
}
python 52 lines of Python by inet 1.39 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# compile.py
import sys
import getopt

from compiler import compileFile, visitor

import profile

def main():
    VERBOSE = 0
    DISPLAY = 0
    PROFILE = 0
    CONTINUE = 0
    opts,...
Invalid JSON highlighted as JavaScript 6 lines of JavaScript by murphy 73 Bytes Show Edit Expand
1
2
3
4
5
6
{
  key: "value",
  // comment
  /* comment */
  "key": undefined,
}
Invalid JSON (5 errors) 7 lines of JSON by murphy 99 Bytes Show Edit Expand
1
2
3
4
5
6
7
{
  key: 'value',
  // comment
  /* comment */
  "key": undefined,
  @{{embedded<WALRUS>}}@
}
Some Objective-C 2.0 49 lines of C by Daniel Thorpe 2.37 KB Show Edit Expand
1
2
3
4
/**
    Returns the persistent store coordinator for the application.  This 
    implementation will create and return a coordinator, having added the 
    store for the application to it.  (The...
From carrot 9 lines of Python 444 Bytes Show Edit Expand
1
2
3
4
from carrot.connection import BrokerConnection
conn = BrokerConnection(hostname="localhost", port=5672,
                        userid="django", password="django",
                        virtua...
Random DTD and XML Test 26 lines of XML by Not a sodding bot! 699 Bytes Show Edit Expand
1
2
3
4
5
6
7
<!DOCTYPE TVSCHEDULE [ 

<!ELEMENT TVSCHEDULE (CHANNEL+)>
<!ELEMENT CHANNEL (BANNER, DAY+)>
<!ELEMENT BANNER (#PCDATA)>
<!ELEMENT DAY ((DATE, HOLIDAY) | (DATE, PROGRAMSLOT+))+>
<!ELEMENT HOLI...

Page 275, 10 entries