Welcome! This page is using CodeRay 1.1.2.

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

Page 252, 10 entries

PHP testing code 12 lines of PHP by Rui Gonçalves 280 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
<? php

require_once 'php-activerecord/ActiveRecord.php';

ActiveRecord\Config::initialize(function($cfg)
{
    $cfg->set_model_directory('models');
    $cfg->set_connections(array(
       ...
java test 12 lines of C++ 295 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
package pl.silvermedia.ws;
import java.util.List;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface ContactUsService {
  List<Message> getMessages();
  M...
test 4 lines of PHP 106 Bytes Show Edit Expand
1
2
3
4

if(!empty($_POST[name]) && !empty($_POST[sport])){
$client->someFunction($array('key' => "value");
}
xml test 9 lines of XML by jea 205 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
<bean id="managerMap" class="service.ManagerMap">
  <property name="managerMap">
    <map>
      
      <entry key="FileSourceConfig" value-ref="fileSourceConfigManager" />
      
    </map>
  </property>
...
ttttt 37 lines of Python 1.08 KB Show Edit Expand
1
2
3
4
5
6
7
8
"""Convert to and from Roman numerals"""
import re

#Define exceptions
class RomanError(Exception): pass
class OutOfRangeError(RomanError): pass
class NotIntegerError(RomanError): pass
class...
Teste 41 lines of HTML by Cddsd 1.32 KB Show Edit Expand
1
2
3
4
5
6
7
8
<%-- 
    Document   : modal
    Created on : Feb 10, 2010, 4:56:31 PM
    Author     : Inocêncio
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@taglib prefix="f" uri=...
test 4 lines of Ruby by a 109 Bytes Show Edit Expand
1
2
3
4
cookies[:user_preference] = {
  :value => @current_user.preferences,
  :expires => 20.years.from_now.utc
}
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_...

Page 252, 10 entries