Welcome! This page is using CodeRay 1.1.2.

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

Page 229, 10 entries

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
Teste 6 lines of SQL 223 Bytes Show Edit Expand
1
2
3
4
5
6
UPDATE AUTORIZACAO AUT
   SET AUT.AUT_FLCNC = 'C', AUT.AUT_DCULTATZ = :AUT_DCULTATZ
 WHERE EXISTS (SELECT A.AUT_IDUNI
          FROM IAUTC5 A
         WHERE A.AUT_IDUNI = AUT.AUT_IDUNI
       ...
xcbl4 53 lines of PHP 2.78 KB Show Edit Expand
1
2
3
<?xml version="1.0" encoding="UTF-8" ?>
<!-- XML genere par SiNoE (tpl: ARC) -->
<OrderResponseList xmlns="rrn:org.xcbl:schemas/xcbl/v4_0/ordermanagement/v1_0/ordermanagement.xsd" xmlns:core="rrn...

Page 229, 10 entries