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.
test |
1 line
of
C
by
murphy
|
5 Bytes |
Show |
Edit |
Expand |
|
Using the Ruby "syntax" Gem |
53 lines
of
CSS
by
Light Spot
|
1.25 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
#!/usr/bin/env ruby
#try this example
require 'fileutils'
class String
attr_accessor :tags
def slugize
self.downcase.strip.gsub /[^a-z0-9]+/, '-'
end
def / s
File.... |
|
Markaby test |
17 lines
of
Ruby
by
Hans thisisne.at
|
472 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
def collection
@search = Order.new_search(params[:search])
if params[:search].nil? || params[:search][:conditions].nil?
@search.conditions.checkout_complete = true
end
@search.... |
|
grrr |
9 lines
of
Java
|
269 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
public SedReplicationConfigPanel( BMNProgressWindow oProgressWindow,
UserContext oContext )
{
super(oProgressWindow, oContext, "SedReplicationConfigP... |
|
peng |
16 lines
of
JavaScript
by
testii
|
451 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
protected transient int text;
function getSomethingPse... |
|
test |
3 lines
of
CSS
|
458 Bytes |
Show |
Edit |
Expand |
1
2 |
.wiki h2 {background-color: silver; font-size: 16px;padding: 2px 10px 1px 5px;margin: 0 0 10px 0; border-width: 0; color: #444;}
.wiki h3 {font-size: 13px;padding: 2px 10px 1px 5px; margin-bottom:... |
|
vgffd |
4 lines
of
Plain text
|
103 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
gateway 192.168.0.1
|
|
CachedModels usage |
0 lines
of
Ruby
|
0 Bytes |
Show |
Edit |
Expand |
|
Java |
19 lines
of
C
by
jsdude
|
1.12 KB |
Show |
Edit |
Expand |
1
2
3 |
if (prefixo.equalsIgnoreCase("int_")) {
parametros.put(nomePar, new Integer(param));
} else if (prefixo.equalsIgnoreCase("dbl_")) {... |
|
cpp supported? |
19 lines
of
C
by
aaa
|
242 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 |
class Child : public Person
{
public:
Child(){}
~Child(){}
private:
int m_age;
char[128] m_name;
};
typedef struct
{
int id;
CString n... |
|