Welcome! This page is using CodeRay 1.1.2.

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

Page 1, 10 entries

KSY (Kaitai Struct YAML) test 16 lines of YAML by generalmimon 232 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
meta:
  id: animal_record
  endian: be
seq:
  - id: uuid
    size: 16
  - id: name
    type: str
    size: 24
    encoding: UTF-8
  - id: birth_year
    type: u2
  - id: weight
    typ...
C 50 lines of C 1.11 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
#define BODY_FROM   100

#include "chain.c"

#include "objects.c"

#include "levels.c"

clock_t now;
int level = 0; // počáteční level, u prvního se hned zvýší
int score;
int gameover; /...
şljnk 543 lines of C 16.6 KB Show Edit Expand
1
2
3
4
5
6

/**
  ******************************************************************************
  * @file           : main.c
  * @brief          : Main program body
  ***********************************...
YAML document with delimiters 11 lines of YAML 298 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
einLabel:
  - [$box, bind, box]
  - [this, within, $box]
  - [:n, neighbor, this]
  - [.text, matches, ['Employer identification number', i]]
ein:
  - [$lbl, bind, ::einLabel]
  - [this, wit...
sql 3 lines of SQL by sqler 66 Bytes Show Edit Expand
1
2
3
SELECT
name AS  -- I want to use Japanese name :(
FROM users
aaaa 22 lines of JSON 603 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
{
    "glossary": {
        "title": "example glossary",
    "GlossDiv": {
            "title": "S",
      "GlossList": {
                "GlossEntry": {
                    "ID": "SGML",
          "...
dfdf 9 lines of C 119 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
#include "test.h"

int main(int argc, char * argv[]);

/* comment test */

int foo(void);

// another comment
Ruby Highlight 15 lines of Ruby 195 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
array = []

File.open(file.txt) do |f|
  f.lines.each do |line|
    array << line.split.map(&:to_s)
  end
end

puts purgeObject

@test = {
  "strings" => array
}.to_json

puts @test
www.codified.com 29 lines of Ruby by www.codified.ai 418 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
#Codified AI
#Applied Artificial Intelligence
#codify - to reduce into code.

require TensorFlow
require ActiveRecord
require RubyOnRails
require DataModeling


class Codified < Artificia...
c++11 6 lines of C++ by Adam 54 Bytes Show Edit Expand
1
2
3
4
5
6
struct ss
{};

template <typename T>
class TC
{};

Page 1, 10 entries