Welcome! This page is using CodeRay 1.1.2.

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

Page 247, 10 entries

test 63 lines of C++ 2.18 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
// мускл

namespace SP.Dal.Poll
{
    public class Answer : DbObject
    {
        public override int Save()
        {
            try
            {
                bool flag = DbOb...
Cucumber 24 lines of Ruby by murphy < cucumber 493 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
# encoding: utf-8
require 'spec/expectations'
require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'
 
Before do
  @calc = Calculator.new...
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) {
   ...

Page 247, 10 entries