Welcome! This page is using CodeRay 1.1.2.
We currently have
3043 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
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 |
|
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 = (
)
SLAVE_D... |
|
C# |
14 lines
of
Java
by
Priya
|
585 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
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/... |
|
Dummy |
16 lines
of
C++
by
Me
|
247 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
class Dummy
{
public:
Dummy() : m_bIsDummy(true) {}
~Dummy() {}
bool bIsDummy() { return m_bIsDummy; }
private:
bool m_bIsDummy;
pub... |
|