Welcome! This page is using CodeRay 1.1.2.
We currently have
3049 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
test |
10 lines
of
Ruby
by
angrysloth
|
422 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
def list_by_tag
options = Article.find_options_for_find_tagged_with(params[:tag_name]).merge :page => params[:page], :order => "created_at DESC"
@articles = Article.paginate(options)
|
|
blah |
21 lines
of
Ruby
|
446 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
class Sinatra::Base
def call(env)
begin
dup.call!(env)
rescue => e
res = [500,{},[]]
if (ENV['HERBERT_DEBUG'].to_i==1) || (ENV['RACK_ENV'] =~ /debug/) then
res[1] = {"Conte... |
|
markdown test |
160 lines
of
Ruby
|
4.31 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
GitHub Flavored Markdown
================================
*View the [source of this content](http://github.github.com/github-flavored-markdown/sample_content.html).*
Let's get the whole "lin... |
|
dsfdsf |
13 lines
of
HTML
by
dsfdsf
|
369 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Old Method</title>
</head>
<body>
<div id="message"></div>
<script type="tex... |
|
VFM |
13 lines
of
JavaScript
by
VideofyMe
|
349 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
<div id="widget-container"></div>
<script src="http://videofy.me/js/sdk.js"></script>
<script>
new VideofyMe.Widget({
user: "foki",
con... |
|
html code |
28 lines
of
HTML
|
444 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
<!DOCTYPE html>
<html>
<head>
<title>Пример веб-страницы HTML5</title>
</head>
<body>
<header>
<h1>...</h1>
</header>
<section>
<article>
<h1>...</h1>
<p>...</p... |
|
HAML test |
10 lines
of
Ruby
by
Andrew
|
227 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
!!!
%html
%head
%title= title
%meta{:charset => Rails.application.config.encoding}
= stylesheet_link_tag "application"
= javascript_include_tag "application"
= csrf_met... |
|
tst |
59 lines
of
CSS
|
1.18 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
#respond {
background: #e9e9e9;
background:rgba(0,0,0,.03);
border: 1px solid #ddd;
border:1px solid rgba(0,0,0,.08);
color: #444;
margin: 0 auto 1.4em;
padding: 1.4em;
position: re... |
|
Java |
18 lines
of
Java
by
Tom
|
685 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
public class HttpResponse
{
public int responseCode = 0;
public String responseMessage;
public byte[] bytes;
public String errorMessage;
public boolean completedWithError ... |
|
dsfsf |
83 lines
of
Ruby
by
rails
|
1.91 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
class RolesController < ApplicationController
def index
@roles = Role.all
respond_to do |format|
format.html
format... |
|