Welcome! This page is using CodeRay 1.1.2.
We currently have
3066 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
测试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... |
|
Hello World x10 |
4 lines
of
Ruby
by
Me
|
60 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
for(int i = 0; i<10; i++)
{
printf("Hello World ka");
} |
|
test |
9 lines
of
Java
by
karim
|
322 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
public static string Decode(string s)
{
MatchCollection rr = Regex.Matches(s,@"(?:=\?)([^\?]+)(?:\?B\?)([^\?]*)(?:\?=)");
string charset = rr[0].Groups[1].Value;
string data = rr[0].Groups[2].V... |
|
eee |
1 line
of
Plain text
|
4 Bytes |
Show |
Edit |
Expand |
|
Diff |
5 lines
of
diff
|
120 Bytes |
Show |
Edit |
Expand |
|
sql greensauna |
207 lines
of
SQL
by
filip skokan
|
4.16 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
USE greensauna
;
DROP TABLE IF EXISTS designs
;
DROP TABLE IF EXISTS control_units
;
DROP TABLE IF EXISTS facings
;
DROP TABLE IF EXISTS hea... |
|
Basic QML Template |
16 lines
of
JavaScript
|
264 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
import QtQuick 1.0
Rectangle {
width: 360
height: 360
Text {
text: "Hello World"
anchors.centerIn: parent
}
MouseArea {
anchors.fill: parent
... |
|
aaaa |
157 lines
of
PHP
by
aaaa
|
6.08 KB |
Show |
Edit |
Expand |
|