>DansTonCode();

Tous les codes sourcespage 47

C++
 14 Juillet, 2014 à 04:00
#217
protected void refreshLayout() {
// We are forcing scroll bar refreshing too
composite.getParent().getParent().getParent().getParent().getParent().getParent().pack(true);
composite.getParent().getParent().getParent().getParent().getParent().getParent().getParent().layout();
}
PHP
 13 Juillet, 2014 à 11:58
#224
          $recherche = array();
          foreach($particulier as $k=> $v)
          {
            switch($k)
            {
              case 'civilite':
                $recherche['civilite'] = $v;
                break;
              case 'nom':
                $recherche['nom'] = $v;
                break;
              case 'prenom':
                $recherche['prenom'] = $v;
                break;
              case 'code_postal':
                $recherche['cp_ville']['codepostal'] = $v;
                break;
              case 'ville':
                $recherche['cp_ville']['ville'] = $v;
                break;
              case 'telephone':
                $recherche['telephone'] = $v;
                break;
              case 'email':
                $recherche['email'] = $v;
                break;
              default: break;
            }
          }
          $form->bind($recherche);
Python
 12 Juillet, 2014 à 02:30
#211
            try:
                createImage(path_info)
            except:
                try:
                    # sleep 0..1 segond
                    time.sleep(random())
                    createImage(path_info)
                except:
                    # sleep 0..1 segond
                    time.sleep(random())
                    createImage(path_info)