This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fixnum | |
def add_toto(val) | |
return "la tete a toto" if val == 0 && self == 0 | |
old_add(val) | |
end | |
alias old_add :"+" | |
alias :"+" add_toto | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Parse juste un seul flux Rss, ya rien à voir, circulez ^^ | |
$url = "http://alsquire.tumblr.com/rss"; // A remplacer | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="Content-style-type" content="text/css" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head><title>Hihi Velib !</title></head> | |
<body> | |
<?php | |
//TODO: show time, in order to check that the page have fresh data + refresh link on it | |
function get_station_datas($station_number) { | |
$url = "http://www.velib.paris.fr/service/stationdetails/{$station_number}"; | |
$xml = simplexml_load_file($url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="help"> | |
<h1>Help for you !</h1> | |
<p><%= yield %></p> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testouille de push sur github. | |
Wesh wesh ! | |
Devinette : | |
Que faire quand une blonde vous envoie une grenade ? | |
Réponse : | |
La dégoupiller et lui renvoyer ! | |
NewerOlder