Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
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 |
class Majordome
  def initialize(nom)
    @nom = nom.capitalize
  end
Â
  def saluer
    puts "Bonjour #{@nom} !"
  end
end
Â
|
|
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
|
|
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 |
#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
... |
|