Welcome! This page is using CodeRay 1.1.2.

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

Page 134, 10 entries

json 17 lines of JSON 199 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
  {
    "just": "write some"
  }, 
  {
    "yaml": [
      [
        "here", 
        "and"
      ], 
      {
        "it": "updates", 
        "in": "real-time"
      }
    ]
  }
]
Ember.js 27 lines of JavaScript 566 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
App = Ember.Application.create();

App.Person = Ember.Object.extend({
  firstName: null,
  lastName: null,

  fullName: function() {
    return this.get('firstName') +
           " " + this...
asdasd 18 lines of HTML 2.01 KB Show Edit Expand
1
2
3
4
5
    <div class="large-12 columns">
        <h2>Section heading</i><span class="icon-home right"></span></h2>
        
        <h3>Sub topic title</h3>
        <script src="https://gist.github.com/transf3r/abf7cf...
phpinfo 3 lines of PHP by Andrey 21 Bytes Show Edit Expand
1
2
3
<?php
phpinfo();
?>
blackjack 262 lines of Ruby by Joe Jackson 6.09 KB Show Edit Expand
1
2
3
4
5
6
7
# Interactive command line blackjack game


def calculate_total(cards) 
  # [['3', 'H'], ['Q', 'S'], ... ]
  localarray = cards.map{|e| e[0] }  
# Go through cards array and pull out the card...
hello 7 lines of ERb by abc 221 Bytes Show Edit Expand
1
2
3
4
5
6
<% javascript 'admin/admin.js' %>
<%= title 'Admin : Config' %>

<ul class="text">
    <li><%= link_to 'Email Preview', admin_mailer_path %></li>
    <li><%= link_to 'Interviews', admin_interv...
ordanizlie 14 lines of JavaScript 356 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
Number.prototype.ordinalize = function() {
    var abs = Math.abs(this);
    
    if (abs % 100 >= 11 && abs % 100 <= 13) {
        return this + 'th';
    }
    
    abs = abs % 10;
    if...
html 30 lines of HTML by CoASyS 291 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html>
<head>
<style>
div{
margin: 2px;
}

#ciao{
color: red;
}
</style>
<script type="text/javascript">

/*
commento
*/

//2

alert(Object);

var c=0;

alert(c);
</script>
...
regex 1 line of diff 18 Bytes Show Edit Expand
1
(.+)\s+([\d]{2,6})
Hello world 8 lines of Ruby by Superman 92 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
class Hello
  def say
    puts "Hello, world!"
  end
end

hello = Hello.new
hello.say

Page 134, 10 entries