Welcome! This page is using CodeRay 1.1.2.

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

Page 245, 10 entries

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
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...

Page 245, 10 entries