Welcome! This page is using CodeRay 1.1.2.

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

Page 1, 10 entries

react-lifecycle 36 lines of HTML by xialvjun 1 KB Show Edit Expand
1
2
3
4
5
6
7
<Lifecycle
  props={{ list }}
  getDerivedStateFromProps={(props, state) => {
    const plist = props.list,
          slist = state.list;
    if (plist.length > slist.length) {
      return {...
Kersha 3 lines of C by asfwf 25 Bytes Show Edit Expand
1
2
3
#include"Sdfsdf"
saf

Test 109 lines of HTML 3.83 KB Show Edit Expand
1
2
3
4
5
6
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>CodeRay</title>
<link href="/assets/application-f8ea5ce63e3a069fd3ab6fec1775baef.css" media="screen" rel="stylesheet" type="text/css...
PHP 40 lines of PHP by nnwebdesign 1.1 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
if ($this->commandsRegistered) {
  return;
}

$this->commandsRegistered = true;

$this->kernel->boot();

$container = $this->kernel->getContainer();

foreach ($this->kernel->getBundles() a...
c++ 3 lines of C++ 49 Bytes Show Edit Expand
1
2
3
void loop() {
int tiltValue = compute(value);
}
rb.html 10 lines of Ruby by test 246 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
<% @article.comments.each do |comment| %>
  <%= comment.body %>
  <%= comment.user.email %>
  <br>
<% end %>
<hr>
<%= form_with(model: [@article, Comment.new], local: true) do |f| %>
  <%= f...
zefzef 48 lines of JSON 1.8 KB Show Edit Expand
1
2
3
4
5
6
              {
                "data" : {
                  "domain" : "intercom.io",
                  "webmail" : false,
                  "pattern" : "{first}",
                  "organiza...
Diff 2 lines of diff 16 Bytes Show Edit Expand
1
2
- test1
+ test2
terminal? 6 lines of Plain text 47 Bytes Show Edit Expand
1
2
3
4
5
6
#### comment
# cmd 
output

$ cmd
output
SQL 35 lines of SQL by jim 719 Bytes Show Edit Expand
1
2
3
4
DECLARE @OriginalRecord TABLE (id INT NOT NULL, email NVARCHAR(150) NULL)
DECLARE @UpdatedRecord TABLE (id INT NOT NULL, email NVARCHAR(150) NULL)

INSERT INTO @OriginalRecord  VALUES ( 1, 'test...

Page 1, 10 entries