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

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

Page 123, 10 entries

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/...
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:
    //Constructor/Destructor
    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
1
eeee

Page 123, 10 entries