Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'switch'

1711606 - Style Switcher: wordpress switch style
  1. function setActiveStyleSheet(title) {
  2.   var i, a, main;
  3.   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
  4.     if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
  5.       a.disabled = true;
  6.       if(a.getAttribute("title") == title) a.disabled = false;
  7.     }
  8.   }
  9.  
964462 - Switch Case.: switch
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5.  
  6. package aula1;
  7.  
  8. /**
  9.  
  10.  
941271 - Switch Case.: switch
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5.  
  6. package aula1;
  7.  
  8. /**
  9.  
  10.  
723890 - trollboy: php switch speed optimizing
  1. <?php
  2.  
  3. /**
  4. * Results on my box running within ZDE:
  5. * X-Powered-By: PHP/5.2.0
  6. * Content-type: text/html
  7. *
  8. * case_attempt: 8.367699
  9.  
  10.  
723887 - trollboy: php switch speed optimizing
  1. <?php
  2.  
  3. /**
  4. * Results on my box running within ZDE:
  5. * X-Powered-By: PHP/5.2.0
  6. * Content-type: text/html
  7. *
  8. * case_attempt: 8.367699
  9.  
  10.  
638327 - Hatty: c endian little-endian big-endian pdp-endian switch
  1. #if defined(__WIN32) || defined(__WIN32__) || defined(__WIN64) || \
  2.     defined(__WIN64__)
  3.  
  4. /* Windows doesnt have endian.h, and only runs on AMD64/Intel,
  5. * so it's little endian */
  6.  
  7. #define ENDIAN(x) (x & 0xFF000000) | (x & 0x00FF0000) << 8 | \
  8.     (x & 0x00000FF00) << 16 | (x & 0x0000000FF) << 24
  9.  
637808 - Hatty: c endian little-endian big-endian pdp-endian switch
  1. #include <endian.h>
  2.  
  3. /* Host byte order <-> Big Endian */
  4.  
  5. #if __BYTEORDER == __BIG_ENDIAN
  6. #define ENDIAN(x) x
  7.  
  8. #elif __BYTEORDER == __LITTLE_ENDIAN
  9.  
worth-right