Welcome! This page is using CodeRay 1.1.1.

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

Page 8, 10 entries

Mani 1 line of PHP 94 Bytes Show Edit Expand
1
<p>© <?php echo date('Y'); ?> - <?php echo ltrim(date('Y')+1,'20'); ?> 600 020, TN, India.</p>
Hello World 5 lines of Ruby by Scott 52 Bytes Show Edit Expand
1
2
3
4
5
def hello
  x !-= "Hello World!"
end
def hii
end
Scipy 10 lines of Python by Pythonista 159 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
import numpy as np
from scipy.stats import zscore

A = np.array([1,2,3,4])

B = zscore(A)

C = np.zeros(B.size,dtype=object)

C[0] = [1,'123','abx']
test json mix 8 lines of C 214 Bytes Show Edit Expand
1
2
3
4
5
6
7
           A message: {
             "description": "Status: closed prevents ticket update",
             "reasons": [
               "1",
               "2",
               "3"
             ...
a 116 lines of XML by a 4.91 KB Show Edit Expand
1
2
3
4
5
6
7
8
<Response xmlns="http://www.jnctn.net/ns/rest/2006-01">
   <Context>
      <Action>
         <IsCompleted>true</IsCompleted>
      </Action>
      <Request>
         <IsValid>true</IsValid>
...
a 3 lines of Ruby 21 Bytes Show Edit Expand
1
2
3
def test
   p 1
end
a 112 lines of XML by a 4.03 KB Show Edit Expand
1
2
3
4
5
6
7
8
<Response xmlns="http://www.jnctn.net/ns/rest/2006-01">
   <Context>
      <Action>
         <IsCompleted>true</IsCompleted>
      </Action>
      <Request>
         <IsValid>true</IsValid>
...
qweqwe 7 lines of JavaScript by emanoel 92 Bytes Show Edit Expand
1
2
3
4
5
6
7
function coco() {
  return 'xd'
}

const logit = (e) => console.log(e)

logit('value')
segfault log 14 lines of Plain text 1.68 KB Show Edit Expand
1
2
3
4
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6c7f0a7 in sf::String::String(sf::String const&) () from /usr/lib64/libsfml-system.so.2.3
(gdb) bt
#0  0x00007ffff6c7f0a7 in sf::S...
test for a ruby script with __END__ 27 lines of Ruby by nico-hn 728 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
#!/usr/bin/env ruby

require 'optparse_plus'

first_value, second_value = nil, nil

OptionParser.new_with_yaml do |opt|
  opt.inherit_ruby_options("E") # Currently, -E and -d only are availa...

Page 8, 10 entries