Welcome! This page is using CodeRay 1.1.0 (beta).

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

Page 126, 10 entries

Ruby 1.9 hash syntax 1 line of Ruby 42 Bytes Show Edit Expand
1
h = { first: "first", second: "second" }
Generated JS 51 lines of JavaScript 1.37 KB Show Edit Expand
1
2
3
4
5
function NUMER(patient) {
  var prcn5 = function(patient) {
  var prcn6 = function(patient) {
  var comp7 = function(patient) {
  // Title: Medication administered: Pneumococcal Vaccine all age...
JSON 7 lines of JSON 171 Bytes Show Edit Expand
1
2
3
4
5
6
7
{
  sender_id: 111111111111, 
  receiver_id: 222222222222,
  text: "message text",
  date: "string (or whatever?) date value",
date: "string (or whatever?) date value"
}
Ruby Hello World 1 line of Ruby by jag 9 Bytes Show Edit Expand
1
p = 6+2+9
Haml 9 lines of Java by NW 145 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
!!! 5
%html{lang: 'en'}
  %head
    %title Haml Highlighting
  %body
    #id.class
      %h1 Title
      %p
        Stuff in a paragraph.
smtp setting 7 lines of PHP by deven 207 Bytes Show Edit Expand
1
2
3
4
5
6
<?php
$config['protocol']='smtp';
$config['smtp_host']='ssl://smtp.googlemail.com';
$config['smtp_port']='465';
$config['smtp_user']='Your gmail user name ';
$config['smtp_pass']='your passwor...
Test 3 lines of Python 28 Bytes Show Edit Expand
1
2
3

def abc(x):
    print x
sdfasdf 1 line of diff 24 Bytes Show Edit Expand
1
asdfsdfsadfasfsf asfdasf
Test 4 lines of Java 199 Bytes Show Edit Expand
1
2
3
4
    public boolean hasCookie(String cookieName) {
        Map<String,Cookie> cookieMap = COOKIE_MAP.getOrNull();
        return cookieMap != null ? cookieMap.containsKey(cookieName) : false;
    }
Rails test 3 lines of Ruby by memyself 41 Bytes Show Edit Expand
1
2
3
def index
 @users = User.find(:all)
end

Page 126, 10 entries