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.
| Testing | 76 lines
of
JavaScript | 3.64 KB | Show | Edit | Expand | 
| 
  | 1
2
3
4
5 | describe "ToDoApp.Views.TodoCollectionView", ->
  describe "rendering", ->
    describe "when there is a collection", ->
      it "renders the collection", ->
        collection = new ToDoApp.C... | 
 | 
| Yandex.Metrika counter | 29 lines
of
HTML
by
TXT | 1.1 KB | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7 | 
<script type="text/javascript">
(function (d, w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter = new Ya.Metrika({id:123,
... | 
 | 
| asd | 21 lines
of
Ruby
by
asd | 829 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6 | class Conversation < ActiveRecord::Base
                enum status: [ :active, :archived ]
              end
              
              
              conver... | 
 | 
| name | 5 lines
of
Ruby | 90 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5 | @interface ViewController : UIVIewController
@property (nonatomic) NSString *s;
@end | 
 | 
| base experiment.rb | 5 lines
of
Ruby
by
Carlos Henrique | 193 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5 | it "can login" do
   @app.browser.text_field(:id=>"username").value = "Paul"
   @app.browser.text_field(:id=>"passw").value = "Test123456"
   @app.browser.button(:value=>"Log In").click
end | 
 | 
| JSON | 7 lines
of
JSON | 85 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7 | {
    "cities": [
        "Pune",
        "Mumbai",
        "Bangalore"
    ]
} | 
 | 
| test | 4 lines
of
SQL | 95 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4 | Affichage du EXPLAIN PLAN:
<pre><code class="sql">
explain select * from ....</code>
</pre>  | 
 | 
| html | 7 lines
of
HTML
by
E | 299 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5 |   <head>
    <title>Wichtiger Seitentitel!</title>
    <meta name="description" content="...">
    <meta name="Keywords" content="...">
    <link rel="stylesheet" type="text/css" href="assets/c... | 
 | 
| Python test | 22 lines
of
Python
by
=°.°= | 337 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7
8
9
10
11
12 | 
"""Just a sample python code"""
class MyClass:
    def __private(self):
        pass
def hello(f):
    def h():
        print "hello " + f.__name__
        return f(... | 
 | 
| as | 263 lines
of
Ruby | 9.45 KB | Show | Edit | Expand | 
|  |