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.
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 {
static constraints = {
schniepelName()
schniepelAdresse()
wutzNummer()
}
String schniepel... |
|
rake task |
46 lines
of
Ruby
|
2.08 KB |
Show |
Edit |
Expand |
1
2
3
4 |
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 |
|
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 |
|
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
|
|