Welcome! This page is using CodeRay 1.1.2.

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

Page 254, 10 entries

Random PHP Code 12 lines of PHP by Baylor Rae' 362 Bytes Show Edit Expand
1
2
3
4
5
6
<?php 
    $oFCKeditor = new FCKeditor('ArticleBody') ;
    $oFCKeditor->BasePath = "/js/FCKeditor/";
    $oFCKeditor->Width  = '600';
    $oFCKeditor->Height = '500';
    if($this->article->A...
random 50 lines of ERb by random 1.33 KB Show Edit Expand
1
2
3
4
<h1><%=h @game.title %>
<% if current_user && current_user.id != @game.user_id %>
  <% if @game.users.exists?(current_user.id) %>
    <%= link_to '(Leave)', leave_game_path(@game), :confirm=>'Do yo...
diff 2 lines of diff 844 Bytes Show Edit Expand
1
--- a/README +++ b/README @@ -1,10 +1,18 @@ -git-bro - lightweight Sinatra based web application to track your local git repositories +git-bro - serve and browse your Git repositories -Currently gi...
Diff example 53 lines of diff by murphy < Patrick Okui 1.09 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
<table>
  <tbody>
+<ko if: Header.All -->
  <tr>
    <td>Header</td>
  </tr>
  <tr>
    <td id="underline">
      <img height="1px" width="545px" src="../../images/9.bmp" border="0">
    </td>
  </tr>
...
Unified Diff 16 lines of diff 614 Bytes Show Edit Expand
1
2
3
4
5
root@localhost:/etc/init.d# diff -U5 umountfs.orig umountfs
--- umountfs.orig  2010-04-01 12:41:59.000000000 +0200
+++ umountfs  2010-04-01 12:47:58.000000000 +0200
@@ -66,11 +66,11 @@
   TMPFS_MT...
Unified Diff 16 lines of C 614 Bytes Show Edit Expand
1
2
3
4
5
root@localhost:/etc/init.d# diff -U5 umountfs.orig umountfs
--- umountfs.orig  2010-04-01 12:41:59.000000000 +0200
+++ umountfs  2010-04-01 12:47:58.000000000 +0200
@@ -66,11 +66,11 @@
   TMPFS_MT...
pyrebqa 16 lines of PHP 602 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
global $wpdb;
define('WPSC_VERSION', '3.7');
define('WPSC_MINOR_VERSION', '46');

define('WPSC_PRESENTABLE_VERSION', '3.7.5.3');

define('WPSC_DEBUG', false);
define('WPSC_GATEWAY_DEBUG', fa...
Groovy Test 14 lines of Java by Angela Morkel 257 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
class Schniepel {

  // determine order
  static constraints = {
    schniepelName()
    schniepelAdresse()
    wutzNummer()
  }

  // Java doesn't guarentee this order
  String schniepel...
rake task 46 lines of Ruby 2.08 KB Show Edit Expand
1
2
3
4
#= encoding: utf-8 
namespace :db do  desc "Backup the database to a file. Options: DIR=base_dir RAILS_ENV=production MAX=20" 
  task :backup => [:environment] do
    datestamp = Time.now.strfti...
test 1 line of diff by test 52 Bytes Show Edit Expand
1
puts CodeRay.scan('puts "Hello, world!"', :ruby).div

Page 254, 10 entries