Welcome! This page is using CodeRay 1.1.2.

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

Page 285, 10 entries

MetaTags 156 lines of Ruby by http://github.com/kpumuk/meta-tags/tree/master 4.68 KB Show Edit Expand
1
2
3
4
5
6
# Contains methods to use in views and helpers.
module MetaTags
  # Set meta tags for the page.
  #
  # Method could be used several times, and all options passed will
  # be merged. If you wi...
test bash 2 lines of Plain text 52 Bytes Show Edit Expand
1
2
# emerge --sync
# emerge -av portage-utils crossdev
some ruby transaction 6 lines of Ruby by Stupot 99 Bytes Show Edit Expand
1
2
3
4
5
6
def transact
  Person.transaction do
    @person.eat_final_meal!
    @person.expire!
  end
end
testing 26 lines of Ruby 447 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
def view_type_name
    ForecastSearch::VIEW_TYPES[self.view_type]
  end
  
  def probability_ids
    @probability_ids ||= []
  end
  
  def status_level_ids
    @status_level_ids ||= []
 ...
Diff 15 lines of diff 485 Bytes Show Edit Expand
1
2
3
4
Index: app/models/notification_setting.rb
===================================================================
--- app/models/notification_setting.rb        (revision 80)
+++ app/models/notificat...
database migration 11 lines of Ruby 270 Bytes Show Edit Expand
1
2
3
4
5
6
  class AddVersions < ActiveRecord::Migration
    def self.up
      # create_versioned_table takes the same options hash
      # that create_table does
      Post.create_versioned_table
    en...
JSON 22 lines of JSON 605 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
{
    "glossary": {
        "title": "example glossary",
    "GlossDiv": {
            "title": "S",
      "GlossList": {
                "GlossEntry": {
                    "ID": "SGML",
          "...
tabwidthbug 395 lines of C 9.92 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef KEYSPACE_CLIENT_H
#define KEYSPACE_CLIENT_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Status values. 
 * When using as a return value, negative values m...
XML test 51 lines of C 1.42 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
class DepthOfField {
  // Autofocus
  ID3D10Texture1D *autofocus_texture_;

  // Viewport and texture dimensions
  UINT width_;
  UINT height_;
};

HRESULT DepthOfField::OnDeviceCreated(ID...
rtre 11 lines of YAML 214 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="utf-8"?>
<msg seq="0">
  <pid>b006wkqb</pid>
    <features>
      <rss status='off'/>
      <sms status='on'/>
    </features>
  <comp>
    <loc>bottom</loc>
  ...

Page 285, 10 entries