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

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

Page 123, 10 entries

Java hello 5 lines of Java 96 Bytes Show Edit Expand
1
2
3
4
5
class Hello {
public static void main(String[] args){
System.out.println("Hello World");
}
}
C - hello world 4 lines of C by Matt 49 Bytes Show Edit Expand
1
2
3
4
int main(void)
{
  printf("Hello, world\n");
}
b 1 line of C by b 1 Byte Show Edit Expand
1
b
C++ Test 8 lines of C++ 67 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
namespace foo
{
  class Bar
  {
    Bar();
    ~Bar();
  }
}
python 8 lines of Python 210 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
PROJECT_CURRENT = os.environ.get("PROJECT_CURRENT")

MANAGERS = ADMINS = (
    # ("Your Name", "your_email@domain.com"),
)

SLAVE_D...
C# 14 lines of Java by Priya 585 Bytes Show Edit Expand
1
2
3
4
5
  // copy rectangle
            int[] srcPixels = src.Pixels;
            int[] dstPixels = dst.Pixels;
            int srcOffset = (int)(src.PixelWidth * rc.Y + rc.X) * 4;
            int dstO...
t 8 lines of Ruby 96 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
<pre><code class="language-ruby">
def foo
  "asdf"
end
def foo
  "asdf"
end
</code></pre>
t 5 lines of C 72 Bytes Show Edit Expand
1
2
3
4
5
<pre><code class="language-ruby">
def foo
  "asdf"
end
</code></pre>
测试coderay 3 lines of Ruby by bert 34 Bytes Show Edit Expand
1
2
3
def testfor
    puts "xxxx";
end
How does clojure look? 61 lines of Plain text 2.25 KB Show Edit Expand
1
2
3
4
5
6
(ns dma.euler.primes
  (:use dma.euler.numeric clojure.contrib.math))

;; Returns a lazy sequence of primes
;; Shamefully lifted from Christophe Grand's site:
;; http://clj-me.cgrand.net/2009/...

Page 123, 10 entries