You are here: indexplayground

Bac à sable

LOL :-)

FIXME

Listings de code

Exemple de listing python

 
import os
import sys
 
class Test:
  #Constructeur
  def __init__(self):
    self.test = 'test'
  #Methode show
  def show(self):
    print self.test
 
#Main du script
if __name__ == '__main__':
  t = Test()
  t.show()

Exemple de listing c++

 
#include <time.h>  
 
int main()
{
 
   clock_t tStart=clock();
   {
       // Ici on met le code a mesurer
 
   }
 
    clock_t tFinish=clock();
 
    std::cout<<"Time: "<<(tFinish-tStart)/((double) CLOCKS_PER_SEC)<<std::endl; 
    return 0;
}

Exemple de listing CMake

#Test de project template
project(Template)
FindITK()
set(MYPROJECT "MyNewPoject" CACHE STRING "Fill in the name of the project")
configure_file(${Template_SOURCES_DIR}/CMakeLists.txt.in ${Template_BINARY_DIR}/CMakeLists.txt)

Exemple de BibTex

  1.  G. J. McLachlan, K. A. Do, and C. Ambroise, Analyzing microarray gene expression data, Wiley, 2004. 

  1.  P. Coupé, P. Hellier, S. Prima, C. Kervrann, and C. Barillot, "3D Wavelet Sub-Bands Mixing for Image Denoising," International Journal of Biomedical Imaging, 2008. 

inserm rennes1 ltsi