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.

Page 139, 10 entries

Ruby Controller example 16 lines of Ruby by d4x 383 Bytes Show Edit Expand
1
2
3
4
5
6
7
class CommentsController < ApplicationController

  def create
    @post = Post.find(params[:post_id])
    @comment = @post.comments.create(params[:comment])
    redirect_to post_path(@post)
...
ca 1 line of Ruby 15 Bytes Show Edit Expand
1
@arr.map(&:xxx)
a 7 lines of Ruby by a 292 Bytes Show Edit Expand
1
2
3
4
5
# Variável local definida fora de um método, não é enxergada pelo método
# Obs.: A declaração do método começa em def e termina em end
opus_magnum = true
def salve_hannah
   # Erro! A variável ...
code diff 24 lines of diff 402 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
5c5
< Port 4222
---
> Port 2222
30,31c30,31
< RSAAuthentication yes
< PubkeyAuthentication yes
---
> RSAAuthentication no
> PubkeyAuthentication no
51c51
< PasswordAuthentication no
---...
php/html mix 24 lines of HTML by ben 1.39 KB Show Edit Expand
1
2
3
4
5
<h3>Daniweb Control Centre</h3>
<div class="row-fluid show-grid">
  <div class="span3 eqcolumn">
         <h4>Favourite Forums</h4>
        <p><?php print T_("List the latest posts to your favour...
asddsa 2 lines of C++ 23 Bytes Show Edit Expand
1
2
void main()
int a = 1;
test 15 lines of PHP 564 Bytes Show Edit Expand
1
2
3
4
5
function custom_wmu_image_sizes($sizes) {
       unset( $sizes['thumbnail']);
       unset( $sizes['medium']);
       unset( $sizes['large']);
       unset( $sizes['full'] ); // removes full si...
prueba 9 lines of Ruby by Yo 177 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
  helpers do
    def current_user
      if session[:session]
        @current_user ||= User[:session => session[:session]]
      else
        nil
      end
    end
  end
If block 5 lines of JavaScript 82 Bytes Show Edit Expand
1
2
3
4
5
    if(condition) {
        // ...
    } else {zscassadsa
        // ...
    }
XML 210 lines of XML by Teefan 8.5 KB Show Edit Expand
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<Response ResponseReference="REF_D_026_82-1363674497125">
  <ResponseDetails Language="en">
    <SearchItemResponse ItemType="hotel">
      <ItemDetails>
...

Page 139, 10 entries