Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
sss |
12 lines
of
Java
|
162 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
...
SomeClass result = null;
...
try {
...
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
...
return result; |
|
w00t! |
23 lines
of
Ruby
by
Сашка
|
512 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
class Cairo::Context
def block(row, col, blocksize=8)
rectangle blocksize * col + blocksize, blocksize * row + blocksize, blocksize, blocksize
end
end
class QRCairo
def draw
... |
|
no idea |
4 lines
of
CSS
|
180 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
== Welcome to Rails
Rails is a web-application framework that includes everything needed to create
database-backed web applications according to the Model-View-Control pattern. |
|
atest |
48 lines
of
C
|
1.69 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
using System;
using System.Linq;
using BusinessLayer;
public partial class _Default : BasePage {
protected void Page_Load( object sender, EventArgs e ) {
carTabPage.TabPosition = (Dev... |
|
typoscript |
19 lines
of
XML
|
412 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
lib.headernav = HMENU
lib.headernav {
special = list
special.value = 2,9
includeNotInMenu = 1
wrap = <div id="headernav" class="nav">|</div>
1 = TMENU
1 {
expAll = 0
no... |
|
bash |
1 line
of
PHP
|
10 Bytes |
Show |
Edit |
Expand |
|
Test |
66 lines
of
Ruby
|
1.66 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
module RScale
extend RScale::UUID
@@config = nil
@@formats = {}
def self.configure
@@config = Configuration.new if @@config.nil?
yield @@config
... |
|
ã‚ã‚ |
9 lines
of
SQL
|
219 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
USE _NOMEDB_
GO
ALTER DATABASE _NOMEDB_
SET RECOVERY SIMPLE
GO
DBCC SHRINKFIL... |
|
Test PyDoc strings |
6 lines
of
Python
by
gray
|
126 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
def foo(bar):
"""Takes a bar and converts to a foo.
This is not a good idea."""
return bar |
|
test |
12 lines
of
Ruby
|
389 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
def index
@articles = Article.where('published_on > ?', 3.months.ago)
@article = Article.find_by_featured(:true)
@blogroll = Article.all
respond_to do |format|
format... |
|