Welcome! This page is using CodeRay 1.1.2.
We currently have
3042 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
method |
17 lines
of
Ruby
by
Gray
|
358 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
def self.insert_samples str
re = /(?<=\[@)(\d+)(?=\])/
samples = Hash.new
self.find(str.scan(re).map { |a| a.join }).map do |obj|
samples[obj.id.to_s] = obj
end
while num = ... |
|
Zend SOAP Client |
4 lines
of
PHP
|
129 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
$client = new Zend_Soap_Client(null, array(
'location' => 'http://www.test.com/soap',
'uri' => 'http://test-uri/',
)); |
|
Command-line |
7 lines
of
ERb
|
310 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
$ git checkout -b release-1.2 develop
Switched to a new branch "release-1.2"
$ ./bump-version.sh 1.2
Files modified successfully, version bumped to 1.2.
$ git commit -a -m "Bumped version numbe... |
|
aabb |
2 lines
of
diff
|
12 Bytes |
Show |
Edit |
Expand |
|
aaa |
13 lines
of
Ruby
|
420 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
require(vegan)
data(dune)
data(dune.env)
un_nmds <- metaMDS(dune^0.25, distance = "bray")
cols = rainbow(4)
plot(un_nmds, display = ... |
|
aaa |
1 line
of
Ruby
|
29 Bytes |
Show |
Edit |
Expand |
1 |
x <- read.tabke(x, a = 'aaa') |
|
telnet output |
6 lines
of
Plain text
by
Alex
|
323 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
SSH-2.0-GerritCodeReview_2.5.2 (SSHD-CORE-0.5.1-R1095809)
☺$
¶y▲¤О<▀╪}ом&ьГюЙ6diffie-hellman-group14-sha1,diffie-hellman-group1-sha1ssh-rsa
aes128-cbc,3des-cbc,blowfish-cbc aes128-cbc,3des-cb... |
|
Test java |
3 lines
of
Java
|
60 Bytes |
Show |
Edit |
Expand |
1
2
3 |
for (int i = 0; i < 10; i++) {
System.out.printl(i);
} |
|
asdasd |
10 lines
of
YAML
by
asdasd
|
437 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
response:
ok: !boolean true means that operation proceeded just as planned
method: !string processed method name
on_success:
result: json object with method-related data
on_failure... |
|
test |
16 lines
of
Ruby
|
796 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
Devise.setup do |config|
|
|