Welcome! This page is using CodeRay 1.1.2.

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

Page 249, 10 entries

dasdasd 14 lines of PHP 616 Bytes Show Edit Expand
1
2
3
4
5
•   
•  /** make sure we can call stripos **/
•  if (!function_exists('stripos')) {
•      // the offset param of preg_match is not supported below PHP 4.3.3
•      if (GESHI_PHP_PRE_...
test 17 lines of C by thomas guittonneau 572 Bytes Show Edit Expand
1
2
3
4
5
                if include in module:
                    del(self.previousModules[module])

    def new(self):
        return list( set( sys.modules ).difference(set( self.previousModules )) )...
Actionscript 14 lines of Java by Gavin 524 Bytes Show Edit Expand
1
2
3
4
5
6
7
package com.ipos.utils 
{
  import asunit.framework.TestCase;

  import com.adobe.cairngorm.control.CairngormEventDispatcher;
  import com.ipos.events.ChangeChapterEvent;
  import com.ipos.events...
I Like Monkey Ruby 14 lines of Ruby by Kevin Baker 470 Bytes Show Edit Expand
1
2
3
4
5
6
7
  def parseFeed (url, length)
    feed_url = url
    output = "";
    open(feed_url) do |http|
      response = http.read
      result = RSS::Parser.parse(response, false)
      output = "<sp...
erb 8 lines of ERb 146 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
<div id="foo">
 <h1><a href="http://google.com">
<% Timing.each do |time| %>
 <%= time.now %>
 <%= time.later %>
<% end %>
</a></h1>
</div>
geil 88 lines of PHP by noogz 3.13 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
<?php
/*
  so let's say you are given an input : 3789
 the program should output : "Three thousand seven hundred eighty nine"
 feel free to use pseudo code
 bugs also aren't an issue


The ...
xml 3 lines of XML 68 Bytes Show Edit Expand
1
2
3
<ListView toto=5>
<a:something>Something</a:something>
</ListView>
Java hello world 9 lines of C 270 Bytes Show Edit Expand
1
2
3
4
5
6
7
  /** 
 * The HelloWorldApp class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
   ...
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

Page 249, 10 entries