Welcome! This page is using CodeRay 1.1.2.
We currently have
3055 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Python Snippet |
9 lines
of
Python
|
261 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
from django.conf.urls.defaults import patterns, url
from views import *
id = "(?P<id>\d+)"
urlpatterns = patterns('django.views.generic.simple',
url('^admin/mus... |
|
Teste |
1 line
of
Groovy (beta)
|
8 Bytes |
Show |
Edit |
Expand |
|
android manifest |
10 lines
of
XML
|
271 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<message name="newTermValues">
<part name="term" type="xs:string"/>
<part name="value" type="xs:string"/>
</message>
<portType name="glossaryTerms">
<operation name="setTerm">
<in... |
|
testing php |
11 lines
of
PHP
|
436 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
$selectGroup = new Zend_Form_Element_Select("groupselect", array(
'required' => true,
'label' => 'Select Group'
));
foreach ($Groupslist as $keys):
$selectG... |
|
test |
4 lines
of
Ruby
by
hammackj
|
278 Bytes |
Show |
Edit |
Expand |
1
2 |
puts isbn.to_i
book = Book.new :isbn10 => isbn10, :isbn13 => isbn13, :title => title, :author => author, :price => price, :pages => pages, :publisher => publisher, :pubdate => pubdate... |
|
hello |
9 lines
of
Clojure
by
xhh
|
291 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
(ns best-practices.views.welcome
(:require [best-practices.views.common :as common])
(:use [noir.core :only [defpage]]))
(defpage "/" []
(common/layout
[:h1 "欢迎!"]
... |
|
test command |
1 line
of
diff
|
23 Bytes |
Show |
Edit |
Expand |
|
test command |
2 lines
of
diff
by
testor
|
54 Bytes |
Show |
Edit |
Expand |
|
karma |
18 lines
of
Ruby
by
xt99
|
450 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
life = Life.new
you = Creature.new
begin
you.born
you.life_days.each do
you.good_karma.decrease if life.apply_pleasure?(you) or you.true_yogi?
you.bad_karma.decrease if life.a... |
|
sql test |
16 lines
of
SQL
by
Tihonovich A.Y.
|
529 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
DECLARE @i INT,@page varchar(25),@coll varchar(50)
SET @i = 1
WHILE (@i <= @count_add)
BEGIN
set @page= cast(@i as varchar(10))+'стр. клиентов: ';
set @coll=(select COUNT(acc) from |
|