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 36, 10 entries

Ruby 26 lines of Ruby by Xulambis 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...
JavaScript 14 lines of JavaScript by Pandu 236 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<html>
<body>

<h2>Example JavaScript</h2>

<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Click to display Date and Time.</button>

<...
Example 12 lines of HTML by Pandu 270 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
      <!DOCTYPE html>
      <html>
        <head>
          <title>This is an Example Title.</title>
          <body>

          <h1>This is an Example Heading.</h1>
          <p>This is an ...
Test JSON 19 lines of JSON 642 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
{
"Data":[{
  "GameUniqueId": number,
"RutaImg": "string",
"GameOrder": number,
"Visibility": number, (0:No visible, 1: Visible al pรบblico, 2: Visible al administrador)
"GameTitle": "string",
...
kkk 25 lines of Plain text 5.19 KB Show Edit Expand
1
355000080007454  0.1.23_dev3  2017-11-02 18:12:26  2017-11-02 11:05:49      0  0    1012  18  discharging  flightMode          false  0  0  gsm  []  [{'macAddress': '5c:a4:8a:2d:3c:74', 'age': 0, 'signalStrength': -86, ...
ttt 5 lines of Clojure by ttt 91 Bytes Show Edit Expand
1
2
3
4
5
123456('asd','asdasda')

<pre><code class="ruby">
  Place your code here.
</code></pre>
i.html 23 lines of HTML by 1234 1.07 KB Show Edit Expand
1
2
3
4
                <form th:action="@{/posts}" th:object="${Post}" action="/posts" th:method="POST" class="m-3">
                  <fieldset>
                    <div class="row ">
                      <div class="input-group input-gr...
WebAppInitializer 28 lines of HTML 1.14 KB Show Edit Expand
1
2
3
4
5
                <form th:action="@{/posts}" th:object="${Post}" 
                  action="/posts" th:method="POST" class="m-3">
                  <fieldset>
                    <div class="row ">
                      <div class="input-gro...
testDF 9 lines of Java 483 Bytes Show Edit Expand
1
2
3
4
5
// Producer will look like 
// cacheSessionSize is fixed for better performance 
// connectionFactory will be vendor specific

private Component produceJmsComponent(String nbConsumers, Connecti...
JS greeting 1 line of JavaScript 31 Bytes Show Edit Expand
1
var greeting = "Good morning!";

Page 36, 10 entries