Recent posteets

Sort by: Date / Title /

  1. 9 years ago by iegorka
    1. Groups multiple tokens together without creating a capturing group. This allows you to apply quantifiers to the full group.
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1747"></script>
  2. 9 years ago by spirit
    if toFixed is not defined
    1. if (!num.toFixed)
    2. {
    3.  
    4.  Number.prototype.toFixed = function(precision) {
    5.      var power = Math.pow(10, precision || 0);
    6.      return String(Math.round(this * power)/power);
    7.  }
    8.  
    9. }
    10.  
    11. // OR
    12.  
    13.   Number.prototype.toFixed = function(precision)
    14.   {
    15.      var num = (Math.round(this*Math.pow(10,precision))).toString();
    16.      return num.substring(0,num.length-precision) + "." +
    17.             num.substring(num.length-precision, num.length);
    18.   }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1403"></script>
  3. 7 years ago by neorom
    1. /etc/pure-ftpd/conf/PassivePortRange
    2.  
    3.  
    4. 50000 50100
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2127"></script>
  4. sponsorised links
  5. 9 years ago by benoitbalon
    1. cat /proc/version
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1505"></script>
  6. 8 years ago by stephanzr
    L'image qui servira de fond pour signaler le chargement (barre, cercle, etc...) sera visible jusqu'à ce que l'image à afficher finisse de se charger et recouvre l'image de fond... Voir sur le lien de la source les différentes manières d'utiliser ce principe.
    1. .load{background:url('images/youricon.gif') no-repeat center;}
    2.  
    3. <div class="load" style="width:200px;height:200px">
    4.     <img src="large.jpg" alt="alternate text" />
    5. </div>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2004"></script>
  7. 8 years ago by macks
    1. #---libs/date.py
    2. def format_date(value, format="%d/%m/%Y %H:%M:%S"):
    3.         return value.strftime(format)
    4.  
    5. #-----settings
    6. from libs.filters import format_date
    7. from jinja2 import Environment, FileSystemLoader
    8. TEMPLATE_ENV.filters["format_date"] = format_date
    9.  
    10. #---template
    11. <td>{{ h.date|format_date('%d/%m/%Y') }}</td>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2104"></script>
  8. 9 years ago by macks
    agregar una columna despues de otra
    1. ALTER TABLE media add COLUMN  status VARCHAR (20) after component
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1780"></script>
  9. 9 years ago by neorom
    1. htpasswd -c /mon_chemin/.htpasswd user
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1568"></script>
  10. 9 years ago by jacinmontava
    1. function alertPhp($texto){
    2.         echo "<script type='text/javascript'>alert('".$texto."');</script>";
    3. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1783"></script>
  11. 9 years ago by minus
    1. #conteneur {
    2.    background-color: #ffffff/* le fond                 */
    3.    filter:alpha(opacity=50);   /* Internet Explorer 6     */
    4.    -moz-opacity:0.5;           /* Mozilla 1.6 et infér.   */
    5.    opacity: 0.5;               /* CSS3 et Mozilla récents */
    6. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1342"></script>

First / Previous / Next / Last / Page 1 of 30 (293 posteets)