Welcome! This page is using CodeRay 1.0.9.
We currently have 1776 rays
in the database.
You can add a New Ray or browse the posted rays by pages.
| database.yml |
17 lines of Ruby
by Andrea Salicetti
|
370 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
|
development:
adapter: oracle_enhanced
database: SIASVIL
username: asal_gd_development
password: asal_gd_development
test:
adapter: oracle_enhanced
database: SIASVIL
use... |
|
| ajax_controller.rb |
4 lines of Ruby
|
93 Bytes |
Show |
Edit |
Expand |
1
2
3
4
|
def test_method_name
@value = "#{params[:value]} to string!"
end |
|
| JSF Baby |
25 lines of XML
|
1.02 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
|
<ui:define name="content">
<h:form id="userSelectForm" styleClass="tissform inputForm">
<h3><h:outputText value="#{amsg.loginText}"/></h3>
<ul>
... |
|
| test |
5 lines of Ruby
|
159 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
|
def test_should_generate_permalink
post = Post.new(:title => "title with åäö")
post.valid?
assert_equal "title-with-aao", post.permalink
end |
|
| Simple function |
11 lines of JavaScript
by Hfaua
|
127 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
|
function foo ($a, $b)
{
if ($a == $b)
{
echo "Koza!";
}
else
{
echo "Pies!";
}
}
|
|
| CSS multiple a:hover |
18 lines of CSS
by Chris
|
291 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
nav {
color: #424242;
margin-left: auto ;
margin-right: auto ;
padding:20px;
width:84em;
}
nav a {
color: #A7FA31;
font-size: 1.75em;
font-weight: bold;
text-decoration: none;
text-tr... |
|
| networkx + ogr |
33 lines of Python
by bwreilly
|
1.29 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
|
import osgeo.ogr as ogr
import networkx
class Network(networkx.DiGraph):
def load(self, path):
|
|
| Test |
6 lines of XML
|
63 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
|
<TEST>
<DATA V="t" />
<DATA>
<TEST />
</DATA>
</TEST> |
|
| gjfghjgj |
3 lines of XML
|
17 Bytes |
Show |
Edit |
Expand |
|
|
| Bacula stuff |
12 lines of HTML
|
174 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
|
Client {
Name = XXX
Address = 13.0.0.1
Catalog = MySQL
}
Job {
Name = XXX
Client = XXX
JobDefs = DefaultJob
FileSet = XXXFileSet
}
|
|