Welcome! This page is using CodeRay 1.1.2.

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

Page 120, 10 entries

test 70 lines of C++ by J 1.55 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
//
//  ShareKitAppDelegate.m
//  ShareKit
//
//  Created by Nathan Weiner on 6/4/10.
//  Copyright Idea Shower, LLC 2010. All rights reserved.
//

#import "ShareKitAppDelegate.h"
#import "...
test 70 lines of C by J 1.55 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
//
//  ShareKitAppDelegate.m
//  ShareKit
//
//  Created by Nathan Weiner on 6/4/10.
//  Copyright Idea Shower, LLC 2010. All rights reserved.
//

#import "ShareKitAppDelegate.h"
#import "...
Draw square, hexagonal, and triangle grid illustrations 871 lines of Ruby by murphy < Amit 22.2 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/ruby

# Draw square, hexagonal, and triangle grid illustrations
# amitp@cs.stanford.edu
# 8 Jan 2006

SQRT_3_2 = Math.sqrt(3)/2 # Used in triangle and hexagon math

class Shape
...
dsfsdsf 8 lines of Java 592 Bytes Show Edit Expand
1
2
3
4
subgraph cluster_Source{
                  rankdir=LR; color=white; style=filled; fillcolor=lightgrey; label="#Source";
                  subgraph cluster_Application_1{
                    rank...
another rails check 11 lines of Ruby 269 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
  root :to => 'main#show'

  resource :main
  resources :posts do
    get :relevant, :on => :collection
    get :index_by_tags, :on => :collection
    get :search, :on => :collection

    p...
another rails check 12 lines of Ruby 220 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
class CategoriesController < ApplicationController
  before_filter :preinit, :only => [:show, :edit, :update, :destroy]

  def index
    @categories = paging(Category)
  end

  def show
  e...
rails check 13 lines of Ruby by Me 311 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
require 'rubygems'
require 'sinatra'
require 'mongo'
require 'json'

connection = Mongo::Connection.new
database = connection['agile_data']
collection = database['emails']

get '/email/:me...
banister's remix 381 lines of C 9.61 KB Show Edit Expand
1
2
3
4
5
6
7
/* remix.c */
/* (C) John Mair 2010
 * This program is distributed under the terms of the MIT License
 *                                                                */

#include <ruby.h>
#...
abc 7 lines of Ruby by Vagner 151 Bytes Show Edit Expand
1
2
3
4
5
6
7
 [ "Alice", "friend", "Bob" ]
 [ "Alice", "age", 35 ]
 [ "Bob", "friend", "Claire" ]

 forall {
        has :PersonA, "friend", :PersonB
    } 
teste 1 line of Ruby 17 Bytes Show Edit Expand
1
{ teste: "abcd" }

Page 120, 10 entries