Welcome! This page is using CodeRay 1.1.2.

We currently have 3043 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 205, 10 entries

haml ??? 10 lines of Ruby 439 Bytes Show Edit Expand
1
2
3
4
5
6
= simple_form_for @page_layout, :html => {:multipart => true} do |f|
  =f.input :name
  =f.input :default
  =f.input :blocks
  =f.input :haml_template, :as => :file
  -if @page_layout.haml_tem...
Class 60 lines of Ruby 1.91 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
class CodeFormatter
  def initialize(text)
    @text = text
  end

  def to_html
    text = @text.clone
    codes = []
    text.gsub!(/^``` ?(.*?)\r?\n(.+?)\r?\n```\r?$/m) do |match|
     ...
Test 5 lines of Ruby by 123 162 Bytes Show Edit Expand
1
2
3
4
5
def edit
    @book = Book.find(params[:id])
    @publisher = Publisher.find(@book.publisher.id) unless @book.publisher.blank?
    @authors = @book.authors
end
objc ? 1 line of C++ 19 Bytes Show Edit Expand
1
[NSString dealloc];
Diff test 98 lines of Java by MagicTonton 4.3 KB Show Edit Expand
1
2
3
Modified: trunk/src/com/se/server/events/servlets/EventServiceImpl.java
===================================================================
--- trunk/src/com/se/server/events/servlets/EventServic...
Test 543 lines of PHP 13 KB Show Edit Expand
1
2
3
4
5
6
7
<?php
/*----------------------------------------------------------------------------*/
  
  ini_set('html_errors', false);
  
  if (!defined('BITTER_LANGUAGE_PATH')) {
    define('BITTER_LANGUAGE_P...
testtest 3 lines of ERb by testest 50 Bytes Show Edit Expand
1
2
3
<%= request.request_uri %>
ou
<%= request.path%>
Digitale Seiten 13 lines of Ruby by Digital 417 Bytes Show Edit Expand
1
2
3
4
5
6
7
def edit_me(object, check = false, model_name = "")
    if check
      object.editors.include?(current_user) ? result = true : nil
    end
    
    if current_user.admin? || result
      if m...
Css de webinmobiliarias 213 lines of CSS by Gius 5.24 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
/* GENERAL */

body {
  background-repeat: repeat-x;
  background-position: 0% 0%;
  background-color: @@color_secundario@@;
  margin: 0px;
  padding: 0px;
  text-align: center;
}


#ba...
aaaa 49 lines of C++ 2.38 KB Show Edit Expand
1
2
3
4
/**
    Returns the persistent store coordinator for the application.  This 
    implementation will create and return a coordinator, having added the 
    store for the application to it.  (The...

Page 205, 10 entries