Welcome! This page is using CodeRay 1.1.2.

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

Page 271, 10 entries

pyrebqa 16 lines of PHP 602 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
global $wpdb;
define('WPSC_VERSION', '3.7');
define('WPSC_MINOR_VERSION', '46');

define('WPSC_PRESENTABLE_VERSION', '3.7.5.3');

define('WPSC_DEBUG', false);
define('WPSC_GATEWAY_DEBUG', fa...
Groovy Test 14 lines of Java by Angela Morkel 257 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
class Schniepel {

  // determine order
  static constraints = {
    schniepelName()
    schniepelAdresse()
    wutzNummer()
  }

  // Java doesn't guarentee this order
  String schniepel...
rake task 46 lines of Ruby 2.08 KB Show Edit Expand
1
2
3
4
#= encoding: utf-8 
namespace :db do  desc "Backup the database to a file. Options: DIR=base_dir RAILS_ENV=production MAX=20" 
  task :backup => [:environment] do
    datestamp = Time.now.strfti...
test 1 line of diff by test 52 Bytes Show Edit Expand
1
puts CodeRay.scan('puts "Hello, world!"', :ruby).div
Test SQL 77 lines of SQL 3.47 KB Show Edit Expand
1
2
3
4
5
6
CREATE USER 'replicant'@'%' IDENTIFIED BY 'slavepass';
 GRANT REPLICATION SLAVE ON *.* TO 'replicant'@'%';

SELECT 'mediaid'             AS `idtype`, 
       `m`.`mediaid`         AS `id`, 
  ...
r 2 lines of Ruby 10 Bytes Show Edit Expand
1
2
def r
end
some class code 40 lines of C++ 880 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
class valor_aptidao
{
  public:
  int i;
  float aptidao;

  valor_aptidao(std::pair<int,float>p) 
    { i = p.first; aptidao = p.second; }
};


bool vcompare (valor_aptidao lhs, 
    v...
multiple and nested heredocs 11 lines of Ruby 137 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
def hey_hi
puts <<HEY, <<HI
hey #{hello}
HEY
hi #{"hmm #{false or 1.upto(3)}".gsub('', <<-HIAGAIN)}
hi
again
HIAGAIN
bye
HI
end
groovy test 20 lines of Groovy (beta) by nikolay.vasiliev 582 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
package groyve
 
def func = {
    switch(it){
        case Integer : return it.doubleValue()
        case Double : return it.intValue()
        case String : return it.split(" ")
        cas...
test for basic 7 lines of PHP by me 173 Bytes Show Edit Expand
1
2
3
4
5
6
7
Function Format(pColumn as Integer) As String
  If pColumn > mFormats.Ubound Then
    ReDim mFormats(pColumn - 1)
  End If
  Return mFormats(pColumn)
  
End Function

Page 271, 10 entries