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.
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
... |
|
shell script |
10 lines
of
C
by
derobo
|
293 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 '',... |
|
Delphi test |
11 lines
of
Delphi
by
Salvi
|
163 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
function Test1(i: integer): integer;
begin
if i > 2 then
begin
Result := i;
end
else
begin
Result := 0;
end;
end; |
|
Delphi |
14 lines
of
Delphi
by
vadv
|
278 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' ;
{$R *.res}
begin
ReportMemoryLeaksOnShutdown := DebugHook<>0;
Application.Initialize;
Application.MainFormOnTask... |
|
ok |
10 lines
of
SQL
|
554 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
ALTER TABLE bidding_rules ADD campaign_id BIGINT;
ALTER TABLE bidding_rules ADD ad_positions INTEGER NOT NULL DEFAULT 0;
ALTER TABLE bidding_rules ALTER ad_positions DROP DEFAULT;
ALTER TABLE bi... |
|
PHP test |
14 lines
of
PHP
|
170 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14 |
echo "Hello World";
MyClass::staticMethod();
class A {
private $a;
public function f() {
$this->a = "123";
}
}
$a = new A();
$a->f(); |
|
sql |
48 lines
of
SQL
|
2.39 KB |
Show |
Edit |
Expand |
1
2
3
4
5 |
select 1 from
CREATE TABLE public.languages (
language_code char(2) PRIMARY KEY
);
INSERT INTO public.languages VALUES ('sv')... |
|