Welcome! This page is using CodeRay 1.1.2.

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

Page 269, 10 entries

What does this regexp mean? 12 lines of Ruby by murphy < Shri 298 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
  it "allows substitution to interact with other Regexp constructs" do
    str = "foo)|(bar"
    /(#{str})/.should == /(foo)|(bar)/
    
    str = "a"
    /[#{str}-z]/.should == /[a-z]/

   ...
test! 47 lines of Ruby 1.96 KB Show Edit Expand
1
2
3
4
5
6
require 'rubygems'
require 'net/sftp'

task :deploy do
  # Compile the Nanoc website. The --all paramater means check every single file, not just the ones that
  # Nanoc believes may have been...
Test 1 line of C 56 Bytes Show Edit Expand
1
67-194-100-192:~ username$ ssh -v username@deskbert.loc 
opa opa 2 lines of Ruby by her 27 Bytes Show Edit Expand
1
2
puts "opa pa"
aslkfdjlskjd
opa opa 1 line of Ruby by her 13 Bytes Show Edit Expand
1
puts "opa pa"
123 5 lines of Ruby 70 Bytes Show Edit Expand
1
2
3
4
5
v = 1
puts v # => 1
b = lambda { |;v| v = 2 }
b.call
puts v # => 1
opa opa 1 line of Ruby by her 13 Bytes Show Edit Expand
1
puts "opa pa"
CSS Code 8 lines of CSS by Steve 213 Bytes Show Edit Expand
1
2
3
4
5
6
7
@import url(redsauce.css);  /* colour file */ 
@import url(theme.css);  /* colour file */ body {
  margin:0;
  padding:0;
  font-family: verdana, arial, sans-serif;
  font-size: 11px; 
  line...
PHP4 Code 1 line of C by Adriano Vieira (harpiain) 30 Bytes Show Edit Expand
1
<?php print "Hello World!"; ?>
C# Highlight as JAVA code 23 lines of Java by sergio 596 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
using Com.Foo;

// Import log4net classes.
using log4net;
using log4net.Config;

public class MyApp 
{
    // Define a static logger variable so that it references the
    // Logger instan...

Page 269, 10 entries