Welcome! This page is using CodeRay 1.1.2.

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

Page 1, 10 entries

HTML 1 line of HTML by John Smith 61 Bytes Show Edit Expand
1
<button mat-raised-button color="primary">Start Game</button>
sdsdsa 3 lines of PHP by seTajul 30 Bytes Show Edit Expand
1
2
3
<?php
echo "Hello world";
?>
ruby snippet 21 lines of C++ 906 Bytes Show Edit Expand
1
2
3
4
5
6
7
# View (Slim)
= image_tag_2x('image.png')

# Helper
def image_tag_2x(name_at_1x, options={})
  name_at_2x = ActionController::Base.helpers.asset_path( name_at_1x.gsub(%r{\.\w+$}, '@2x\0') )
 ...
python test 3 lines of Python by L 55 Bytes Show Edit Expand
1
2
3
# Test comment
# Test comment 2
SHA512_CONST = 100000
bash 12 lines of C 427 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
#!/bin/bash
timestamp=`date +%s`
secret=test_secret
client_id=test_client
sign=`echo -n $client_id$timestamp$secret | sha256sum | awk '{print $1}'`
server=localhost:3000
curl -iv \
-X POST \...
asd 31 lines of JSON 818 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
{  
  "id":6363,
  "status":200,
  "client":"4cc8d2deeb876add50cac888cbeb195c",
  "info":"success result",
  "service":"echo",
  "created_at":"2019-07-23T15:06:31.692+03:00",
  "response":{/...
Java code 9 lines of Java 180 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
public class MyExceptionSample {

    public static void main(String[] args) {
        // 0除算のためエラー
        int x = 5 / 0;

        System.out.println("0除算のためエラー");
    }
}
test 15 lines of Ruby 269 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
class CreateUsers < ActiveRecord::Migration[5.2]
  def change
    create_table :users do |t|

      # devise required
      t.string :provider
      t.string :uid

      t.string :email
  ...
a 82 lines of Ruby 1.47 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
class Bottles
  def song
    verses(99, 0)
  end
  def verses(starting, ending)
    starting.downto(ending).collect {|i| verse(i)}.join("\n")
  end
  def verse(number)
    bottle_number = B...
a 10 lines of Ruby 154 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
def bottle_number_for(number)
  case number
  when 0
    BottleNumber0
  when 1
      BottleNumber1
  else
    BottleNumber
  end.new(number)
end

Page 1, 10 entries