Welcome! This page is using CodeRay 1.1.2.
We currently have
3063 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
factory pattern |
16 lines
of
Ruby
|
439 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
class Vehicle
def initialize(options); @options = options; end
def self.factory(options)
options.delete("class").new(options)
end
end
class Bicycle < Vehicle;
def honk; "Ring Rin... |
|
json |
1 line
of
JSON
|
125 Bytes |
Show |
Edit |
Expand |
1 |
{"result":{"status":1,"data":{"auth":{"sessionId":"ckl5s158biol4je4pn4k2gi3e6","userKey":"NTI5YmZjZTYzNWU,"}},"errors":null}} |
|
test |
338 lines
of
Groovy (beta)
|
39.6 KB |
Show |
Edit |
Expand |
1
2 |
2012-03-22 14:09:34 (pid: 17849) Index: 5 -- till_date: 2011-01-17 16:34:04 +0000 -- remote id: -- 38919051253_101438786600909_30737saved
2012-03-22 14:09:32 (pid: 17849) Index: 4 -- till_date: 20... |
|
testxml |
10 lines
of
XML
|
189 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
<?xml version="1.0" encoding="UTF-8"?>
<config>
<MapFields>
<Field name="may:docType">
<value from="ERG" to="Eingangsrechnung" />
</Field>
</MapFields>
</config> |
|
SQL |
45 lines
of
SQL
|
1.6 KB |
Show |
Edit |
Expand |
1
2
3
4
5 |
UPDATE `weight_zone_service_domestic`
SET shipping_cost = (shipping_cost + .08)
WHERE `service` LIKE '1'
AND service_name LIKE '%First-C... |
|
sample |
12 lines
of
Java
by
calvin
|
553 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
void showGlobalActionsDialog() {
if (mGlobalActions == null) {
mGlobalActions = new GlobalActions(mContext);
}
final boolean keyguardShowing = mKeyguardM... |
|
HH |
4 lines
of
Ruby
|
69 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
ruby_inside = <<-RUBY_INSIDE
This is tricky,
isn't it?
RUBY_INSIDE |
|
Test |
3 lines
of
Ruby
|
57 Bytes |
Show |
Edit |
Expand |
1
2
3 |
ruby_inside = <<-RUBY_INSIDE
This is tricky
RUBY_INSIDE |
|
test |
3 lines
of
C
|
50 Bytes |
Show |
Edit |
Expand |
1
2
3 |
cmd /k netstat -o -a
Y U No Know what C is :-) |
|
clj/core/proxy |
409 lines
of
Clojure
by
clj
|
18.9 KB |
Show |
Edit |
Expand |
|