Welcome! This page is using CodeRay 1.1.2.

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

Page 231, 10 entries

xml 17 lines of XML by xml 325 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
 <samples>
   <sample>
     <info>
       <type>Batman</type>
       <name>Yahoo</name>
     </info>
     <scheme name="XXX">
       <prop3>a</prop3>
       <prop4>c</prop4>
       
     ...
java test 16 lines of Java by test 571 Bytes Show Edit Expand
1
2
3
4
5
6
7
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.WebControls;

        Control control;
        protected override void CreateChildControls()
        {
            base.CreateChi...
Ruby test 11 lines of Ruby 480 Bytes Show Edit Expand
1
2
3
jQuery("#newui_show").html("<%= escape_javascript(render("newui_show_partial")) %>");
jQuery("#click_to_edit_snippet").click(function () { 
  jQuery("#snippet_area, #crud_bar, #tag_list").addClas...
Classe numérique 15 lines of Ruby by kikan 599 Bytes Show Edit Expand
1
2
3
4
5.times { print "Youhou !" }
exit unless "restaurant".include? "resto u"
print "On utilise des gobelets €¨parce qu’on n’a pas de verre." if plastic_cup unless glass_cup
['pain', 'vin', 'fr...
Classe numérique 8 lines of Ruby by kikan 587 Bytes Show Edit Expand
1
2
3
4
5.times { print "Youhou !" }
exit unless "restaurant".include? "resto u"
print "On utilise des gobelets €¨parce qu’on n’a pas de verre." if plastic_cup unless glass_cup
['pain', 'vin', 'fr...
Classe numérique 23 lines of Ruby by kikan 389 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
# La classe Majordome
class Majordome
  def initialize(nom)
    @nom = nom.capitalize
  end
 
  def saluer
    puts "Bonjour #{@nom} !"
  end
end
 
# Créer un nouvel o...
Classe numérique 8 lines of Ruby by kikan 103 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
class Numeric
  def plus(x)
    self.+(x)
  end
end

y = 5.plus 6
# y vaut maintenant 11
Une ou deux migrations 27 lines of Ruby 497 Bytes Show Edit Expand
1
2
3
4
5
6
7
class CreateVoitures < ActiveRecord::Migration
  def self.up
    create_table :voitures do |t|
      t.string :immatriculation
      t.string :marque
      t.string :modele
      t.string :co...
otsu 156 lines of C 3.54 KB Show Edit Expand
1
2
3
4
5
6
//----------------------------------------------------------
// binarisation otsu
//----------------------------------------------------------
#include "iostream"
#include "stdio.h"
#include "...
Calcul de l'âge 5 lines of Ruby by kikan 71 Bytes Show Edit Expand
1
2
3
4
5
class Date
  def age
    ((Date.today-self)/365.25).floor
  end
end

Page 231, 10 entries