Welcome! This page is using CodeRay 1.1.0 (beta).

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

Page 120, 10 entries

bookmarklet 1 line of JavaScript 286 Bytes Show Edit Expand
1
javascript:var%20b=document.body;var%20POSTEROUS___bookmarklet_domain='http://posterous.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.type='text/javascript');void...
Some Perl code highlighted as ruby 28 lines of Ruby by X 420 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
use strict;
use warnings;

####################################
# some Perl code highlighted as ruby
####################################

use DBI;

my $dbh;

print "Hel...
xml 71 lines of XML 3.23 KB Show Edit Expand
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<!--
Test
-->
<Section key = "0">
   <SubSection key = "1"/>
</Section>
<Chapter Name="PBDI" Definition="Bluetooth devices inquiry" Software="Bxxx" Pro...
shell 5 lines of C 296 Bytes Show Edit Expand
1
2
3
4
# install rvm dans ~/.rvm
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
# configuration des chemins d'accès aux binaires
$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.r...
diff test 15 lines of diff by dbh 581 Bytes Show Edit Expand
1
2
3
4
5
< #server.errorlog            = "/var/log/lighttpd/error.log"
< #server.errorlog            = "/dev/stderr"
---
> server.errorlog            = "/var/log/lighttpd/error.log"
< #accesslog.filenam...
fly 36 lines of Ruby 501 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env ruby

require '../example'

class Car
  def initialize
    puts "new car #{self}"
  end

  def travel(distance)
    puts "drive car #{self}: #{distance}"
  end
end

cla...
Ruby test 14 lines of Ruby by me 333 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
class UltimateProxy < BasicObject
  def initialize(object)
    delegate_everything_to(object)
  end

  private

  def delegate_everything_to(object)
    metaclass = class << self; self; end...
test 1 line of C++ 14 Bytes Show Edit Expand
1
int main() { }
SQL 22 lines of SQL by SQL 1.13 KB Show Edit Expand
1
2
SELECT stk.PART_NO AS , stk.PARTNAME2 AS , BASEDB.dbo.fnGetRetailItemPackingSpec(stk.part_no) AS , r.unit AS , r.QTY AS , r.PRICE 
       * (1 -r.discount / 100.0) AS , r.PRICE *...
VMware 30 lines of YAML 1.15 KB Show Edit Expand
1
2
3
4
5
6
require 'rbvmomi'
require 'highline/import'
#Constition de la liste des VMs à partir du fichier vmlist
liste_vms = File.open("vmlist","r").readlines
liste_vms.map! { |vm| vm.chomp }
#Username ...

Page 120, 10 entries