Welcome! This page is using CodeRay 1.1.2.

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

Page 9, 10 entries

Python Simple Return 14 lines of Python by uknown 196 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import numpy as np


x = [3, 2, 1]


def simple_return(x):
    x = np.array(x).astype(np.float32)
    return x


if __name__ == "__main__":
    simple_return(x)
    print(f"x is {x}")
dire 13 lines of CSS 1.16 KB Show Edit Expand
1
2
3
CODE                                    # Primary code directory for all Ansible Development on a windows or linux workstation

 ansible-project-skeleton            # A ready-made project ske...
directory 13 lines of Plain text 1.16 KB Show Edit Expand
1
2
3
CODE                                    # Primary code directory for all Ansible Development on a windows or linux workstation
│
├── ansible-project-skeleton            # A ready-made project ske...
directory 13 lines of Groovy (beta) 1.16 KB Show Edit Expand
1
2
3
CODE                                    # Primary code directory for all Ansible Development on a windows or linux workstation

 ansible-project-skeleton            # A ready-made project ske...
directory 13 lines of C 1.16 KB Show Edit Expand
1
2
3
CODE                                    # Primary code directory for all Ansible Development on a windows or linux workstation

 ansible-project-skeleton            # A ready-made project ske...
Delphi 24 lines of Delphi 379 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
procedure TForm1.Button1Click(Sender: TObject);
var
 Fit: TFitsFileFrame;
 Hdu: THduCore2d;
begin

 // init header core

 Hdu.Simple := True;
 Hdu.BitPix := bi16c;
 Hdu.NAxis1 := 1024;
 ...
fdsafdsafs 11 lines of Ruby 158 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
{
  "attributes": [
    {
      "name": "test",
      "type": "number",
      "unit": "kg",
      "required": true,
      "default": 1.2
    }
  ]
}
test 6 lines of Ruby by Beavis 37 Bytes Show Edit Expand
1
2
3
4
5
6

def run 
  puts :test
end

test
Test 1 line of JSON by Test 2.05 KB Show Edit Expand
1
{"action":"webhook","model":{"id":"4d5ea62fd76aa1136000000c","name":"Trello Development","desc":"Trello board used by the Trello team to track work on Trello. How meta!\n\nThe development of the Tr...
ES6 String Interpolation 13 lines of JavaScript 157 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
class Simple {
  foo() {
    this.data.append(`
       <div id="foo">
         ${1 + 1}
       </div>
    `);
  }

  bar() {
    return 42;
  }
}

Page 9, 10 entries