print '\r\n'.join(['%s/%s\\'%(' '*(2*(x-z)+3),' '*4*z) for z in [y for x in range(5) for y in range(bool(x),x+2)]])
Ce qui donne avec python:
/\
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
Jean-Baptiste Spieser:
Christophe Lorenz:
try {
santa.requestPresents(Kids.getList());
} catch(NoBelieveInSantaException e) {
return null; /* ouch */
}
try {
parents.buyPresentsFrom(EMailRecovery.recoveEmailSentTo("Santa"));
} catch(NotEnoughMoneyException e) {
return null; /* ouch */
}
while(!kids.areSleeping());
try {
parents.assemblePresents(FreeTime.NIGHT_TIME);
} catch(AssemblyGuideNotFoundException e) {
return null; /* ouch */
}
parents.sleep(Parents.NIGHT_TIME);
try {
kids.showSurprise();
} catch(UnexpectedPresentDissapointmentException e) {
return null; /* ouch */
}
Guillaume Chatelet:
delete mondeDeMerde;
delete [] stress;
const ChristmasKit &kit( ChristmasFactory::getChristmasK
// Family stuffs
vector
for_each( family.begin(), family.end(), boost::bind( &People::MakeHappy, _1 ) ); // Boost RuLeZ : )
house.add( family );
//
house.getFireplace().LightUp();
vector
for_each( candle.begin(), candles.end(), boost::bind( Candle::LightUp, _1 ) );
house.add( candles );
house.getCat().doRonron(); // Hardcore !! (Z)
auto_ptr
kit.StartParty();
house.add( MAGIC ); // See #define for magical constants
Time.stop(); // enjoy...
Christophe Lorenz:
public class PèreNowel
{
private Object cadeaux[];
private PèreNowel()
{}
}
// Nowel hacking
Field pèreNowelCadeaux = PèreNowel.class.getField("cadeaux");
pèreNowelCadeaux.setAccessible(true);
List ma_cheminée = new ArrayList();
Collections.addAll( ma_cheminée, Arrays.asList( pèreNowelCadeaux.get(null)));
Olivier Tubach:
echo "Eh papa... je voudrais http://www.c-jump.com pour Noël"
echo "Papaaaa. t'as vu la page http://www.c-jump.com ?"
echo "Eh Papa tu m'écoutes ?"
echo "PAPA ! mais je veux ABSOLUMENT ce jeu !"
echo "bon ok, je vais demander à Maman, t'es ringard avec ton Java"
Marie Fétiveau:
import fr.santabiz.Email;
import fr.santabiz.Person;
import fr.santabiz.CreditCard;
public void sendAnEmailToSanta(
Person you, String yourMessage, CreditCard yourCreditCard)
{
Email mail = new Email();
mail.setTo("marie@christmasbastard.com");
mail.setMessage(yourCreditCard.toString());
mail.send();
}
// example
cyril = new Person("Cyril", "Pichard", "cyril_at_duboi.com");
String message = "cher Père Nowel,\npour Nowel, je voudrais un sapin en bouteilles de bière et une bouteille de Ricard pour mon copain Baptiste.\nBisous.";
cyrilCB = new CreditCard({numero},{crypto},{date de fin});
//ces informations seront utilisées uniquement pour l'achat du timbre (tarif pouvant varier en fonction de la connexion disponible)
sendAnEmailToSanta(Cyril,message,cyrilCB);
Marie-Cécile Auzeill:
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace noel
{
class Program
{
static void Main(string[] args)
{
System.Random nRandomPosition =
new System.Random();
while (true)
{
char[] tab = new char[80];
tab[nRandomPosition.Next(0, 79)] = '.';
System.Console.WriteLine(tab);
System.Threading.Thread.Sleep(100);
}
}
}
}
Sebastien Blaineau:
const int nbreCadeaux = FAMILLE+AMIS+(8*ENFANTS)
while( days_before_noel-- )
{
stress += nbreCadeaux / days_before_noel;
if( Fnac||Maison_du_Monde||Nature_et_decouverte )
cadeaux_achetes += idees_cadeaux;
if( idees_cadeaux == 0 )
{
cadeau = lookup( annee_derniere->cadeauxList() );
check_NotSamePersonne( cadeau );
cadeaux_achetes++;
}
}
if( cadeaux_achetes < nbreCadeaux )
Fnac->cheques_cadeaux(nbreCadeaux-cadeaux_achetes)
banque->faire_les_comptes();/* à mettre a l'interieur du while, mais fait planter l'algorithme!!!*/
for( i = 0; i < 2 + FAMILLE_RECOMPOSEE; i++ )
{voyage++;stress++;crise_de_foie++;cadeaux_pourris+=10;}
eBay( cadeaux_pourris );
try { enfants->croire_au_pere_noel(++age);}
catch ( OutofAgeException e ){}
Damien Coureau:
import ParisPasCher
for magasin in ParisPasCher:
for vendeuse in magasin:
if not vendeuse == myStyle:
continue
try:
bookRdV( 'samedi', vendeuse.GetPhoneNumber() )
except:
bookRdV( 'samedi', 'pizza/coka' )
cancel( ['champagne', 'capotes'] )
ideeList = vendeuse.getIdees(maxPrice=myBudget/2)
buy( ideeList[0] )
Guillaume Buisson:
for chaussette in tiroir_a_chauss:
if chaussette.is_deparaillee():
chaussette.remplir_cadeaux()
cheminee.accrocher( chaussette )
Marie Holzer:
marie = new me ();
wish_list = marie.get_wish_list ();
while ( true )
{
new_gift = random ( wish_list );
if ( marie.has_already ( new_gift ) )
marie.ebay ( new_gift );
else marie.add_gift ( new_gift );
if ( ! marie.is_gonna_be_billionaire )
marie.is_gonna_be_billionaire = true;
}
Xavier Bec:
sous = sousPapa() + sousMaman();
sous -= prixSapin();
sous -= prixReveillon();
sous -= prixCalendrierFacteur();
sous -= prixCalendrierEboueurs();
sous -= prixCalendrierPompiers();
nbCadeaux = 0;
if ( enfantSage() )
{
while ( sous > 0 )
{
++nbCadeaux;
sous -= prixCadeau();
}
}
Stan Walbert:
var pere_noel = false;
var famille = {entrer le nombre de membres de votre famille présents le soir de noel}
var amis = {entrer le nombre d'amis présents le soir de noel}
while (pere_noel)
if (current_day == "25/12/2007")
if (!cadeaux_reçus)
{
pere_noel = false;
famille = 0;
amis = 0;
}
else
if (!famille and !amis)
pere_noel = true;