Welcome! This page is using CodeRay 1.1.2.
We currently have
3055 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
sample java |
11 lines
of
Java
by
rr
|
216 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
package com.Rinin.test;
public class Monkey{
public static void main(String[] args){
int peaks = 1;
for(int i=1;i<=10;i++){
peaks = (peaks + 1) << 1;
}
System.out.println("tota... |
|
MyTestProgram |
15 lines
of
Ruby
by
Edward Xie
|
466 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
require "net/http"
pages = %w(www.rubycentral.com www.eclipse.org www.baidu.net)
threads = []
for pag... |
|
test |
4 lines
of
diff
by
dinesh
|
37 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
cout << "Hello !!"
|
|
33333 |
45 lines
of
diff
|
1.96 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
@@ -20,7 +20,7 @@ class Note < ActiveRecord::Base
validates :user_id, :presence => true
belongs_to :user
- attr_accessible :content, :image, :link, :kind, :book
+ attr_accessible :co... |
|
perl as php |
15 lines
of
PHP
by
anon
|
347 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
use strict;
use Switch;
my $x = undef;
if (defined($x)) { print("X Does Not Fail\n\n"); }
else { print("X Fails\n\n");}
my $y = $x & 1;
if (defined($y)) { print("Y Does Not Fail\n\n"); ... |
|
nant with embeded scripts |
29 lines
of
XML
by
RuWi
|
773 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<project default="help">
<script language="C#" prefix="RuWi">
<references>
<include name="System.Xml.dll" />
<include name="System.dll" />
... |
|
nant script |
109 lines
of
XML
by
RuWi
|
5.32 KB |
Show |
Edit |
Expand |
1
2
3 |
<project default="help">
<property name="solution" unless="${property::exists('solution')}" value="ProjectX.sln" />
<property name... |
|
dinesh test |
5 lines
of
JavaScript
by
dinesh
|
54 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
function test()
{
alert("test");
var a = 10;
} |
|
test |
11 lines
of
PHP
|
459 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<?php
$db = mysql_connect('localhost','fdgrup','sDahzLwv');
if(!$db) echo "Cannot connect to the database - incorrect details";
mysql_select_db('redmine'); $result=mysql_query('show tables');
w... |
|
test |
20 lines
of
Ruby
by
mbr
|
437 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
[
{
nombre: "Nombre",
observacion (opcional): "Observacion",
domicilios: [
{
direccion: "Calle y altura",
localidad: "... |
|