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.

Page 54, 10 entries

Testing 26 lines of Ruby 860 Bytes Show Edit Expand
1
2
3
4
5
# output as HTML div (using inline CSS styles)
CodeRay.scan('puts "Hello, world!"', :ruby).div

# ...with line numbers
CodeRay.scan("5.times do\n  puts 'Hello, world!'\nend", :ruby).div(:line_n...
a 24 lines of Plain text 662 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
version: '2'
services:
    sensor1:
        image: 'localhost:5000/sensor'
        ports:
            - '3001:3001'
        extra_hosts:
            scaleit: 172.17.0.1
        environment:...
Test 4 lines of JavaScript 95 Bytes Show Edit Expand
1
2
3
4
GET /activity/block HTTP/1.1
iv-user: Galushka-VA
Accept: application/json
Host: localhost
php 19 lines of PHP 551 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
 $arr = [ 
            '0' => 'level1_1', 
            '1' => 'level1_2', 
            '555' => [ 
                '555' => 'level2_0', 
            ], 
            '2' => 'level1_3', 
     ...
Procedure 2 lines of PHP by pb 24 Bytes Show Edit Expand
1
2
#komentarz
VAR='lala'
Line of C# 19 lines of Java by Sayles 458 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
namespace BaremageMobile.DAL.Models
{
    public class EntiteBV
    {
        private int _id_EntiteBV;
        public int Id_EntiteBV
        {
            get { return _id_EntiteBV; }
   ...
Test 22 lines of C by jm 1.05 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
/*Second Safety Frame*/
typedef struct
{
    RTM_MsgCountType                            BrakeSysFeaturesRxCounter;
    union
    {
        struct
        {
            uint8               ...
asdf 2 lines of SQL by BoleeanMob 51 Bytes Show Edit Expand
1
2
select u.idUser, c.idCity
where  u.idUser = c.User
simple counter 16 lines of C by rothi 250 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
MAX = 50

def main:
  count = 0
  
  while count < MAX:
    if count % 2 == 0:
      print("The number", count, "is even!")
    else:
      print("The number", count, "is odd!")
    count...
Emberjs 47 lines of JavaScript 1.1 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
/* jshint node: true */

module.exports = function(environment) {
  var ENV = {
    modulePrefix: 'library-app',
    environment: environment,
    baseURL: '/',
    locationType: 'auto',
  ...

Page 54, 10 entries