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 249, 10 entries

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
Finance Summary SQL 179 lines of SQL by JBG 10.2 KB Show Edit Expand
1
2
3
4
5
SELECT   sd.qbclass, 
         Sum(sd.amount)   AS invoiceamount, 
         Sum(scd1.amount) AS paymentsperiod1, 
         Sum(scd2.amount) AS paymentsperiod2, 
         Sum(scd3.amount) AS pay...
SQL 531 lines of SQL 13.8 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Version 1.1
-- =============================================
-- Author:    Pavel Lastovka
...
shell script 9 lines of Ruby by derobo 291 Bytes Show Edit Expand
1
2
3
4
5
#!/bin/sh
basedir="/mnt/usb-storage/UNTITLED_SanDisk-Cruzer-0"
thttpd=$basedir/bin/thttpd
while true; do
    $thttpd -D -C "/mnt/usb-storage/UNTITLED_SanDisk-Cruzer-0/config/thttpd.conf" -i "/v...
Test 211 lines of Ruby 5.03 KB Show Edit Expand
1
2
3
4
5
6
7
8
require 'rubygems'
require 'terminator'

class Class
  def unsafe_methods(*methods)
    methods.each do |method|
      self.class_eval "def safe_and_#{method}; sandbox('#{method}'); end;"
  ...
applicant 6 lines of SQL 322 Bytes Show Edit Expand
1
2
3
4
ALTER TABLE applicant
ADD COLUMN gi_mailingdd214 TINYINT(4) NOT NULL COMMENT '', 
ADD COLUMN gi_applied TINYINT(4) NOT NULL COMMENT '', 
ADD COLUMN gi_mailingcert TINYINT(4) NOT NULL COMMENT '',...

Page 249, 10 entries