Welcome! This page is using CodeRay 1.1.2.
We currently have
3066 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Ruby on Rails |
9 lines
of
HTML
|
225 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
def show
@post = Post.find_by_id(params[:id])
end
<%= stylesheet_link_tag 'blog', 'coderay' %>
<%= title @article.title %>
<p class="author">from <%= @article.author %></p>
<%= co... |
|
test |
1 line
of
Ruby
|
479 Bytes |
Show |
Edit |
Expand |
1 |
{:schedule=>[{:route=>"Новый Уренгой", :status=>"Прилетел", :flight_number=>"813", :plane=>"ТУ-134", :comment=>"", :aircarrier=>"ЮК", :schedule_time=>Thu Jun 30 13:44:38 0600 2011, :actual_time=>Th... |
|
Testimoduuli |
18 lines
of
PHP
by
Sebastian
|
339 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
class Module{
__construct(){
}
displayFields(){
}
parseFields(){
... |
|
json |
3 lines
of
JSON
by
json
|
31 Bytes |
Show |
Edit |
Expand |
1
2
3 |
“user”: {
id: <Identifier>,
} |
|
Instrospection |
4 lines
of
Ruby
by
elpic
|
24 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
public
def draw
end |
|
test |
5 lines
of
Java
|
122 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
public class HelloWorld {
public static void main (String[] args) {
System.out.println("Hello World !!");
}
} |
|
Bash script |
25 lines
of
Delphi
by
zharcos
|
1.07 KB |
Show |
Edit |
Expand |
1
2
3
4 |
# instalira curl, git, ssl, mysql, imagemagick itd.
sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get -y install curl git build-essential bison openssl libreadline... |
|
Teste |
3 lines
of
JavaScript
by
Hugo Roque
|
49 Bytes |
Show |
Edit |
Expand |
1
2
3 |
function testando() {
console.log("wtf?");
}; |
|
test |
18 lines
of
Python
|
675 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
Function redirectcheck(xurl, ourl)
'check the xurl end if exists, response.redirect with 301
set Geturl = Server.CreateObject("ADODB.Recordset")
Geturl.ActiveConnection = MM_c... |
|
test of json |
12 lines
of
JSON
|
245 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
{
"name": "Foo",
"for-condition": "Bar,
"id": "5",
"description": "the quick brown fox jumps over the lazy dog. ",
"severity-counts": {
"severe": "268",
"none": "328",
... |
|