Welcome! This page is using CodeRay 1.1.2.
We currently have
3066 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
| rails! | 25 lines
of
Ruby
by
hodo | 614 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6 | <%= form_for(@post) do |f| %>
  <% if @post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>
... | 
 | 
| Test PHP | 4 lines
of
PHP | 103 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4 | <div id="footer-links-container">
    <?php print $footer ?>
    <?php print $footer_links; ?>
    </div> | 
 | 
| Get running queries MSSQL | 9 lines
of
SQL
by
cmelgarejo | 202 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7
8
9 | select 
    r.session_id,
    r.status,
    r.command,
    r.cpu_time,
    r.total_elapsed_time,
    t.text
from sys.dm_exec_requests as r
    cross apply sys.dm_exec_sql_text(r.sql_handle)... | 
 | 
| name | 5 lines
of
JavaScript | 805 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3 | <script id="cpatext-script" src="http://api.cpatext.ru/js/cpatext.js?r5"></script>
<script type="text/javascript">
  (function (w, d) {      w.CpaTextConfig = {"id":1224,"modules":["l... | 
 | 
| greeter | 1 line
of
Ruby | 4 Bytes | Show | Edit | Expand | 
|  | 
| a | 1 line
of
Java | 59 Bytes | Show | Edit | Expand | 
| 
  | 1 | cloudinary.api().resource("sample", Cloudinary.emptyMap()); | 
 | 
| a | 8 lines
of
HAML | 242 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7 | %whoo
  %hoo= h(                       |
    "I think this might get " +  |
    "pretty long so I should " + |
    "probably make it " +        |
    "multiline so it doesn't " + |
    "look ... | 
 | 
| diff | 28 lines
of
diff | 896 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6 | --- ./lib/matplotlib/tri/_tri.cpp  2013-10-10 21:42:48.000000000 +0900
+++ ./lib/matplotlib/tri/_tri.cpp  2014-01-10 13:29:25.837581500 +0900
@@ -2177,13 +2177,13 @@
 
 
 RandomNumberGenerator::... | 
 | 
| Multi paragraph XML | 3 lines
of
XML | 1.21 KB | Show | Edit | Expand | 
| 
  | 1 | <text_section>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut at purus id mi placerat fringilla et nec odio. Sed ullamcorper adipiscing ornare. Phasellus eget convallis enim, vitae temp... | 
 | 
| Testing | 7 lines
of
SQL
by
test | 120 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7 | SELECT * FROM test
Columns:
      Co: a->Et
      Bank: a->aaa
      Control:a->CONTROL
      Entered: a->ENTERED | 
 |